geolysis 0.10.0__py3-none-any.whl → 0.10.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
geolysis/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from . import bearing_capacity, foundation, soil_classifier, spt
2
2
 
3
- __version__ = "0.10.0"
3
+ __version__ = "0.10.2"
4
4
 
5
5
  __all__ = ["foundation", "soil_classifier", "spt", "bearing_capacity"]
@@ -15,10 +15,10 @@ class AllowableBearingCapacity(ABC):
15
15
  MAX_TOL_SETTLEMENT = 25.4
16
16
 
17
17
  def __init__(
18
- self,
19
- corrected_spt_n_value: float,
20
- tol_settlement: float,
21
- foundation_size: Foundation,
18
+ self,
19
+ corrected_spt_n_value: float,
20
+ tol_settlement: float,
21
+ foundation_size: Foundation,
22
22
  ) -> None:
23
23
  self.corrected_spt_n_value = corrected_spt_n_value
24
24
  self.tol_settlement = tol_settlement
@@ -42,7 +42,7 @@ class AllowableBearingCapacity(ABC):
42
42
  @tol_settlement.setter
43
43
  @validate_func_args
44
44
  def tol_settlement(
45
- self, tol_settlement: Annotated[float, MustBeLessThanOrEqual(25.4)]
45
+ self, tol_settlement: Annotated[float, MustBeLessThanOrEqual(25.4)]
46
46
  ):
47
47
  self._tol_settlement = tol_settlement
48
48
 
@@ -56,5 +56,11 @@ class AllowableBearingCapacity(ABC):
56
56
  width = self.foundation_size.width
57
57
  return min(1.0 + 0.33 * depth / width, 1.33)
58
58
 
59
+ def bearing_capacity_results(self) -> dict:
60
+ return {
61
+ "bearing_capacity": self.bearing_capacity(),
62
+ "depth_factor": self._fd(),
63
+ }
64
+
59
65
  @abstractmethod
60
66
  def bearing_capacity(self): ...
@@ -103,6 +103,11 @@ class TerzaghiABC4PadFoundation(AllowableBearingCapacity):
103
103
  * self._sr()
104
104
  )
105
105
 
106
+ def bearing_capacity_results(self) -> dict:
107
+ res = super().bearing_capacity_results()
108
+ res["water_correction_factor"] = self._cw()
109
+ return res
110
+
106
111
 
107
112
  class TerzaghiABC4MatFoundation(TerzaghiABC4PadFoundation):
108
113
  r"""Allowable bearing capacity for mat foundation on cohesionless
@@ -195,6 +195,23 @@ class UltimateBearingCapacity(ABC):
195
195
  + self._embedment_term(0.5)
196
196
  )
197
197
 
198
+ def bearing_capacity_results(self) -> dict:
199
+ return {
200
+ "bearing_capacity": self.bearing_capacity(),
201
+ "n_c": self.n_c,
202
+ "n_q": self.n_q,
203
+ "n_gamma": self.n_gamma,
204
+ "s_c": self.s_c,
205
+ "s_q": self.s_q,
206
+ "s_gamma": self.s_gamma,
207
+ "d_c": self.d_c,
208
+ "d_q": self.d_q,
209
+ "d_gamma": self.d_gamma,
210
+ "i_c": self.i_c,
211
+ "i_q": self.i_q,
212
+ "i_gamma": self.i_gamma,
213
+ }
214
+
198
215
  @property
199
216
  @abstractmethod
200
217
  def n_c(self) -> float:
@@ -657,9 +657,7 @@ class USCS:
657
657
  ):
658
658
  """
659
659
  :param atterberg_limits: Atterberg limits of the soil.
660
-
661
660
  :param psd: Particle size distribution of the soil.
662
-
663
661
  :param organic: Indicates whether soil is organic or not.
664
662
  """
665
663
  self.atterberg_limits = atterberg_limits
@@ -782,7 +780,9 @@ class USCS:
782
780
 
783
781
 
784
782
  def create_aashto_classifier(
785
- liquid_limit: float, plastic_limit: float, fines: float
783
+ liquid_limit: float,
784
+ plastic_limit: float,
785
+ fines: float,
786
786
  ) -> AASHTO:
787
787
  """A helper function that encapsulates the creation of a AASHTO
788
788
  classifier.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geolysis
3
- Version: 0.10.0
3
+ Version: 0.10.2
4
4
  Summary: geolysis is an opensource software for geotechnical engineering analysis and modeling.
5
5
  Author-email: Patrick Boateng <boatengpato.pb@gmail.com>
6
6
  License: MIT License
@@ -24,6 +24,7 @@ Classifier: Topic :: Scientific/Engineering
24
24
  Requires-Python: >=3.11
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE.txt
27
+ Requires-Dist: func-validator
27
28
  Provides-Extra: dev
28
29
  Requires-Dist: pytest; extra == "dev"
29
30
  Requires-Dist: pytest-cov; extra == "dev"
@@ -56,6 +57,9 @@ The `geolysis` python package is among three other projects, `geolysis.excel`,
56
57
  `geolysis.gui`, and `geolysis.ai`. More details about these projects are
