Skip to content

formula_7_13

codes.eurocode.en_1992_1_1_2004.chapter_7_serviceability_limit_state.formula_7_13

Formula 7.13 from EN 1992-1-1:2004: Chapter 7 - Serviceability limit state (SLS).

Classes:

codes.eurocode.en_1992_1_1_2004.chapter_7_serviceability_limit_state.formula_7_13.Form7Dot13CoefficientK2

Form7Dot13CoefficientK2(epsilon_1: DIMENSIONLESS, epsilon_2: DIMENSIONLESS)

Bases: Formula

Class representing formula 7.13 for the calculation of [\(k_2\)].

[\(k_2\)] Calculation of the coefficient for distribution of strain [\(-\)].

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

Parameters:

  • epsilon_1 (DIMENSIONLESS) –

    [\(\epsilon_1\)] Greater tensile strain at the boundaries of the section considered [\(-\)].

  • epsilon_2 (DIMENSIONLESS) –

    [\(\epsilon_2\)] Lesser tensile strain at the boundaries of the section considered [\(-\)].

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_7_serviceability_limit_state/formula_7_13.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
def __init__(self, epsilon_1: DIMENSIONLESS, epsilon_2: DIMENSIONLESS) -> None:
    r"""[$k_2$] Calculation of the coefficient for distribution of strain [$-$].

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

    Parameters
    ----------
    epsilon_1 : DIMENSIONLESS
        [$\epsilon_1$] Greater tensile strain at the boundaries of the section considered [$-$].
    epsilon_2 : DIMENSIONLESS
        [$\epsilon_2$] Lesser tensile strain at the boundaries of the section considered [$-$].
    """
    super().__init__()
    self.epsilon_1 = epsilon_1
    self.epsilon_2 = epsilon_2

codes.eurocode.en_1992_1_1_2004.chapter_7_serviceability_limit_state.formula_7_13.Form7Dot13CoefficientK2.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 7.13.

Source code in blueprints/codes/eurocode/en_1992_1_1_2004/chapter_7_serviceability_limit_state/formula_7_13.py
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 7.13."""
    _equation: str = r"\frac{\epsilon_1 + \epsilon_2}{2 \cdot \epsilon_1}"
    _numeric_equation: str = latex_replace_symbols(
        _equation,
        {
            r"\epsilon_1": f"{self.epsilon_1:.{n}f}",
            r"\epsilon_2": f"{self.epsilon_2:.{n}f}",
        },
        False,
    )
    return LatexFormula(
        return_symbol=r"k_2",
        result=f"{self._evaluate(self.epsilon_1, self.epsilon_2):.{n}f}",
        equation=_equation,
        numeric_equation=_numeric_equation,
        comparison_operator_label="=",
        unit="-",
    )