VIV Cross-Flow Calculations#

VIVCF Class#

class pysubsea.viv_cf_tools.VIVCF(*, outer_diameter=0.0, gap=0.0, trench_depth=0.0, onset_safety_factor=1.0)[source]#

Bases: object

Class for normal cross-flow VIV onset velocity calculations. Supports both scalar and array inputs for calculations.

Parameters:
  • outer_diameter (float or array-like, optional) – Pipe outer diameter. Default is 0.

  • gap (float or array-like, optional) – Span gap. Default is 0.

  • trench_depth (float or array-like, optional) – Trench depth. Default is 0. Geometry must use consistent length units.

  • onset_safety_factor (float or array-like, optional) – Cross-flow onset safety factor. Default is 1.

Input Parameters#

VIVCF.outer_diameter#

Pipe outer diameter.

VIVCF.gap#

Span gap, in the same length units as diameter and trench depth.

VIVCF.trench_depth#

Trench depth.

VIVCF.onset_safety_factor#

Positive cross-flow onset safety factor.

Correction Factors and Onset Velocity#

VIVCF.seabed_proximity_correction_factor()[source]#

Calculate the correction factor accounting for seabed proximity.

Returns:

proximity_correction_factor – Correction factor, broadcasting the gap and outer diameter.

Return type:

np.ndarray

Examples

>>> outer_diameter=[0.2731, 0.3239]
>>> gap=[0.15, 0.25]
>>> response = VIVCF(
...     outer_diameter=outer_diameter,
...     gap=gap
... )
>>> response.seabed_proximity_correction_factor()
array([0.93731234, 0.99296079])
VIVCF.trench_onset_correction_factor()[source]#

Calculate the onset correction factor accounting for a pipe in or over a trench.

Returns:

trench_onset_correction_factor – Correction factor, broadcasting the trench depth, gap, and outer diameter.

Return type:

np.ndarray

Examples

>>> outer_diameter=[0.2731, 0.3239]
>>> gap=[0.6, 0.8]
>>> trench_depth=[0.3, 0.5]
>>> response = VIVCF(
...     outer_diameter=outer_diameter,
...     gap=gap,
...     trench_depth=trench_depth
... )
>>> response.trench_onset_correction_factor()
array([0.58806298, 0.72985489])
VIVCF.onset_reduced_velocity()[source]#

Calculate onset velocity corrected for seabed proximity and trench.

Returns:

onset_reduced_velocity – Onset reduced velocity, broadcasting geometry and onset factor.

Return type:

np.ndarray

Examples

>>> outer_diameter=[0.2731, 0.3239]
>>> gap=[0.6, 0.8]
>>> trench_depth=[0.3, 0.5]
>>> response = VIVCF(
...     outer_diameter=outer_diameter,
...     gap=gap,
...     trench_depth=trench_depth
... )
>>> response.onset_reduced_velocity()
array([1.76418894, 2.18956468])

Usage

Methods support NumPy broadcasting. The constructor accepts keyword-only scalar or array-like inputs and stores them as floating-point NumPy attributes. outer_diameter can be supplied from a Pipe object’s geometry output; no Pipe object is required.

from pysubsea import VIVCF

response = VIVCF(
    outer_diameter=[0.2731, 0.3239],
    gap=[0.6, 0.8],
    trench_depth=[0.3, 0.5],
)
onset = response.onset_reduced_velocity()

Onset calculations can be used independently with only the required geometry:

onset = VIVCF(outer_diameter=1.0, gap=0.0).onset_reduced_velocity()