GeoMechCase
- class rips.GeoMechCase(pb2_object: PdmObject | None = None, channel: Channel | None = None)
Bases:
CaseThe Abaqus Based GeoMech Case
Methods Summary
create_well_bore_stability_plot(well_path, ...)Create a new well bore stability plot
result_names([result_position])Get the result names of this geomechanical case
result_values(field_name[, component_name, ...])Read the values of a geomechanical result
Get the time step strings of this geomechanical case
views()All GeoMech Views in the Case
Methods Documentation
- create_well_bore_stability_plot(well_path: str | WellPath, time_step: int, parameters: WbsParameters | None = None) WellBoreStabilityPlot
Create a new well bore stability plot
- Parameters:
well_path (WellPath or str) -- well path object or well path name
time_step (int) -- time step
parameters (WbsParameters) -- optional parameters copied into the created plot
- Returns:
- result_names(result_position: GeoMechResultPosition = GeoMechResultPosition.ELEMENT_NODAL) List[str]
Get the result names of this geomechanical case
- Parameters:
result_position (GeoMechResultPosition) -- Result position, for example GeoMechResultPosition.NODAL or GeoMechResultPosition.ELEMENT_NODAL.
- Returns:
COMPONENT", or "FIELD" for results without components.
- Return type:
A list of names on the form "FIELD
- result_values(field_name: str, component_name: str = '', time_step: int = 0, result_position: GeoMechResultPosition = GeoMechResultPosition.ELEMENT_NODAL, frame_index: int = -1) List[float]
Read the values of a geomechanical result
- Parameters:
field_name (str) -- Result field name, e.g. "ST" or "POR-Bar".
component_name (str) -- Result component name, e.g. "S1". Empty for results without components.
time_step (int) -- Zero-based time step index.
result_position (GeoMechResultPosition) -- Result position of the result.
frame_index (int) -- Zero-based frame index. Negative selects the last frame of the time step.
- Returns:
The values of all parts, in the order used by ResInsight for the result position. Values are NaN where the result is not defined.
- time_step_strings() List[str]
Get the time step strings of this geomechanical case
- Returns:
A list of time step strings, one per time step. The list index matches the time_step argument of result_values().
- views() List[GeoMechView]
All GeoMech Views in the Case
- Returns:
List[GeoMechView]