base.py
subsurfaceio.functions.base
Base functions.
Functions:
| Name | Description |
|---|---|
get_below_water_table |
Calculation function. |
get_coefficient_of_consolidation__terzaghi1925principles |
Calculation function. |
get_coefficient_of_earth_pressure_at_rest__mayne1982ko |
Calculation function. |
get_consolidation_state |
Calculation function. |
get_depth_middle |
Calculation function. |
get_effective_stress |
Calculation function. |
get_elasticity_modulus_from_shear_modulus |
Calculation function. |
get_elevation |
Calculation function. |
get_overconsolidation_ratio__ladd1991stability |
Calculation function. |
get_pore_water_pressure |
Calculation function. |
get_shear_strength__terzaghi1943theoretical |
Calculation function. |
get_shear_velocity__landau1959theory |
Calculation function. |
get_small_strain_shear_modulus__landau1959theory |
Calculation function. |
get_soil_type |
Calculation function. |
get_soil_type2 |
Calculation function. |
get_soil_type3 |
Calculation function. |
get_thickness |
Calculation function. |
get_total_stress |
Calculation function. |
get_undrained_shear_strength_ratio |
Calculation function. |
get_below_water_table
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth
|
float
|
Depth below ground surface to bottom of layer |
required |
water_table_present
|
bool
|
Indicates presence of water table |
required |
water_table
|
float
|
Depth to water table below ground surface |
float('nan')
|
Returns:
| Name | Type | Description |
|---|---|---|
below_water_table |
bool
|
Indicates if soil layer is below water table |
get_coefficient_of_consolidation__terzaghi1925principles
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
permeability
|
float
|
Soil permeability |
required |
constrained_modulus
|
float
|
Constrained modulus of soil |
required |
Returns:
| Name | Type | Description |
|---|---|---|
coefficient_of_consolidation |
float
|
Coefficient of consolidation for soil |
get_coefficient_of_earth_pressure_at_rest__mayne1982ko
get_coefficient_of_earth_pressure_at_rest__mayne1982ko(
friction_angle,
peak_friction_angle,
overconsolidation_ratio,
is_fine_soil,
)
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
friction_angle
|
float
|
Friction angle of soil |
required |
peak_friction_angle
|
float
|
Peak friction angle of soil |
required |
overconsolidation_ratio
|
float
|
Overconsolidation ratio of soil |
required |
is_fine_soil
|
bool
|
Indicates if soil is fine-grained |
required |
Returns:
| Name | Type | Description |
|---|---|---|
coefficient_of_earth_pressure_at_rest |
float
|
Coefficient of lateral earth pressure at rest |
get_consolidation_state
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
overconsolidation_ratio
|
float
|
Overconsolidation ratio of soil |
required |
Returns:
| Name | Type | Description |
|---|---|---|
consolidation_state |
str
|
Soil consolidation state description |
get_depth_middle
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth
|
float
|
Depth below ground surface to bottom of layer |
required |
thickness
|
float
|
Thickness of soil layer |
required |
Returns:
| Name | Type | Description |
|---|---|---|
depth_middle |
float
|
Depth below ground surface to middle of layer |
get_effective_stress
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
total_stress
|
float
|
Total vertical stress in soil |
required |
pore_water_pressure
|
float
|
Pore water pressure in soil |
required |
Returns:
| Name | Type | Description |
|---|---|---|
effective_stress |
float
|
Effective vertical stress in soil |
get_elasticity_modulus_from_shear_modulus
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
small_strain_shear_modulus
|
float
|
Small strain shear modulus of soil |
required |
poisson_ratio
|
float
|
Poisson’s ratio of soil |
required |
Returns:
| Name | Type | Description |
|---|---|---|
elasticity_modulus |
float
|
Modulus of elasticity of soil |
get_elevation
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth
|
float
|
Depth below ground surface to bottom of layer |
required |
surface_elevation
|
float
|
Ground surface elevation |
0.0
|
Returns:
| Name | Type | Description |
|---|---|---|
elevation |
float
|
Elevation of soil layer bottom depth |
get_overconsolidation_ratio__ladd1991stability
get_overconsolidation_ratio__ladd1991stability(
undrained_shear_strength,
effective_stress,
is_fine_soil,
shansep_method_s=0.22,
shansep_method_m=0.8,
)
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
undrained_shear_strength
|
float
|
Undrained shear strength of soil |
required |
effective_stress
|
float
|
Effective vertical stress in soil |
required |
is_fine_soil
|
bool
|
Indicates if soil is fine-grained |
required |
shansep_method_s
|
float
|
SHANSEP method s parameter |
0.22
|
shansep_method_m
|
float
|
SHANSEP method m parameter |
0.8
|
Returns:
| Name | Type | Description |
|---|---|---|
overconsolidation_ratio |
float
|
Overconsolidation ratio of soil |
get_pore_water_pressure
get_pore_water_pressure(
water_table_present,
water_table=float("nan"),
depth=float("nan"),
water_unit_weight=9.81,
)
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
water_table_present
|
bool
|
Indicates presence of water table |
required |
water_table
|
float
|
Depth to water table below ground surface |
float('nan')
|
depth
|
float
|
Depth below ground surface to bottom of layer |
float('nan')
|
water_unit_weight
|
float
|
Unit weight of water |
9.81
|
Returns:
| Name | Type | Description |
|---|---|---|
pore_water_pressure |
float
|
Pore water pressure in soil |
get_shear_strength__terzaghi1943theoretical
get_shear_strength__terzaghi1943theoretical(
undrained_shear_strength,
effective_stress,
friction_angle,
)
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
undrained_shear_strength
|
float
|
Undrained shear strength of soil |
required |
effective_stress
|
float
|
Effective vertical stress in soil |
required |
friction_angle
|
float
|
Friction angle of soil |
required |
Returns:
| Name | Type | Description |
|---|---|---|
shear_strength |
float
|
Shear strength of soil |
get_shear_velocity__landau1959theory
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
small_strain_shear_modulus
|
float
|
Small strain shear modulus of soil |
required |
unit_weight
|
float
|
Unit weight of soil |
required |
Returns:
| Name | Type | Description |
|---|---|---|
shear_velocity |
float
|
Shear wave velocity of soil |
get_small_strain_shear_modulus__landau1959theory
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit_weight
|
float
|
Unit weight of soil |
required |
shear_velocity
|
float
|
Shear wave velocity of soil |
required |
Returns:
| Name | Type | Description |
|---|---|---|
small_strain_shear_modulus |
float
|
Small strain shear modulus of soil |
get_soil_type
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uscs_symbol
|
str
|
Unified Soil Classification System symbol |
required |
Returns:
| Name | Type | Description |
|---|---|---|
soil_type |
str
|
Primary soil type description |
get_soil_type2
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uscs_symbol
|
str
|
Unified Soil Classification System symbol |
required |
Returns:
| Name | Type | Description |
|---|---|---|
soil_type2 |
str
|
Secondary soil type description |
get_soil_type3
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uscs_symbol
|
str
|
Unified Soil Classification System symbol |
required |
Returns:
| Name | Type | Description |
|---|---|---|
soil_type3 |
str
|
Tertiary soil type description |
get_thickness
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth
|
float
|
Depth below ground surface to bottom of layer |
required |
Returns:
| Name | Type | Description |
|---|---|---|
thickness |
float
|
Thickness of soil layer |
get_total_stress
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit_weight
|
float
|
Unit weight of soil |
required |
thickness
|
float
|
Thickness of soil layer |
required |
default_unit_weight
|
float
|
Unit weight used for missing or undefined values |
16.0
|
total_stress_inc
|
float
|
Total stress in soil increment |
0.0
|
Returns:
| Name | Type | Description |
|---|---|---|
total_stress |
float
|
Total vertical stress in soil |
get_undrained_shear_strength_ratio
Calculation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
undrained_shear_strength
|
float
|
Undrained shear strength of soil |
required |
effective_stress
|
float
|
Effective vertical stress in soil |
required |
Returns:
| Name | Type | Description |
|---|---|---|
undrained_shear_strength_ratio |
float
|
Undrained shear strength to effective stress ratio |