Skip to content

formula_2_1

codes.eurocode.en_1993_1_1_2005.chapter_2_basic_of_design.formula_2_1

Formula 2.1 from EN 1993-1-1:2005: Chapter 2: Basis of design.

Classes:

codes.eurocode.en_1993_1_1_2005.chapter_2_basic_of_design.formula_2_1.Form2Dot1DesignValueResistance

Form2Dot1DesignValueResistance(r_k: N, gamma_m: DIMENSIONLESS)

Bases: Formula

Class representing formula 2.1 for the calculation of the design value of the resistance [\(R_d\)].

[\(R_d\)] Design value of the resistance [\(N\)].

EN 1993-1-1:2005 art.2.4.3(1) - Formula (2.1)

Parameters:

  • r_k (N) –

    [\(R_k\)] Characteristic value of the resistance [\(N\)].

  • gamma_m (DIMENSIONLESS) –

    [\(\gamma_{M}\)] Global partial factor for the resistance [\(-\)].

Source code in blueprints/codes/eurocode/en_1993_1_1_2005/chapter_2_basic_of_design/formula_2_1.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
def __init__(
    self,
    r_k: N,
    gamma_m: DIMENSIONLESS,
) -> None:
    r"""[$R_d$] Design value of the resistance [$N$].

    EN 1993-1-1:2005 art.2.4.3(1) - Formula (2.1)

    Parameters
    ----------
    r_k : N
        [$R_k$] Characteristic value of the resistance [$N$].
    gamma_m : DIMENSIONLESS
        [$\gamma_{M}$] Global partial factor for the resistance [$-$].
    """
    super().__init__()
    self.r_k = r_k
    self.gamma_m = gamma_m

codes.eurocode.en_1993_1_1_2005.chapter_2_basic_of_design.formula_2_1.Form2Dot1DesignValueResistance.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 2.1.

Source code in blueprints/codes/eurocode/en_1993_1_1_2005/chapter_2_basic_of_design/formula_2_1.py
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 2.1."""
    _equation: str = r"\frac{R_k}{\gamma_M}"
    _numeric_equation: str = latex_replace_symbols(
        _equation,
        {
            r"R_k": f"{self.r_k:.{n}f}",
            r"\gamma_M": f"{self.gamma_m:.{n}f}",
        },
    )
    _numeric_equation_with_units: str = latex_replace_symbols(
        _equation,
        {
            r"R_k": rf"{self.r_k:.{n}f} \ N",
            r"\gamma_M": f"{self.gamma_m:.{n}f}",
        },
    )
    return LatexFormula(
        return_symbol=r"R_{d}",
        result=f"{self:.{n}f}",
        equation=_equation,
        numeric_equation=_numeric_equation,
        numeric_equation_with_units=_numeric_equation_with_units,
        comparison_operator_label="=",
        unit="N",
    )