# VIV

Effects of vortex shedding can be problematic for slender structural members. Shedding frequencies and their interactions, together with other hydrodynamic quantities (e.g. (a) added mass and damping, (b) Reynolds number, (c) lift coefficient and (d) correlation of force components) have the potential to impair.

Given that vortex induced vibration (VIV) continues to be an area of contemporary research, the slender elements are commonly engineered to prevent VIV, and where unavoidable, countermeasures (VIV suppression devices e.g. strakes) are introduced.

Following the industry recognised recommended practice, *DNVGL-RP-C205 – Environmental conditions and environmental loads*, the *viv.py* script below checks for the occurrence of VIV for a range of user-specified pipe sizes subjected to current(s) in the water column.

Excitation | Vortex shedding resonance (lock-in) |
---|---|

Inline | 1.0 ≤ Vr ≤ 4.5, and Ks ≤ 1.8 |

Crossflow | 3.0 ≤ Vr ≤ 16.0 |

The script requires the following inputs (together with consistent units). These are to be provided by the user by editing the `viv.py`

and updating input parameters marked under *User inputs* section:

- Current velocity, V (m/s) — typically for a 1-year environment
- Marine growth thickness, tm (m)
- Flooding condition, f (
`1`

for flooded;`0`

for buoyant) - End (boundary) conditions of the pipe (fixed:
`22.2`

; clamped:`15.4`

; simply-supported:`9.87`

; cantilevered:`3.52`

)

The way to read the above graph is pretty simple:

- Unshaded area (or area in white background) is the safe area.
- The intersection of the curve (for each pipe size of D × t) with the upper boundary of the non-shaded area (i.e., Vr = 1.0) indicates the max. possible pipe length (span) that is unlikely to experience VIV from (ocean) current. For example, 762OD × 22WT pipe can span up to 40m, while a 406OD × 22WT only up to 22m before VIV occurs.
- The shaded overlap is a zone in which both inline as well as crossflow VIV excitations occur. (See range of occurrences in the Table above.)

Code for generating above plot:

```
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Check for vortex-induced vibration occurrence in drill casing
due to seawater current, based on DNV-RP-C205
2019-21 ckunte
Jul 19, 2019: Initial commit
Jan 29, 2021: Code re-factored
"""
import numpy as np
import matplotlib.pyplot as plt
def vivc(*args):
for i in D:
# Pipe cross sectional area (m^2):
A = (np.pi / 4.0) * (i ** 2 - (i - 2 * t) ** 2)
# Pipe cross sectional moment of inertia (m^4):
I = (np.pi / 64.0) * (i ** 4 - (i - 2 * t) ** 4)
# Mass of pipe (kg/m):
Ms = A * ys
# Added mass (kg/m):
Ma = cm * rho * np.pi * (i + 2 * tm) ** 2 / 4.0
# Entrained mass (kg/m):
Mi = f * rho * (np.pi / 4) * (i - 2 * t) ** 2
# Marine growth mass (kg/m):
Mg = np.pi * (i + tm) * tm * ym
# Total mass (kg/m):
Mtot = Ms + Ma + Mi + Mg
# Pipe natural frequency (Roark):
fn = (0.5 * c / np.pi) * (E * I / (Mtot * l ** 4)) ** 0.5
# Stability parameter (Ks):
Ks = 2 * Mtot * (2 * np.pi * beta) / (rho * (i + 2 * tm) ** 2)
# Reduced velocity:
vr = v / (fn * i)
lbl = "%0.0f$\\times$ %0.0f (D/t=%.1f), Ks=%.1f" % (
(i * 1e3),
(t * 1e3),
(i / t),
Ks,
)
plt.plot(l, vr, label=lbl)
pass
plt.title("VIV check for %.1fm/s current" % v)
# In-line VIV occurrence limits ( 1.0 =< Vr =< 4.5 )
plt.axhspan(1.0, 4.5, facecolor="r", alpha=0.18)
# Cross flow VIV occurrence limits (3.0 =< Vr =< 16.0 )
# change upper limit 16.0 to a lower value for plot
# clarity, if necessary
plt.axhspan(3.0, 5.0, facecolor="orange", alpha=0.18)
plt.grid(True)
plt.legend(loc=0)
plt.xlabel("Length of pipe, L (m)")
plt.ylabel("Reduced velocity, $v_r$")
plt.savefig("vivc.svg")
plt.close()
pass
if __name__ == "__main__":
# -- USER INPUTS --
# List of pipe diameters
D = [0.4064, 0.4572, 0.508, 0.5588, 0.6096, 0.6604, 0.762]
# Pipe wall thickness
t = 0.022
# Pipe length: min.length, max.length, increment (m)
l = np.arange(0.1, 40.0, 0.1)
# Pipe flooded state: (1 = flooded; 0 = buoyant)
f = 1
# End condition, c:
# fixed = 22.2;
# clamped = 15.4;
# simply-supported = 9.87;
# cantilevered = 3.52
c = 15.4
# Steel modulus of elasticity (N/m^2)
E = 2.05e11
# Steel density (kg/m^3)
ys = 7850.0
# Seawater density (kg/m^3)
rho = 1025.0
# Structural damping ratio for slender steel pipes in water
beta = 0.05
# Current velocity (m/s) for 1-year return period
v = 0.7
# Marine growth thickness (m)
tm = 0.0
# Marine growth density (kg/m^3)
ym = 575.0
# -- END of USER INPUTS --
# Added mass coefficient (hydrodynamic property)
cm = 1.2 if (tm > 0.0) else 1.6
# Plot pipe length versus reduced velocity
vivc(D, t, l, f, c, E, ys, rho, beta, v, tm, ym, cm)
pass
```

While the upper limit for cross-flow VIV lock-in is 16 (according to RP-C205), the plot may be set to a lower max.value of say 5.0 — (e.g. as done in the plot above) to keep the curvatures of plots more readable (in `plt.axhspan()`

in the script) as so. Change the following line:

```
plt.axhspan(3.0, 16.0, facecolor='orange', alpha=0.18)
```

to:

```
plt.axhspan(3.0, 5.0, facecolor='orange', alpha=0.18)
```

One may use the unix command `seq`

to generate a range of diameters like so: * seq <initval> <incr> <endval>*. Here is an example:

```
$ seq 0.4064 0.0508 0.7620
```

This generates:

```
0.4064
0.4572
0.508
0.5588
0.6096
0.6604
0.7112
0.762
```