1- from geolysis .utils import (
2- cosdeg ,
3- cotdeg ,
4- deg2rad ,
5- exp ,
6- isclose ,
7- pi ,
8- round_ ,
9- tandeg ,
10- )
1+ from geolysis .utils import cosdeg , cotdeg , deg2rad , exp , isclose , pi , round_ , tandeg
2+
113from ._core import UltimateBearingCapacity
124
135__all__ = [
@@ -26,7 +18,7 @@ def n_c(friction_angle: float) -> float:
2618 if isclose (friction_angle , 0.0 ):
2719 return 5.7
2820 return cotdeg (friction_angle ) * (
29- TerzaghiBearingCapacityFactors .n_q (friction_angle ) - 1.0
21+ TerzaghiBearingCapacityFactors .n_q (friction_angle ) - 1.0
3022 )
3123
3224 @staticmethod
@@ -39,8 +31,7 @@ def n_q(friction_angle: float) -> float:
3931 @staticmethod
4032 @round_ (ndigits = 2 )
4133 def n_gamma (friction_angle : float ) -> float :
42- return (TerzaghiBearingCapacityFactors .n_q (
43- friction_angle ) - 1.0 ) * tandeg (
34+ return (TerzaghiBearingCapacityFactors .n_q (friction_angle ) - 1.0 ) * tandeg (
4435 1.4 * friction_angle
4536 )
4637
@@ -75,9 +66,9 @@ class TerzaghiUBC4StripFooting(TerzaghiUltimateBearingCapacity):
7566 def _bearing_capacity (self ) -> float :
7667 """Calculates ultimate bearing capacity for strip footing."""
7768 return (
78- self ._cohesion_term (1.0 )
79- + self ._surcharge_term ()
80- + self ._embedment_term (0.5 )
69+ self ._cohesion_term (1.0 )
70+ + self ._surcharge_term ()
71+ + self ._embedment_term (0.5 )
8172 )
8273
8374
@@ -93,9 +84,9 @@ class TerzaghiUBC4CircularFooting(TerzaghiUltimateBearingCapacity):
9384 def _bearing_capacity (self ) -> float :
9485 """Calculates ultimate bearing capacity for circular footing."""
9586 return (
96- self ._cohesion_term (1.3 )
97- + self ._surcharge_term ()
98- + self ._embedment_term (0.3 )
87+ self ._cohesion_term (1.3 )
88+ + self ._surcharge_term ()
89+ + self ._embedment_term (0.3 )
9990 )
10091
10192
@@ -110,9 +101,9 @@ class TerzaghiUBC4SquareFooting(TerzaghiUltimateBearingCapacity):
110101 def _bearing_capacity (self ):
111102 """Calcalates ultimate bearing capacity for square footing."""
112103 return (
113- self ._cohesion_term (1.3 )
114- + self ._surcharge_term ()
115- + self ._embedment_term (0.4 )
104+ self ._cohesion_term (1.3 )
105+ + self ._surcharge_term ()
106+ + self ._embedment_term (0.4 )
116107 )
117108
118109
@@ -133,7 +124,7 @@ def _bearing_capacity(self) -> float:
133124 emb_coef = (1.0 - 0.2 * (width / length )) / 2.0
134125
135126 return (
136- self ._cohesion_term (coh_coef )
137- + self ._surcharge_term ()
138- + self ._embedment_term (emb_coef )
127+ self ._cohesion_term (coh_coef )
128+ + self ._surcharge_term ()
129+ + self ._embedment_term (emb_coef )
139130 )
0 commit comments