Skip to content

formula_e_6

codes.eurocode.en_1995_1_1_2023.appendix_e.formula_e_6

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

Classes:

  • FormEDot6AreaOfLayerI

    Class representing formula E.6 for the area of the i-numbered part of the cross-section.

codes.eurocode.en_1995_1_1_2023.appendix_e.formula_e_6.FormEDot6AreaOfLayerI

FormEDot6AreaOfLayerI(b_i: MM, h_i: MM, i: int)

Bases: Formula

Class representing formula E.6 for the area of the i-numbered part of the cross-section.

[\(A_i\)] Area of the i-numbered part of the cross-section, in [\(mm^2\)].

EN 1995-1-1:2023 art E.4(1) - Formula (E.6)

Parameters:

  • b_i (MM) –

    [\(b_i\)] Width of the i-numbered part of the cross-section [\(mm\)].

  • h_i (MM) –

    [\(h_2\)] Depth of the i-numbered part of the cross-section [\(mm\)].

  • i (DIMENSIONLESS) –

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

Returns:

  • None
Source code in blueprints/codes/eurocode/en_1995_1_1_2023/appendix_e/formula_e_6.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
def __init__(self, b_i: MM, h_i: MM, i: int) -> None:
    r"""[$A_i$] Area of the i-numbered part of the cross-section, in [$mm^2$].

    EN 1995-1-1:2023 art E.4(1) - Formula (E.6)

    Parameters
    ----------
    b_i : MM
        [$b_i$] Width of the i-numbered part of the cross-section [$mm$].
    h_i : MM
        [$h_2$] Depth of the i-numbered part of the cross-section [$mm$].
    i : DIMENSIONLESS
        [$i$] Number of layer i of cross-section.

    Returns
    -------
    None
    """
    super().__init__()
    self.b_i = b_i
    self.h_i = h_i
    self.i = i

codes.eurocode.en_1995_1_1_2023.appendix_e.formula_e_6.FormEDot6AreaOfLayerI.latex

latex(n: int = 2) -> LatexFormula

Returns LatexFormula object for formula E.6.

Source code in blueprints/codes/eurocode/en_1995_1_1_2023/appendix_e/formula_e_6.py
51
52
53
54
55
56
57
58
59
60
61
62
def latex(self, n: int = 2) -> LatexFormula:
    """Returns LatexFormula object for formula E.6."""
    eq_i = f"b_{self.i} h_{self.i}"

    repl_symb = {
        f"b_{self.i}": rf"{self.b_i:.{n}f} \cdot",
        f"h_{self.i}": rf"{self.h_i:.{n}f}",
    }
    numeric_eq = latex_replace_symbols(eq_i, repl_symb)
    return LatexFormula(
        return_symbol=f"A_{self.i}", result=f"{self:.{n}f}", equation=eq_i, numeric_equation=numeric_eq, comparison_operator_label="="
    )