Skip to content

formula_6_12

codes.eurocode.en_1993_1_1_2005.chapter_6_ultimate_limit_state.formula_6_12

Formula 6.12 from EN 1993-1-1:2005: Chapter 6 - Ultimate Limit State.

Classes:

codes.eurocode.en_1993_1_1_2005.chapter_6_ultimate_limit_state.formula_6_12.Form6Dot12CheckBendingMoment

Form6Dot12CheckBendingMoment(m_ed: NMM, m_c_rd: NMM)

Bases: Formula

Class representing formula 6.12 for the test of the bending moment.

Check the bending moment.

EN 1993-1-1:2005 art.6.2.4(1) - Formula (6.12)

Parameters:

  • m_ed (NMM) –

    [\(M_{Ed}\)] Design bending moment [\(Nmm\)].

  • m_c_rd (NMM) –

    [\(M_{c,Rd}\)] The design resistance for bending about one principal axis of a cross-section [\(Nmm\)].

Source code in blueprints/codes/eurocode/en_1993_1_1_2005/chapter_6_ultimate_limit_state/formula_6_12.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
def __init__(
    self,
    m_ed: NMM,
    m_c_rd: NMM,
) -> None:
    r"""Check the bending moment.

    EN 1993-1-1:2005 art.6.2.4(1) - Formula (6.12)

    Parameters
    ----------
    m_ed : NMM
        [$M_{Ed}$] Design bending moment [$Nmm$].
    m_c_rd : NMM
        [$M_{c,Rd}$] The design resistance for bending about one principal axis of a cross-section [$Nmm$].
    """
    super().__init__()
    self.m_ed = m_ed
    self.m_c_rd = m_c_rd

codes.eurocode.en_1993_1_1_2005.chapter_6_ultimate_limit_state.formula_6_12.Form6Dot12CheckBendingMoment.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 6.12.

Source code in blueprints/codes/eurocode/en_1993_1_1_2005/chapter_6_ultimate_limit_state/formula_6_12.py
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 6.12."""
    _equation: str = r"\left( \frac{M_{Ed}}{M_{c,Rd}} \leq 1 \right)"
    _numeric_equation: str = latex_replace_symbols(
        _equation,
        {
            "M_{Ed}": f"{self.m_ed:.{n}f}",
            "M_{c,Rd}": f"{self.m_c_rd:.{n}f}",
        },
        False,
    )
    return LatexFormula(
        return_symbol=r"CHECK",
        result="OK" if self.__bool__() else "\\text{Not OK}",
        equation=_equation,
        numeric_equation=_numeric_equation,
        comparison_operator_label="\\to",
        unit="",
    )