Skip to content

formula_2_2

codes.eurocode.nen_9997_1_c2_2017.chapter_2_basic_of_geotechnical_design.formula_2_2

Formula 2.2 from NEN 9997-1+C2:2017: Chapter 2: Basis of geotechnical design.

Classes:

codes.eurocode.nen_9997_1_c2_2017.chapter_2_basic_of_geotechnical_design.formula_2_2.Form2Dot2DesignValueGeotechnicalParameter

Form2Dot2DesignValueGeotechnicalParameter(
    x_k: DIMENSIONLESS, gamma_m: DIMENSIONLESS
)

Bases: Formula

Class representing formula 2.2 for the calculation of the design value [\(X_d\)] of geotechnical parameter [\(X\)].

[\(X_d\)] Design value of geotechnical parameter [\(X\)].

NEN 9997-1+C2:2017 art.2.4.6.2(1) - Formula (2.2)

Parameters:

  • x_k (DIMENSIONLESS) –

    [\(X_{k}\)] Characteristic value of geotechnical parameter [\(X\)].

  • gamma_m (DIMENSIONLESS) –

    [\(\gamma_M\)] material partial factor [\(-\)].

Source code in blueprints/codes/eurocode/nen_9997_1_c2_2017/chapter_2_basic_of_geotechnical_design/formula_2_2.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
def __init__(self, x_k: DIMENSIONLESS, gamma_m: DIMENSIONLESS) -> None:
    r"""[$X_d$] Design value of geotechnical parameter [$X$].

    NEN 9997-1+C2:2017 art.2.4.6.2(1) - Formula (2.2)

    Parameters
    ----------
    x_k : DIMENSIONLESS
        [$X_{k}$] Characteristic value of geotechnical parameter [$X$].
    gamma_m : DIMENSIONLESS
        [$\gamma_M$] material partial factor [$-$].
    """
    super().__init__()
    self.x_k = x_k
    self.gamma_m = gamma_m

codes.eurocode.nen_9997_1_c2_2017.chapter_2_basic_of_geotechnical_design.formula_2_2.Form2Dot2DesignValueGeotechnicalParameter.latex

latex(n: int = 3) -> LatexFormula

Returns LatexFormula object for formula 2.2.

Source code in blueprints/codes/eurocode/nen_9997_1_c2_2017/chapter_2_basic_of_geotechnical_design/formula_2_2.py
41
42
43
44
45
46
47
48
49
50
51
def latex(self, n: int = 3) -> LatexFormula:
    """Returns LatexFormula object for formula 2.2."""
    numerator = f"{self.x_k:.{n}f}"
    denominator = f"{self.gamma_m:.{n}f}"
    return LatexFormula(
        return_symbol="X_d",
        result=f"{self:.{n}f}",
        equation=r"\frac{X_{k}}{\gamma_M}",
        numeric_equation=f"{latex_fraction(numerator=numerator, denominator=denominator)}",
        comparison_operator_label="=",
    )