Skip to content

formula_6_45

codes.eurocode.en_1992_1_1_2004.chapter_6_ultimate_limit_state.formula_6_45

Formula 6.45 from EN 1992-1-1:2004: Chapter 6 - Ultimate Limit State.

Classes:

codes.eurocode.en_1992_1_1_2004.chapter_6_ultimate_limit_state.formula_6_45.Form6Dot45W1Rectangular

Form6Dot45W1Rectangular(c_1: MM, c_2: MM, d: MM)

Bases: Formula

Class representing formula 6.45 for the calculation of [\(W_1\)].

[\(W_1\)] Calculation of [\(W_1\)].

EN 1992-1-1:2004 art.6.4.3(4) - Formula (6.45)

Parameters:

  • c_1 (MM) –

    [\(c_1\)] Column dimension parallel to the eccentricity of the load [\(mm\)].

  • c_2 (MM) –

    [\(c_2\)] Column dimension perpendicular to the eccentricity of the load [\(mm\)].

  • d (MM) –

    [\(d\)] Mean effective depth of the slab [\(mm\)].

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_6_ultimate_limit_state/formula_6_45.py
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
def __init__(
    self,
    c_1: MM,
    c_2: MM,
    d: MM,
) -> None:
    r"""[$W_1$] Calculation of [$W_1$].

    EN 1992-1-1:2004 art.6.4.3(4) - Formula (6.45)

    Parameters
    ----------
    c_1 : MM
        [$c_1$] Column dimension parallel to the eccentricity of the load [$mm$].
    c_2 : MM
        [$c_2$] Column dimension perpendicular to the eccentricity of the load [$mm$].
    d : MM
        [$d$] Mean effective depth of the slab [$mm$].
    """
    super().__init__()
    self.c_1 = c_1
    self.c_2 = c_2
    self.d = d

codes.eurocode.en_1992_1_1_2004.chapter_6_ultimate_limit_state.formula_6_45.Form6Dot45W1Rectangular.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 6.45.

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_6_ultimate_limit_state/formula_6_45.py
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 6.45."""
    _equation: str = r"\frac{c_2^2}{4} + c_1 \cdot c_2 + 4 \cdot c_1 \cdot d + 8 \cdot d^2 + \pi \cdot d \cdot c_2"
    _numeric_equation: str = latex_replace_symbols(
        _equation,
        {
            r"c_1": f"{self.c_1:.{n}f}",
            r"c_2": f"{self.c_2:.{n}f}",
            r" d": f" {self.d:.{n}f}",
        },
        False,
    )
    return LatexFormula(
        return_symbol=r"W_1",
        result=f"{self:.{n}f}",
        equation=_equation,
        numeric_equation=_numeric_equation,
        comparison_operator_label="=",
        unit="mm^2",
    )