57
58
  provided [here](https://github.com/geolysis-dev).
58
59
 
60
+ `geolysis` has only one project dependency which is [func-validator](https://github.com/patrickboateng/func-validator/)
61
+ for validating `function` (and `method`) arguments.
62
+
59
63
  The rest of this **README** provides an overview of the `geolysis` python
60
64
  package.
61
65
 
@@ -1,22 +1,22 @@
1
- geolysis/__init__.py,sha256=_BzryYcgDYjfkWn75IfellVNRi3uyzQcTD4P8z7pElE,161
1
+ geolysis/__init__.py,sha256=KhU464V_BkITyZRQohK6zh_d5Lt3y2sQ57B1hXvMlko,161
2
2
  geolysis/foundation.py,sha256=khmZCa8V-UEqp7A4WlIwt8Oy5tVQdT0UsaLMuxEbDQU,12819
3
- geolysis/soil_classifier.py,sha256=rScsrMR7mNOkKuWWiduJzsakibyYR2S0-tLrXbYSobQ,27427
3
+ geolysis/soil_classifier.py,sha256=gPOl9Fr18r4aDtVBFK5KdWdsLIvpTLLMTt7YU49noSA,27442
4
4
  geolysis/spt.py,sha256=_AWfs5Ho5ScCwPlVDNh6cuhcLOR4-u7Dr7UoagRlDoM,18620
5
5
  geolysis/utils.py,sha256=hgAeuMoGxL_GRbzYD3jZHglFxAmeqUa8FBqM0sm40lc,2394
6
6
  geolysis/bearing_capacity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  geolysis/bearing_capacity/abc/__init__.py,sha256=QCSni6_QI059y3JF5UU9Gd_wAyVLmVEMR7ajq_EZQRg,518
8
8
  geolysis/bearing_capacity/abc/_cohl/__init__.py,sha256=M1EBn2WMgtG-Dg-LT7N-OVke6upwL6plqyPCn3ebR0M,4110
9
- geolysis/bearing_capacity/abc/_cohl/_core.py,sha256=Ix6bSkTlP0zxN6CuH_lHT1B3ug9ZvbGjOImlU4IABOU,1739
9
+ geolysis/bearing_capacity/abc/_cohl/_core.py,sha256=YhU6wDVaMOxMUGQ0QHKCeD0eHHTj3la_R3iBBF1-hl0,1932
10
10
  geolysis/bearing_capacity/abc/_cohl/bowles_abc.py,sha256=AC0OslIUZBxC5ClB0HNvLoVDwnt982l8OGPuxyE2uZ0,3153
11
11
  geolysis/bearing_capacity/abc/_cohl/meyerhof_abc.py,sha256=Zf4X6YVrPMH5Sgm0bORbWe4RgfO-jVJBdeRWl8jBRH8,3056
12
- geolysis/bearing_capacity/abc/_cohl/terzaghi_abc.py,sha256=KKutVHYRFlS5SFFRVJEMKOfROFPk5MnCgQ6LmIdv1ow,4131
12
+ geolysis/bearing_capacity/abc/_cohl/terzaghi_abc.py,sha256=za5Altz8uzIqY0RJML8FTCIIyRSyHN04j7y80zop6JA,4300
13
13
  geolysis/bearing_capacity/ubc/__init__.py,sha256=5EtGLFW0vwCfUGxQDKPQJ687C9AKRlbYEPYb2aY2AgA,4578
14
- geolysis/bearing_capacity/ubc/_core.py,sha256=Fbp5AXdixDUAL4YRz-BP92AHhYL1ROBOX_FEVUGxEaw,6057
14
+ geolysis/bearing_capacity/ubc/_core.py,sha256=GfE0ZzPqC5VJ8PakR5ZiFvsfSwuEYrEzuPOuVdLnz_Q,6570
15
15
  geolysis/bearing_capacity/ubc/_hansen_ubc.py,sha256=aVu40WFCtvstWNq3x65Klb9am4UfJq00MtfaJYIwifI,6995
16
16
  geolysis/bearing_capacity/ubc/_terzaghi_ubc.py,sha256=U9mt92glUuooXnd_NPOFDpEdG15bTdb_KPPXLu5zjPw,5503
17
17
  geolysis/bearing_capacity/ubc/_vesic_ubc.py,sha256=a8TvlJCZ4AMU_YEVE0DEXb_Eo75uVOtOLDg-mC3zYlc,7034
18
- geolysis-0.10.0.dist-info/licenses/LICENSE.txt,sha256=ap6sMs3lT7ICbEXBhgihwH1BTCVcjmCQkIkwVnil1Ak,1065
19
- geolysis-0.10.0.dist-info/METADATA,sha256=l5am6GR_xC1gpLUEVO-Ase9kCGXrBxocPLiVcMtkXYg,6611
20
- geolysis-0.10.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- geolysis-0.10.0.dist-info/top_level.txt,sha256=9mnQgOaCRr11dtXff8X-q3FfXjRONd6kHseSy5q2y8g,9
22
- geolysis-0.10.0.dist-info/RECORD,,
18
+ geolysis-0.10.2.dist-info/licenses/LICENSE.txt,sha256=ap6sMs3lT7ICbEXBhgihwH1BTCVcjmCQkIkwVnil1Ak,1065
19
+ geolysis-0.10.2.dist-info/METADATA,sha256=C7k4XQDahVEox37SMS8gCtjLjKMFeJZMlZzgGj-aWM0,6814
20
+ geolysis-0.10.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ geolysis-0.10.2.dist-info/top_level.txt,sha256=9mnQgOaCRr11dtXff8X-q3FfXjRONd6kHseSy5q2y8g,9
22
+ geolysis-0.10.2.dist-info/RECORD,,