Docs › Physics API reference › onesim.physics.geotechnics
A.7 onesim.physics.geotechnics
adapt_geotechnics_result function
adapt_geotechnics_result(result: object, *, provider_id: str | None = None, result_id: str = 'geotechnics.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet
Adapt any built-in geotechnics result through one explicit entry point.
adapt_groundwater_result function
adapt_groundwater_result(result: GroundwaterResult, *, result_id: str = 'geotechnics.groundwater.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet
Publish hydraulic head, Darcy flux, and the storage balance residual.
adapt_poromechanical_result function
adapt_poromechanical_result(result: PoromechanicalResult, *, result_id: str = 'geotechnics.poromechanics.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet
Publish coupled displacement/pressure fields and Biot diagnostics.
adapt_reservoir_result function
adapt_reservoir_result(result: ReservoirResult, *, result_id: str = 'geotechnics.reservoir.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet
Publish two-phase pressure, saturation, phase fluxes, and balances.
adapt_rock_mechanics_result function
adapt_rock_mechanics_result(result: RockMechanicsResult, *, result_id: str = 'geotechnics.rock_mechanics.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet
Publish rock-bar kinematics, stresses, plasticity, and failure data.
adapt_soil_mechanics_result function
adapt_soil_mechanics_result(result: SoilMechanicsResult, *, result_id: str = 'geotechnics.soil_mechanics.result', plan_reference: ArtifactReference | None = None, diagnostics: Sequence[str] = ()) -> SimulationResultSet
Publish consolidation fields, stresses, flux, and balance diagnostics.
BiotConsolidation class
BiotConsolidation(*, domain: object, model_id: str = <factory>, youngs_modulus: float, poisson_ratio: float, biot_coefficient: float, specific_storage: float, permeability: float, fluid_viscosity: float, fluid_supply: object = 0.0, body_force: object = (0.0, 0.0, 0.0)) -> None
Couple pore pressure and elastic displacement through fluid content and volumetric strain.
Declared fields. fluid_content (1, differential), displacement (m, algebraic, x/y/z), pore_pressure (Pa, algebraic), darcy_flux (m/s, derived, x/y/z), volumetric_strain (1, derived), water_supply (1/s, input), force_density (N/m^3, input, x/y/z).
BuckleyLeverettFlow class
BuckleyLeverettFlow(*, domain: object, model_id: str = <factory>, porosity: float, darcy_velocity: float, fractional_flow: object, water_source: object = 0.0) -> None
Advance water saturation from fractional flow with prescribed porosity, Darcy velocity and water source.
Declared fields. water_saturation (1, differential), water_flux (m/s, derived), oil_flux (m/s, derived), water_exchange (1/s, input).
DEFAULT_GEOTECHNICS_PROVIDER_REGISTRY value
Default registry for the domain provider route. Inspect the registered IDs when choosing a provider.
DrainedBoundary class
DrainedBoundary(*, boundary: object, physics: object, value: object = 0.0, factory: object = None) -> None
Set pore pressure on the draining boundary. The default value is zero.
GeotechnicsProviderRegistry class
GeotechnicsProviderRegistry() -> None
Register geotechnical providers by stable identifier.
Selected methods.
register(provider_id: str, factory: Callable[..., object]) -> None
create(provider_id: str, **parameters: object) -> object
ids() -> tuple[str, ...]
GroundwaterConfiguration class
GroundwaterConfiguration(provider: str = 'geotechnics.groundwater', mesh: str = 'core.coordinate_projection.1d', discretization: str = 'finite_difference', time_integration: str = 'classical_rk4', solver: str = 'explicit_diffusion', parameters: Mapping[str, object] = <factory>) -> None
Numerical selection for groundwater simulation.
Selected methods.
to_numerical_configuration() -> NumericalConfiguration
GroundwaterFlow class
GroundwaterFlow(*, domain: object, model_id: str = <factory>, conductivity: float, specific_storage: float, recharge: object = 0.0) -> None
Advance hydraulic head and compute Darcy flux with conductivity, storage and recharge.
Declared fields. head (m, differential), darcy_flux (m/s, derived), water_supply (1/s, input).
GroundwaterProvider class
GroundwaterProvider(*, cell_count: int = 64, conductivity: float = 1.0, storage: float = 1.0, recharge: float | Callable[[np.ndarray, float], np.ndarray] = 0.0, initial_head: np.ndarray | None = None, final_time: float = 0.0, time_step: float = 0.0001, time_integration: str = 'classical_rk4', **_: object) -> None
Integrate a transient confined-aquifer hydraulic-head equation.
Selected methods.
as_spatial_operator(*, method_id: str = 'spatial-method:fdm.groundwater', coordinates: np.ndarray | None = None, gradient_operator: object | None = None, diffusion_operator: object | None = None) -> CallableSpatialOperator
Expose the groundwater RHS through the common transient Study.
execute(problem: object | None = None) -> "'GroundwaterResult'"
Advance hydraulic head and return Darcy flux/storage diagnostics.
GroundwaterPublicApi class
GroundwaterPublicApi(*, provider_registry=None) -> None
Execute groundwater problems through shared Core numerical contracts.
Selected methods.
validate(configuration: GroundwaterConfiguration) -> tuple[str, ...]
run(configuration: GroundwaterConfiguration)
GroundwaterResult class
GroundwaterResult(coordinates: np.ndarray, head: np.ndarray, darcy_flux: np.ndarray, time: float, step_count: int, balance_residual: float) -> None
Groundwater head, Darcy flux, and storage residual.
Selected methods.
to_mapping() -> dict[str, object]
Return a serializable groundwater result mapping.
ImpermeableBoundary class
ImpermeableBoundary(*, boundary: object, physics: object, flux: object = 0.0, jacobian: object = None, wave_speed: object = 0.0, factory: object = None) -> None
Represent the no-discharge case at the default flux, with ports for a supplied boundary response.
PoreFluidFlux class
PoreFluidFlux(*, boundary: object, physics: object, flux: object, jacobian: object = None, wave_speed: object = 0.0, factory: object = None) -> None
Outward Darcy discharge in m/s, with its exact pressure response if dependent.
Selected methods.
semantic_conditions(condition_id)
bind_scalar_balance(*, model, mesh)
bind_finite_volume(*, model, mesh)
PoromechanicalResult class
PoromechanicalResult(coordinates: np.ndarray, state: PoromechanicalState, strain: np.ndarray, darcy_flux: np.ndarray, time: float, step_count: int, elastic_energy: float, fluid_storage_energy: float, coupling_residual: float) -> None
Final coupled fields and physically relevant Biot diagnostics.
Selected methods.
to_mapping() -> dict[str, object]
Return copied arrays and scalar diagnostics for serialization.
PoromechanicalState class
PoromechanicalState(displacement: np.ndarray, pore_pressure: np.ndarray) -> None
Coupled one-dimensional solid displacement and pore-pressure state.
PoromechanicsConfiguration class
PoromechanicsConfiguration(provider: str = 'geotechnics.poromechanics', mesh: str = 'core.coordinate_projection.1d', discretization: str = 'finite_difference', time_integration: str = 'classical_rk4', solver: str = 'coupled_biot_diffusion', parameters: Mapping[str, object] = <factory>) -> None
Select shared mesh, discretization, solver, and time integration contracts.
Selected methods.
to_numerical_configuration() -> NumericalConfiguration
Translate the public selection into the shared Core configuration.
PoromechanicsProvider class
PoromechanicsProvider(*, cell_count: int = 64, elastic_modulus: float = 1.0, biot_coefficient: float = 0.8, permeability: float = 1.0, fluid_viscosity: float = 1.0, storage: float = 1.0, solid_mobility: float = 1.0, body_force: FieldSource = 0.0, fluid_source: FieldSource = 0.0, initial_displacement: np.ndarray | None = None, initial_pore_pressure: np.ndarray | None = None, final_time: float = 0.0, time_step: float = 0.0001, time_integration: str = 'classical_rk4', **_: object) -> None
Integrate the one-dimensional quasi-static Biot system.
Selected methods.
as_spatial_operator(*, method_id: str = 'spatial-method:fdm.poromechanics') -> CallableSpatialOperator
Expose the coupled Biot fields through the common Study runner.
execute(problem: object | None = None) -> PoromechanicalResult
Advance (u, p) and return strains, fluxes, energies, and residual.
PoromechanicsPublicApi class
PoromechanicsPublicApi(*, provider_registry=None) -> None
Execute poromechanical problems through the geotechnics registry.
Selected methods.
validate(configuration: PoromechanicsConfiguration) -> tuple[str, ...]
Return all public-boundary configuration errors.
run(configuration: PoromechanicsConfiguration)
Validate and execute the configured provider.
PrescribedPorePressure class
PrescribedPorePressure(*, boundary: object, physics: object, value: object, factory: object = None) -> None
Pore pressure in Pa; callbacks return one pressure at time/world position.
Selected methods.
semantic_conditions(condition_id)
bind_scalar_balance(*, model, mesh)
bind_finite_volume(*, model, mesh)
QuadraticCoreyFractionalFlow class
QuadraticCoreyFractionalFlow(*, viscosity_ratio: float = 1.0) -> None
Zero residual saturations, krw=S^2, kro=(1-S)^2; ratio=mu_w/mu_o.
Selected methods.
fraction(saturation)
fraction_derivative(saturation)
ReservoirConfiguration class
ReservoirConfiguration(provider: str = 'geotechnics.reservoir', mesh: str = 'core.coordinate_projection.1d', discretization: str = 'finite_difference', time_integration: str = 'classical_rk4', solver: str = 'two_phase_darcy_fractional_flow', parameters: Mapping[str, object] = <factory>) -> None
Select shared numerical contracts and reservoir provider parameters.
Selected methods.
to_numerical_configuration() -> NumericalConfiguration
Translate this API object to the shared Core configuration.
ReservoirProvider class
ReservoirProvider(*, cell_count: int = 64, permeability: float = 1.0, porosity: float = 0.2, total_compressibility: float = 1.0, water_viscosity: float = 1.0, oil_viscosity: float = 2.0, residual_water_saturation: float = 0.1, residual_oil_saturation: float = 0.1, water_corey_exponent: float = 2.0, oil_corey_exponent: float = 2.0, pressure_source: FieldSource = 0.0, water_source: FieldSource = 0.0, initial_pressure: np.ndarray | None = None, initial_water_saturation: np.ndarray | None = None, final_time: float = 0.0, time_step: float = 0.0001, time_integration: str = 'classical_rk4', **_: object) -> None
Integrate an immiscible, incompressible two-phase Darcy reservoir model.
Selected methods.
as_spatial_operator(*, method_id: str = 'spatial-method:fdm.reservoir') -> CallableSpatialOperator
Expose pressure/saturation transport through the common Study.
execute(problem: object | None = None) -> ReservoirResult
Advance pressure and saturation and return phase diagnostics.
ReservoirPublicApi class
ReservoirPublicApi(*, provider_registry=None) -> None
Execute reservoir cases through the geotechnics provider registry.
Selected methods.
validate(configuration: ReservoirConfiguration) -> tuple[str, ...]
Return public-boundary validation errors.
run(configuration: ReservoirConfiguration)
Validate and execute the selected reservoir provider.
ReservoirResult class
ReservoirResult(coordinates: np.ndarray, state: ReservoirState, effective_water_saturation: np.ndarray, total_flux: np.ndarray, water_flux: np.ndarray, oil_flux: np.ndarray, time: float, step_count: int, pressure_balance_residual: float, saturation_balance_residual: float) -> None
Final reservoir fields, phase fluxes, and conservation diagnostics.
Selected methods.
to_mapping() -> dict[str, object]
Return copied arrays and scalar diagnostics for serialization.
ReservoirState class
ReservoirState(pressure: np.ndarray, water_saturation: np.ndarray) -> None
Pressure and wetting-phase saturation on one shared grid.
RockMechanicsConfiguration class
RockMechanicsConfiguration(provider: str = 'geotechnics.rock_mechanics', mesh: str = 'core.coordinate_projection.1d', discretization: str = 'finite_difference', time_integration: str = 'classical_rk4', solver: str = 'quasi_static_elastoplastic_relaxation', parameters: Mapping[str, object] = <factory>) -> None
Select shared numerical contracts and rock constitutive parameters.
Selected methods.
to_numerical_configuration() -> NumericalConfiguration
Translate this configuration into the shared Core configuration.
RockMechanicsProvider class
RockMechanicsProvider(*, cell_count: int = 64, youngs_modulus: float = 10.0, poisson_ratio: float = 0.25, cohesion: float = 1.0, friction_angle: float = 0.0, confining_pressure: FieldSource = 0.0, hardening_modulus: float = 0.0, shear_yield_stress: float | None = None, mobility: float = 1.0, body_force: FieldSource = 0.0, displacement_rate: FieldSource = 0.0, initial_displacement: np.ndarray | None = None, initial_equivalent_plastic_strain: np.ndarray | None = None, final_time: float = 0.0, time_step: float = 0.0001, time_integration: str = 'classical_rk4', **_: object) -> None
Advance a small-strain rock bar with Mohr-Coulomb/J2 plasticity.
Selected methods.
as_spatial_operator(*, method_id: str = 'spatial-method:fdm.rock_mechanics') -> CallableSpatialOperator
Expose the rock-bar equations through the common Study runner.
execute(problem: object | None = None) -> RockMechanicsResult
Advance displacement, perform constitutive updates, and report failure.
RockMechanicsPublicApi class
RockMechanicsPublicApi(*, provider_registry=None) -> None
Execute rock-mechanics cases through the geotechnics registry.
Selected methods.
validate(configuration: RockMechanicsConfiguration) -> tuple[str, ...]
Return public-boundary configuration errors.
run(configuration: RockMechanicsConfiguration)
Validate and execute the selected provider.
RockMechanicsResult class
RockMechanicsResult(coordinates: np.ndarray, state: RockMechanicsState, strain: np.ndarray, axial_stress: np.ndarray, yield_function: np.ndarray, confining_pressure: np.ndarray, time: float, step_count: int, elastic_energy: float, plastic_dissipation: float, equilibrium_residual: float) -> None
Final displacement, strain, stress, plastic history, and failure data.
Selected methods.
to_mapping() -> dict[str, object]
Return copied fields and scalar diagnostics.
RockMechanicsState class
RockMechanicsState(displacement: np.ndarray, equivalent_plastic_strain: np.ndarray) -> None
Displacement and committed scalar plastic history on one grid.
SaturationInlet class
SaturationInlet(*, boundary: object, physics: object, value: float) -> None
Supply inlet saturation for the model on the selected boundary.
Selected methods.
bind_finite_volume(*, model, mesh)
SaturationOutflow class
SaturationOutflow(*, boundary: object, physics: object) -> None
Supply the outgoing saturation trace treatment for the selected boundary.
Selected methods.
bind_finite_volume(*, model, mesh)
SoilMechanicsConfiguration class
SoilMechanicsConfiguration(provider: str = 'geotechnics.soil_mechanics', mesh: str = 'core.coordinate_projection.1d', discretization: str = 'finite_difference', time_integration: str = 'classical_rk4', solver: str = 'terzaghi_consolidation', parameters: Mapping[str, object] = <factory>) -> None
Select shared numerical contracts and consolidation parameters.
Selected methods.
to_numerical_configuration() -> NumericalConfiguration
Translate this configuration into the shared Core configuration.
SoilMechanicsProvider class
SoilMechanicsProvider(*, cell_count: int = 64, permeability: float = 1.0, fluid_viscosity: float = 1.0, storage: float = 1.0, coupling_coefficient: float = 1.0, constrained_compressibility: float = 0.01, effective_stress_coefficient: float = 1.0, total_stress: FieldSource = 0.0, total_stress_rate: FieldSource = 0.0, initial_pore_pressure: np.ndarray | None = None, initial_settlement: np.ndarray | None = None, initial_void_ratio: np.ndarray | None = None, final_time: float = 0.0, time_step: float = 0.0001, time_integration: str = 'classical_rk4', **_: object) -> None
Integrate a saturated 1D Terzaghi-type consolidation model.
Selected methods.
as_spatial_operator(*, method_id: str = 'spatial-method:fdm.soil_mechanics', coordinates: np.ndarray | None = None, gradient_operator: object | None = None, diffusion_operator: object | None = None) -> CallableSpatialOperator
Expose the consolidation fields through the common Study runner.
execute(problem: object | None = None) -> SoilMechanicsResult
Advance consolidation and return effective stress and drainage data.
SoilMechanicsPublicApi class
SoilMechanicsPublicApi(*, provider_registry=None) -> None
Execute soil-mechanics cases through the geotechnics registry.
Selected methods.
validate(configuration: SoilMechanicsConfiguration) -> tuple[str, ...]
Return public-boundary configuration errors.
run(configuration: SoilMechanicsConfiguration)
Validate and execute the selected provider.
SoilMechanicsResult class
SoilMechanicsResult(coordinates: np.ndarray, state: SoilMechanicsState, total_stress: np.ndarray, effective_stress: np.ndarray, darcy_flux: np.ndarray, time: float, step_count: int, pressure_balance_residual: float, settlement_balance_residual: float, degree_of_consolidation: float) -> None
Final consolidation fields and mass/effective-stress diagnostics.
Selected methods.
to_mapping() -> dict[str, object]
Return copied fields and scalar diagnostics for serialization.
SoilMechanicsState class
SoilMechanicsState(pore_pressure: np.ndarray, settlement: np.ndarray, void_ratio: np.ndarray) -> None
Excess pore pressure, accumulated compression, and void ratio.
TerzaghiConsolidation class
TerzaghiConsolidation(*, domain: object, model_id: str = <factory>, permeability: float, fluid_viscosity: float, constrained_storage: float, constrained_compressibility: float, total_stress: float, fluid_supply: object = 0.0) -> None
Advance the scalar consolidation balance with constrained storage, compressibility and prescribed total stress.
Declared fields. pore_pressure (Pa, differential), vertical_strain (1, differential), void_ratio (1, differential), effective_stress (Pa, derived), darcy_flux (m/s, derived), water_supply (1/s, input).