Skip to content

formula_6_9

codes.eurocode.en_1993_1_1_2005.chapter_6_ultimate_limit_state.formula_6_9

Formula 6.9 from EN 1993-1-1:2005: Chapter 6 - Ultimate Limit State.

Classes:

codes.eurocode.en_1993_1_1_2005.chapter_6_ultimate_limit_state.formula_6_9.Form6Dot9CheckCompressionForce

Form6Dot9CheckCompressionForce(n_ed: N, n_c_rd: N)

Bases: ComparisonFormula

Class representing formula 6.9 for the test of the compression force.

Check the compression force.

EN 1993-1-1:2005 art.6.2.4(1) - Formula (6.9)

Parameters:

  • n_ed (N) –

    [\(N_{Ed}\)] Design value of the compression force [N].

  • n_c_rd (N) –

    [\(N_{c,Rd}\)] Design resistance of the cross-section for uniform compression [N].

Source code in blueprints/codes/eurocode/en_1993_1_1_2005/chapter_6_ultimate_limit_state/formula_6_9.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
def __init__(
    self,
    n_ed: N,
    n_c_rd: N,
) -> None:
    r"""Check the compression force.

    EN 1993-1-1:2005 art.6.2.4(1) - Formula (6.9)

    Parameters
    ----------
    n_ed : N
        [$N_{Ed}$] Design value of the compression force [N].
    n_c_rd : N
        [$N_{c,Rd}$] Design resistance of the cross-section for uniform compression [N].
    """
    super().__init__()
    self.n_ed = n_ed
    self.n_c_rd = n_c_rd

codes.eurocode.en_1993_1_1_2005.chapter_6_ultimate_limit_state.formula_6_9.Form6Dot9CheckCompressionForce.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 6.9.

Source code in blueprints/codes/eurocode/en_1993_1_1_2005/chapter_6_ultimate_limit_state/formula_6_9.py
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 6.9."""
    _equation: str = r"\left( \frac{N_{Ed}}{N_{c,Rd}} \leq 1 \right)"
    _numeric_equation: str = latex_replace_symbols(
        template=_equation,
        replacements={
            "N_{Ed}": f"{self.n_ed:.{n}f}",
            "N_{c,Rd}": f"{self.n_c_rd:.{n}f}",
        },
        unique_symbol_check=False,
    )
    _intermediate_result: str = rf"\left( {self.lhs:.{n}f} \leq 1 \right)"
    return LatexFormula(
        return_symbol=r"CHECK",
        result="OK" if self.__bool__() else "\\text{Not OK}",
        intermediate_result=_intermediate_result,
        equation=_equation,
        numeric_equation=_numeric_equation,
        comparison_operator_label="\\to",
        unit="",
    )