Skip to content

formula_5_2

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_2

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

Classes:

  • Form5Dot2Eccentricity

    Class representing formula 5.2 for the calculation of eccentricity, [\(e_i\)].

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_2.Form5Dot2Eccentricity

Form5Dot2Eccentricity(theta_i: DIMENSIONLESS, l_0: M)

Bases: Formula

Class representing formula 5.2 for the calculation of eccentricity, [\(e_i\)].

[\(e_i\)] Eccentricity, [\(e_i\)], for isolated members [\(m\)].

EN 1992-1-1:2004 art.5.2(7) - Formula (5.2)

Parameters:

  • theta_i (DIMENSIONLESS) –

    [\(\Theta_i\)] Eccentricity, initial inclination imperfections [-]. Use your own implementation of this value or use the Form5Dot2Imperfections class.

  • l_0 (M) –

    [\(l_0\)] Effective length of the member, see 5.8.3.2 [\(m\)].

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_5_structural_analysis/formula_5_2.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
def __init__(
    self,
    theta_i: DIMENSIONLESS,
    l_0: M,
) -> None:
    r"""[$e_i$] Eccentricity, [$e_i$], for isolated members [$m$].

    EN 1992-1-1:2004 art.5.2(7) - Formula (5.2)

    Parameters
    ----------
    theta_i : DIMENSIONLESS
        [$\Theta_i$] Eccentricity, initial inclination imperfections [-].
        Use your own implementation of this value or use the Form5Dot2Imperfections class.
    l_0 : M
        [$l_0$] Effective length of the member, see 5.8.3.2 [$m$].
    """
    super().__init__()
    self.theta_i = theta_i
    self.l_0 = l_0

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_2.Form5Dot2Eccentricity.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 5.2.

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_5_structural_analysis/formula_5_2.py
47
48
49
50
51
52
53
54
55
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 5.2."""
    return LatexFormula(
        return_symbol=r"e_i",
        result=f"{self:.4f}",
        equation=r"\theta_i \cdot l_0 / 2",
        numeric_equation=rf"{self.theta_i:.{n}f} \cdot {self.l_0:.{n}f} / 2",
        comparison_operator_label="=",
    )