Skip to content

formula_5_38b

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_38b

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

Classes:

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_38b.Form5Dot38bCheckRelativeEccentricityRatio

Form5Dot38bCheckRelativeEccentricityRatio(e_y: MM, e_z: MM, b_eq: MM, h_eq: MM)

Bases: Formula

Class representing formula 5.38b for check of relative eccentricity ratio.

Check the eccentricity of the loads in y and z direction.

EN 1992-1-1:2004 art.5.8.9(3) - Formula (5.38b)

Parameters:

  • e_y (MM) –

    [\(e_{y}\)] Eccentricity along y-axis [\(mm\)].

  • e_z (MM) –

    [\(e_{z}\)] Eccentricity along z-axis [\(mm\)].

  • b_eq (MM) –

    [\(b_{eq}\)] Equivalent width [\(mm\)].

  • h_eq (MM) –

    [\(h_{eq}\)] Equivalent depth [\(mm\)].

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_5_structural_analysis/formula_5_38b.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
def __init__(
    self,
    e_y: MM,
    e_z: MM,
    b_eq: MM,
    h_eq: MM,
) -> None:
    r"""Check the eccentricity of the loads in y and z direction.

    EN 1992-1-1:2004 art.5.8.9(3) - Formula (5.38b)

    Parameters
    ----------
    e_y : MM
        [$e_{y}$] Eccentricity along y-axis [$mm$].
    e_z : MM
        [$e_{z}$] Eccentricity along z-axis [$mm$].
    b_eq : MM
        [$b_{eq}$] Equivalent width [$mm$].
    h_eq : MM
        [$h_{eq}$] Equivalent depth [$mm$].
    """
    super().__init__()
    self.e_y = e_y
    self.e_z = e_z
    self.b_eq = b_eq
    self.h_eq = h_eq

codes.eurocode.en_1992_1_1_2004.chapter_5_structural_analysis.formula_5_38b.Form5Dot38bCheckRelativeEccentricityRatio.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 5.38b.

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_5_structural_analysis/formula_5_38b.py
61
62
63
64
65
66
67
68
69
70
71
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 5.38b."""
    return LatexFormula(
        return_symbol=r"CHECK",
        result="OK" if self.__bool__() else "\\text{Not OK}",
        equation=r"\left(\frac{e_{y}/h_{eq}}{e_{z}/b_{eq}} \leq 0.2 \text{ or } \frac{e_{z}/b_{eq}}{e_{y}/h_{eq}} \leq 0.2 \right)",
        numeric_equation=rf"\left(\frac{{{self.e_y:.{n}f}/{self.h_eq:.{n}f}}}{{{self.e_z:.{n}f}/{self.b_eq:.{n}f}}} "
        rf"\leq 0.2 \text{{ or }} \frac{{{self.e_z:.{n}f}/{self.b_eq:.{n}f}}}{{{self.e_y:.{n}f}/{self.h_eq:.{n}f}}} \leq 0.2 \right)",
        comparison_operator_label="\\to",
        unit="",
    )