Skip to content

formula_e_8

codes.eurocode.en_1995_1_1_2023.appendix_e.formula_e_8

Formula E.8 from EN 1995-1-1:2023.

Classes:

codes.eurocode.en_1995_1_1_2023.appendix_e.formula_e_8.FormEDot8AxialStressInILayer

FormEDot8AxialStressInILayer(
    i: int,
    gamma_i: DIMENSIONLESS,
    e_i: MPA,
    alpha_i: MM,
    m_yd: NMM,
    ei_ef: NMM2,
)

Bases: Formula

Class representing formula E.8 for axial stress in the i-numbered part of the cross-section.

[\(\sigma_i\)] axial stress in the i-numbered part of the cross-section, in [\(MPa\)].

EN 1995-1-1:2023 art E.5(1) - Formula (E.8)

Parameters:

  • i (DIMENSIONLESS) –

    [\(i\)] Number of layer i of cross-section.

  • gamma_i (DIMENSIONLESS) –

    [\(\gamma_{i}\)] Factor for the efficiency of the mechanical connections of the respective i-numbered part of the cross-section [\(-\)].

  • e_i (MPA) –

    [\(E_i\)] Modulus of elasticity of the i-numbered part of the cross-section [\(MPA\)].

  • alpha_i (MM) –

    [\(\alpha_i\)] Distance between the centroid of the composite cross-section and the centroid of i-numbered part of the cross-section [\(mm\)].

  • m_yd (NMM) –

    [\(M_{y,d}\)] Design bending moment about y-axis [\(Nmm\)].

  • ei_ef (NMM2) –

    [\((EI)_{ef}\)] Effective bending stiffness, in [\(Nmm^2\)].

Returns:

  • None
Source code in blueprints/codes/eurocode/en_1995_1_1_2023/appendix_e/formula_e_8.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
43
44
45
46
def __init__(self, i: int, gamma_i: DIMENSIONLESS, e_i: MPA, alpha_i: MM, m_yd: NMM, ei_ef: NMM2) -> None:
    r"""[$\sigma_i$] axial stress in the i-numbered part of the cross-section, in [$MPa$].

    EN 1995-1-1:2023 art E.5(1) - Formula (E.8)

    Parameters
    ----------
    i : DIMENSIONLESS
        [$i$] Number of layer i of cross-section.
    gamma_i : DIMENSIONLESS
        [$\gamma_{i}$] Factor for the efficiency of the mechanical connections of the respective i-numbered part of the cross-section [$-$].
    e_i : MPA
        [$E_i$] Modulus of elasticity of the i-numbered part of the cross-section [$MPA$].
    alpha_i : MM
        [$\alpha_i$] Distance between the centroid of the composite cross-section and the centroid of i-numbered part of the cross-section [$mm$].
    m_yd : NMM
        [$M_{y,d}$] Design bending moment about y-axis [$Nmm$].
    ei_ef : NMM2
        [$(EI)_{ef}$] Effective bending stiffness, in [$Nmm^2$].

    Returns
    -------
    None
    """
    super().__init__()
    self.gamma_i = gamma_i
    self.e_i = e_i
    self.alpha_i = alpha_i
    self.m_yd = m_yd
    self.ei_ef = ei_ef
    self.i = i

codes.eurocode.en_1995_1_1_2023.appendix_e.formula_e_8.FormEDot8AxialStressInILayer.latex

latex(n: int = 2) -> LatexFormula

Returns LatexFormula object for formula E.8.

Source code in blueprints/codes/eurocode/en_1995_1_1_2023/appendix_e/formula_e_8.py
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
def latex(self, n: int = 2) -> LatexFormula:
    """Returns LatexFormula object for formula E.8."""
    eq_i = f"\\frac{{\\gamma_{self.i} E_{self.i} \\alpha_{self.i} M_{{yd}}}}{{EI_{{ef}}}}"

    repl_symb = {
        f"\\gamma_{self.i}": rf"{self.gamma_i:.{n}f} \cdot",
        f"E_{self.i}": rf"{self.e_i:.{n}f} \cdot",
        f"\\alpha_{self.i}": rf"{self.alpha_i:.{n}f} \cdot",
        r"M_{yd}": rf"{self.m_yd:.{n}f}",
        r"EI_{ef}": rf"{self.ei_ef:.{n}f}",
    }
    numeric_eq = latex_replace_symbols(eq_i, repl_symb)
    return LatexFormula(
        return_symbol=rf"\sigma_{{{self.i}}}", result=f"{self:.{n}f}", equation=eq_i, numeric_equation=numeric_eq, comparison_operator_label="="
    )