Skip to content

formula_7_12

codes.eurocode.en_1992_1_1_2004.chapter_7_serviceability_limit_state.formula_7_12

Formula 7.12 from EN 1992-1-1:2004: Chapter 7 - Serviceability Limit State.

Classes:

codes.eurocode.en_1992_1_1_2004.chapter_7_serviceability_limit_state.formula_7_12.Form7Dot12EquivalentDiameter

Form7Dot12EquivalentDiameter(
    n_1: DIMENSIONLESS, diam_1: MM, n_2: DIMENSIONLESS, diam_2: MM
)

Bases: Formula

Class representing formula 7.12 for the calculation of [\(⌀_{eq}\)].

[\(⌀_{eq}\)] Calculation of the equivalent diameter [\(mm\)].

EN 1992-1-1:2004 art.7.3.4(3) - Formula (7.12)

Parameters:

  • n_1 (DIMENSIONLESS) –

    [\(n_1\)] Number of bars with diameter \(⌀_1\).

  • diam_1 (MM) –

    [\(⌀_1\)] Diameter of the first set of bars [\(mm\)].

  • n_2 (DIMENSIONLESS) –

    [\(n_2\)] Number of bars with diameter \(⌀_2\).

  • diam_2 (MM) –

    [\(⌀_2\)] Diameter of the second set of bars [\(mm\)].

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_7_serviceability_limit_state/formula_7_12.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,
    n_1: DIMENSIONLESS,
    diam_1: MM,
    n_2: DIMENSIONLESS,
    diam_2: MM,
) -> None:
    r"""[$⌀_{eq}$] Calculation of the equivalent diameter [$mm$].

    EN 1992-1-1:2004 art.7.3.4(3) - Formula (7.12)

    Parameters
    ----------
    n_1 : DIMENSIONLESS
        [$n_1$] Number of bars with diameter $⌀_1$.
    diam_1 : MM
        [$⌀_1$] Diameter of the first set of bars [$mm$].
    n_2 : DIMENSIONLESS
        [$n_2$] Number of bars with diameter $⌀_2$.
    diam_2 : MM
        [$⌀_2$] Diameter of the second set of bars [$mm$].
    """
    super().__init__()
    self.n_1 = n_1
    self.diam_1 = diam_1
    self.n_2 = n_2
    self.diam_2 = diam_2

codes.eurocode.en_1992_1_1_2004.chapter_7_serviceability_limit_state.formula_7_12.Form7Dot12EquivalentDiameter.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 7.12.

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_7_serviceability_limit_state/formula_7_12.py
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 7.12."""
    _equation: str = r"\frac{n_1 \cdot ⌀_1^2 + n_2 \cdot ⌀_2^2}{n_1 \cdot ⌀_1 + n_2 \cdot ⌀_2}"
    _numeric_equation: str = latex_replace_symbols(
        _equation,
        {
            r"n_1": f"{self.n_1:.{n}f}",
            r"⌀_1": f"{self.diam_1:.{n}f}",
            r"n_2": f"{self.n_2:.{n}f}",
            r"⌀_2": f"{self.diam_2:.{n}f}",
        },
        False,
    )
    return LatexFormula(
        return_symbol=r"⌀_{eq}",
        result=f"{self:.{n}f}",
        equation=_equation,
        numeric_equation=_numeric_equation,
        comparison_operator_label="=",
        unit="mm",
    )