Pipe-Soil Interaction Dynamic Tools#
PSI Dynamic Class#
- class pysubsea.pipe_soil_interaction_dynamic_tools.PSIDynamic(*, total_outer_diameter=0.0, specific_mass_ratio=0.0, soil_type=None)[source]#
Bases:
objectClass for dynamic soil stiffness calculations for pipeline spanning.
- Parameters:
total_outer_diameter (float or array-like, optional) – Total outer diameter of the pipe. Default is 0.
specific_mass_ratio (float or array-like, optional) – Relative mass ratio of the pipe to displaced water. Default is 0.
soil_type (str or array-like, optional) – Soil type for lookup: ‘Loose Sand’, ‘Medium Sand’, ‘Dense Sand’, ‘Very Soft Clay’, ‘Soft Clay’, ‘Firm Clay’, ‘Stiff Clay’, ‘Very Stiff Clay’, or ‘Hard Clay’. Default is None.
Notes
All inputs support scalar and array-like values. When arrays are supplied, NumPy broadcasting rules apply.
Input Parameters#
- PSIDynamic.total_outer_diameter#
Total outer diameter input for the pipe, supplied as a scalar or array-like value and stored as a NumPy array.
- PSIDynamic.specific_mass_ratio#
Pipe mass divided by displaced-water mass, supplied as a scalar or array-like value and stored as a NumPy array.
- PSIDynamic.soil_type#
Soil type input used to select lookup values. Accepts supported soil names as a scalar or array-like value and is stored as a NumPy array.
Soil Property Outputs#
- PSIDynamic.soil_properties()[source]#
Return lookup properties for the configured soil type.
- Returns:
Dictionary with keys
Cv,Cl,Kv, andsoil_poisson.- Return type:
dict
Examples
>>> soil_type = ["Medium Sand", "Stiff Clay"] >>> spanning = PSIDynamic(soil_type=soil_type) >>> for name, values in spanning.soil_properties().items(): ... print(f"{name}: {values}") Cv: [14500000. 4500000.] Cl: [12500000. 3900000.] Kv: [ 530000. 1600000.] soil_poisson: [0.35 0.5 ]
Dynamic Stiffness Outputs#
- PSIDynamic.dynamic_stiffness_horizontal()[source]#
Calculate the horizontal dynamic stiffness of the pipe based on soil type.
- Returns:
dynamic_stiffness_horizontal – Horizontal dynamic stiffness.
- Return type:
np.ndarray
- Raises:
ValueError – If the soil type is not supported.
Notes
The dynamic stiffness is calculated using the soil lookup tables for sand and clay.
Examples
>>> total_outer_diameter = [0.3221, 0.4719] >>> specific_mass_ratio = [1.78291962, 1.41489701] >>> soil_type = ["Medium Sand", "Stiff Clay"] >>> spanning = PSIDynamic( ... total_outer_diameter=total_outer_diameter, ... specific_mass_ratio=specific_mass_ratio, ... soil_type=soil_type ... ) >>> np.round(spanning.dynamic_stiffness_horizontal(), 1) array([14576004.9, 5130208.5])
- PSIDynamic.dynamic_stiffness_vertical()[source]#
Calculate the vertical dynamic stiffness of the pipe based on soil type.
- Returns:
k_vert_dynamic – Vertical dynamic stiffness.
- Return type:
np.ndarray
- Raises:
ValueError – If the soil type is not supported.
Notes
The dynamic stiffness is calculated using the soil lookup tables for sand and clay.
Examples
>>> total_outer_diameter = [0.3221, 0.4719] >>> specific_mass_ratio = [1.78291962, 1.41489701] >>> soil_type = ["Medium Sand", "Stiff Clay"] >>> spanning = PSIDynamic( ... total_outer_diameter=total_outer_diameter, ... specific_mass_ratio=specific_mass_ratio, ... soil_type=soil_type ... ) >>> np.round(spanning.dynamic_stiffness_vertical(), 1) array([19268564.9, 7892628.5])