ge.profile — API reference¶
Soil
dataclass
¶
Soil(name: str = 'Soil', gamma: float = 18.0, gamma_sat: Optional[float] = None, phi: float = 30.0, c: float = 0.0, e: Optional[float] = None, Gs: float = 2.7, k: Optional[float] = None, Es: Optional[float] = None, mu: float = 0.3, Cc: Optional[float] = None, Cr: Optional[float] = None, OCR: float = 1.0, Su: Optional[float] = None, description: str = '')
A single soil layer's engineering properties.
Examples:
>>> from geoeq.profile import Soil
>>> clay = Soil("Soft Clay", gamma=17, gamma_sat=18.5, phi=0, c=25, e=0.9)
>>> clay.name
'Soft Clay'
gamma_effective
¶
Submerged (buoyant) unit weight gamma' = gamma_sat - gamma_w.
SoilProfile
¶
Layered soil profile with stress computations and plotting.
| PARAMETER | DESCRIPTION |
|---|---|
layers
|
Layers in order of increasing depth. Layers must be contiguous and non-overlapping. Tops and bottoms in metres.
TYPE:
|
water_table
|
Depth of the phreatic surface (m, positive downward).
TYPE:
|
Examples:
>>> from geoeq.profile import Soil, SoilProfile
>>> p = SoilProfile([
... (0, 2, Soil("Fill", gamma=18)),
... (2, 8, Soil("Soft Clay", gamma=17, gamma_sat=18.5)),
... (8, 20, Soil("Dense Sand", gamma=19, gamma_sat=20.5)),
... ], water_table=2.0)
>>> round(p.effective_stress(10), 1)
133.7
Source code in geoeq/profile/profile.py
layers
¶
layer_at
¶
Return the Soil instance at depth z (m).
Source code in geoeq/profile/profile.py
add_layer
¶
Append a layer at the bottom of the profile.
Source code in geoeq/profile/profile.py
total_stress
¶
Total vertical stress sigma_v at depth z (kPa).
Notes
Integrates gamma above water table and gamma_sat below.
If the water table is above the ground surface, hydrostatic
pressure of the standing water is added.
Source code in geoeq/profile/profile.py
pore_pressure
¶
Hydrostatic pore water pressure u at depth z (kPa).
Source code in geoeq/profile/profile.py
effective_stress
¶
Effective vertical stress sigma'_v = sigma_v - u (kPa).
stress_at
¶
Return {'sigma': ..., 'u': ..., 'sigma_eff': ...} at depth z.
Source code in geoeq/profile/profile.py
to_dataframe
¶
Export layer data to a pandas DataFrame (if pandas is installed).
Source code in geoeq/profile/profile.py
plot
¶
Plot sigma, u, sigma' vs depth.
Returns the Matplotlib figure for further customization.
Source code in geoeq/profile/profile.py
mesh
¶
Calculation grid of depths from profile top to bottom at spacing dz.
Source code in geoeq/profile/profile.py
log_plot
¶
Multi-borehole log plot.
| PARAMETER | DESCRIPTION |
|---|---|
boreholes
|
Mapping of borehole label to profile.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Figure
|
|