Skip to content

formula_2_21

codes.cur.cur_228.formula_2_21

Contains formula 2.21 from CUR 228.

Classes:

codes.cur.cur_228.formula_2_21.Form2Dot21ModulusHorizontalSubgrade

Form2Dot21ModulusHorizontalSubgrade(r: M, e_p: KPA, alpha: DIMENSIONLESS)

Bases: Formula

Representation of equation 2.21 CUR 228.

Calculates the modulus of horizontal subgrade reaction (k_h) using Menard stiffness for r >= 0.3 m.

Parameters:

  • r (M) –

    The radius of a foundation pile [m]: r >= 0.3 m

  • e_p (KPA) –

    Elastic modulus of Ménard [kPa]: e_p ≈ beta * q_c beta: DIMENSIONLESS Dependent on soil type [-]: (table 2.1) q_c: KPA Cone resistance [kPa]

  • alpha (DIMENSIONLESS) –

    Factor dependent on soil type [-]: (table 2.1)

Source code in blueprints/codes/cur/cur_228/formula_2_21.py
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
def __init__(self, r: M, e_p: KPA, alpha: DIMENSIONLESS) -> None:
    """Calculates the modulus of horizontal subgrade reaction (k_h) using Menard stiffness for r >= 0.3 m.

    Parameters
    ----------
    r: M
        The radius of a foundation pile [m]:
        r >= 0.3 m
    e_p: KPA
        Elastic modulus of Ménard [kPa]:
        e_p ≈ beta * q_c
        beta: DIMENSIONLESS
            Dependent on soil type [-]: (table 2.1)
        q_c: KPA
            Cone resistance [kPa]
    alpha: DIMENSIONLESS
        Factor dependent on soil type [-]: (table 2.1)
    """
    super().__init__()
    self.r = float(r)
    self.e_p = float(e_p)
    self.alpha = float(alpha)

codes.cur.cur_228.formula_2_21.Form2Dot21ModulusHorizontalSubgrade.latex

latex(n: int = 3) -> LatexFormula

Latex representation of the full equation including result.

Parameters:

  • n (int, default: 3 ) –

    Number of decimals to round the result to

Returns:

  • LatexFormula

    Latex representation of the equation

Source code in blueprints/codes/cur/cur_228/formula_2_21.py
52
53
54
55
56
57
58
59
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:
    """Latex representation of the full equation including result.

    Parameters
    ----------
    n: int
        Number of decimals to round the result to

    Returns
    -------
    LatexFormula
        Latex representation of the equation

    """
    n = self.n_decimals

    return LatexFormula(
        return_symbol="k_{h}",
        equation=r"\frac{1}{3 \cdot E_{p}} \cdot "
        r"\left[1.3 \cdot R_{0} "
        r"\left( 2.65 \frac{R}{R_0}\right)^\alpha"
        r" + \alpha \cdot  R \right]",
        numeric_equation=rf"\frac{{1}}{{3 \cdot {self.e_p:.{n}}}} \cdot"
        rf"\left[1.3 \cdot {R_0:.{n}} "
        rf"\left( 2.65 \cdot \frac{{{self.r:.{n}}}}{{{R_0:.{n}}}}\right)^{{{self.alpha:.{n}f}}}"
        rf"+ {self.alpha:.{n}} \cdot {self.r:.{n}}\right]",
        result=f"{self:.{n}f}",
        unit="kN/m^3",
    )