Skip to content

formula_5_12n

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_12n

Formula 5.12N from EN 1992-1-1:2004: Chapter 5 Structural Analysis.

Classes:

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_12n.Form5Dot12nRatioDistancePointZeroAndMaxMoment

Form5Dot12nRatioDistancePointZeroAndMaxMoment(m_sd: KNM, v_sd: KN, d: M)

Bases: Formula

Class representing formula 5.12N for the calculation of the lambda ratio.

Note: Ratio of the distance between point of zero and maximum moment after redistribution and effective depth, d. [\(λ\)]

[\(λ\)] ratio of the distance between point of zero and maximum moment after redistribution and effective depth, d [\(-\)].

EN 1992-1-1:2004 art.5.6.3(4) - Formula (5.12N)

Parameters:

  • m_sd (KNM) –

    [\(M_{sd}\)] Design moment at the section [\(kNm\)].

  • v_sd (KN) –

    [\(V_{sd}\)] Design shear force at the section [\(kN\)].

  • d (M) –

    [\(d\)] Effective depth [\(m\)].

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_5_structural_analysis/formula_5_12n.py
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
def __init__(
    self,
    m_sd: KNM,
    v_sd: KN,
    d: M,
) -> None:
    r"""[$λ$] ratio of the distance between point of zero and maximum moment after redistribution and
    effective depth, d [$-$].

    EN 1992-1-1:2004 art.5.6.3(4) - Formula (5.12N)

    Parameters
    ----------
    m_sd : KNM
        [$M_{sd}$] Design moment at the section [$kNm$].
    v_sd : KN
        [$V_{sd}$] Design shear force at the section [$kN$].
    d : M
        [$d$] Effective depth [$m$].
    """
    super().__init__()
    self.m_sd = m_sd
    self.v_sd = v_sd
    self.d = d

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_12n.Form5Dot12nRatioDistancePointZeroAndMaxMoment.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 5.12N.

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_5_structural_analysis/formula_5_12n.py
60
61
62
63
64
65
66
67
68
69
70
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 5.12N."""
    numerator = f"{self.m_sd:.{n}f}"
    denominator = f"{self.v_sd:.{n}f} \\cdot {self.d:.{n}f}"
    return LatexFormula(
        return_symbol="λ",
        result=f"{self:.{n}f}",
        equation=r"\frac{M_{sd}}{V_{sd} \cdot d}",
        numeric_equation=f"{latex_fraction(numerator=numerator, denominator=denominator)}",
        comparison_operator_label="=",
    )