Wave–Current Interaction¶
Overview¶
The wave-current module provides engineering calculations for combined wave and prescribed steady-current loading on fixed circular cylindrical members.
All calculations use SI units and support NumPy-compatible array inputs where applicable.
Governing equations¶
Combined velocity¶
where \(U_c\) is the signed steady-current velocity and \(u_w\) is the horizontal wave-induced velocity.
For a regular linear wave,
Local acceleration¶
For a prescribed steady current,
Therefore, within the local-acceleration approximation,
Combined Morison loading¶
All force components are expressed in N/m.
Current-to-wave velocity ratio¶
The wave velocity amplitude must be positive when evaluating this ratio.
Peak absolute drag amplification¶
For constant drag coefficient and positive wave amplitude,
This expression describes drag amplification, not total Morison force amplification.
Prescribed power-law current profile¶
where:
- \(U_s\) is the signed surface current velocity.
- \(h\) is the water depth.
- \(z\) is elevation relative to still water level.
- \(p\) is a positive empirical exponent.
The profile is evaluated within the mean water column.
Parameters and units¶
| Parameter | Description | Unit |
|---|---|---|
| H | Wave height | m |
| T | Wave period | s |
| h | Water depth | m |
| z | Vertical elevation | m |
| D | Cylinder diameter | m |
| k | Wave number | 1/m |
| Uc | Current velocity | m/s |
| Um | Wave velocity amplitude | m/s |
| rho | Fluid density | kg/m³ |
| Cd | Drag coefficient | Dimensionless |
| Cm | Inertia coefficient | Dimensionless |
| fD | Drag per unit length | N/m |
| fI | Inertia per unit length | N/m |
Engineering example¶
from fluidmec.hydrodynamics import morison_force_components
wave_velocity = 2.0
current_velocity = 1.0
drag, inertia, total = morison_force_components(
velocity=wave_velocity + current_velocity,
acceleration=0.0,
diameter=4.0,
drag_coefficient=1.0,
inertia_coefficient=2.0,
density=1025.0,
)
print(drag)
print(inertia)
print(total)
Expected results:
- Drag: 18450 N/m
- Inertia: 0 N/m
- Total: 18450 N/m
Assumptions and limitations¶
- Fixed circular cylindrical members.
- Collinear horizontal wave and current velocities.
- Linear Airy wave kinematics.
- Prescribed steady currents.
- Still-water wave dispersion.
- Constant specified hydrodynamic coefficients.
- Local wave acceleration approximation.
- Mean water column coordinate convention.
- No wake shielding or structural interaction.
- No diffraction or wave blocking calculations.
- No current-induced modification of wave dispersion.
- No full material-acceleration calculation.
The power-law profile is an empirical approximation, not a turbulent boundary-layer solution.
The module is intended for engineering analysis and preliminary calculations. Application-specific validation is required for design use.
Verification¶
The test suite includes analytical comparisons, limiting cases, numerical consistency, broadcasting and invalid-input checks.
Small absolute tolerances are used in force comparisons to accommodate numerical dispersion-solver errors near force zero crossings.
API reference¶
fluidmec.hydrodynamics.wave_current
¶
Hydrodynamic loading under prescribed wave and current conditions.
This module uses linear wave kinematics and steady-current superposition. Current-modified wave dispersion and nonlinear wave-current coupling are not included.
All dimensional inputs and outputs use SI units.
combined_velocity
¶
combined_velocity(wave_velocity: ArrayLike, current_velocity: ArrayLike = 0.0) -> float | np.ndarray
Calculate combined signed wave and current velocity [m/s].
.. math:: u = u_w + U_c
Inputs must represent velocity components along the same coordinate direction.
Source code in src/fluidmec/hydrodynamics/wave_current.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
combined_acceleration
¶
combined_acceleration(wave_acceleration: ArrayLike, current_velocity: ArrayLike = 0.0) -> float | np.ndarray
Return combined local acceleration [m/s^2].
The prescribed current is steady and therefore has zero local time derivative.
Current velocity determines the broadcast shape but does not directly change the local acceleration.
Advective acceleration is not included.
Source code in src/fluidmec/hydrodynamics/wave_current.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
current_velocity_ratio
¶
current_velocity_ratio(wave_velocity_amplitude: ArrayLike, current_velocity: ArrayLike) -> float | np.ndarray
Calculate signed current-to-wave velocity ratio.
.. math:: R_c = U_c / U_m
Wave velocity amplitude must be strictly positive.
Source code in src/fluidmec/hydrodynamics/wave_current.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
velocity_extrema
¶
velocity_extrema(wave_velocity_amplitude: ArrayLike, current_velocity: ArrayLike = 0.0) -> tuple[float | np.ndarray, float | np.ndarray]
Return minimum and maximum signed velocity [m/s].
Assumes a complete sinusoidal wave cycle.
Returns:
| Type | Description |
|---|---|
tuple
|
Minimum velocity and maximum velocity. |
Source code in src/fluidmec/hydrodynamics/wave_current.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
peak_absolute_velocity
¶
peak_absolute_velocity(wave_velocity_amplitude: ArrayLike, current_velocity: ArrayLike = 0.0) -> float | np.ndarray
Calculate maximum absolute velocity over a wave cycle.
.. math:: |u|_{max} = U_m + |U_c|
Returns velocity in m/s.
Source code in src/fluidmec/hydrodynamics/wave_current.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | |
flow_reversal_regime
¶
flow_reversal_regime(wave_velocity_amplitude: ArrayLike, current_velocity: ArrayLike = 0.0, *, tolerance: float = 1e-12) -> str | np.ndarray
Classify flow direction over a sinusoidal wave cycle.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wave_velocity_amplitude
|
array_like
|
Non-negative wave velocity amplitude [m/s]. |
required |
current_velocity
|
array_like
|
Signed steady current velocity [m/s]. |
0.0
|
tolerance
|
float
|
Absolute velocity classification tolerance [m/s]. |
1e-12
|
Returns:
| Type | Description |
|---|---|
str or ndarray
|
no_flow, reversing_flow, touches_zero, unidirectional_positive or unidirectional_negative. |
Source code in src/fluidmec/hydrodynamics/wave_current.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | |
power_law_current_profile
¶
power_law_current_profile(surface_velocity: ArrayLike, z: ArrayLike, depth: ArrayLike, *, exponent: ArrayLike = 1.0 / 7.0) -> float | np.ndarray
Calculate a prescribed power-law current profile [m/s].
.. math:: U_c(z) = U_s ((z+h)/h)^p
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
surface_velocity
|
array_like
|
Signed current velocity at still water level [m/s]. |
required |
z
|
array_like
|
Elevation relative to still water level [m]. |
required |
depth
|
array_like
|
Positive water depth [m]. |
required |
exponent
|
array_like
|
Positive empirical profile exponent. |
1.0 / 7.0
|
Notes
Valid only within the mean water column: -depth <= z <= 0.
The profile is empirical and is not a turbulence model.
Source code in src/fluidmec/hydrodynamics/wave_current.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | |
drag_amplification_factor
¶
drag_amplification_factor(wave_velocity_amplitude: ArrayLike, current_velocity: ArrayLike = 0.0) -> float | np.ndarray
Return peak absolute drag amplification.
.. math:: A_D = (1 + |U_c/U_m|)^2
Assumes unchanged density, diameter and positive drag coefficient between the two loading cases.
Wave velocity amplitude must be strictly positive.
Source code in src/fluidmec/hydrodynamics/wave_current.py
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | |
wave_current_drag
¶
wave_current_drag(wave_velocity: ArrayLike, current_velocity: ArrayLike, diameter: ArrayLike, drag_coefficient: ArrayLike = 1.0, density: ArrayLike = SEAWATER_DENSITY) -> float | np.ndarray
Calculate signed combined drag force per length [N/m].
The wave and current velocities are added before applying the nonlinear Morison drag equation.
Source code in src/fluidmec/hydrodynamics/wave_current.py
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 | |
peak_wave_current_drag
¶
peak_wave_current_drag(wave_velocity_amplitude: ArrayLike, current_velocity: ArrayLike, diameter: ArrayLike, drag_coefficient: ArrayLike = 1.0, density: ArrayLike = SEAWATER_DENSITY) -> float | np.ndarray
Calculate peak absolute combined drag [N/m].
Assumes sinusoidal wave velocity, steady current and constant hydrodynamic coefficients.
This is the drag peak, not the total Morison force peak.
Source code in src/fluidmec/hydrodynamics/wave_current.py
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 | |
wave_current_force_components
¶
wave_current_force_components(wave_velocity: ArrayLike, wave_acceleration: ArrayLike, current_velocity: ArrayLike, diameter: ArrayLike, drag_coefficient: ArrayLike = 1.0, inertia_coefficient: ArrayLike = 2.0, density: ArrayLike = SEAWATER_DENSITY) -> tuple[float | np.ndarray, float | np.ndarray, float | np.ndarray]
Calculate combined wave-current Morison forces.
Returns:
| Type | Description |
|---|---|
tuple
|
Signed drag, inertia and total force per unit length [N/m]. |
Notes
Uses local wave acceleration and prescribed steady current. Does not include advective acceleration.
Source code in src/fluidmec/hydrodynamics/wave_current.py
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | |
wave_current_force_from_period
¶
wave_current_force_from_period(wave_height: ArrayLike, period: ArrayLike, depth: ArrayLike, x: ArrayLike, z: ArrayLike, time: ArrayLike, current_velocity: ArrayLike, diameter: ArrayLike, drag_coefficient: ArrayLike = 1.0, inertia_coefficient: ArrayLike = 2.0, density: ArrayLike = SEAWATER_DENSITY, gravity: ArrayLike = ENGINEERING_GRAVITY, *, phase_offset: ArrayLike = 0.0, method: str = 'newton', tolerance: float = 1e-10, max_iterations: int = 100) -> tuple[float | np.ndarray, float | np.ndarray, float | np.ndarray]
Calculate wave-current loading from wave parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wave_height
|
array_like
|
Regular wave height [m]. |
required |
period
|
array_like
|
Wave period [s]. |
required |
depth
|
array_like
|
Water depth [m]. |
required |
x
|
array_like
|
Horizontal position [m]. |
required |
z
|
array_like
|
Elevation relative to still water level [m]. |
required |
time
|
array_like
|
Time [s]. |
required |
current_velocity
|
array_like
|
Prescribed signed current velocity [m/s]. |
required |
diameter
|
array_like
|
Cylinder diameter [m]. |
required |
drag_coefficient
|
array_like
|
Morison drag coefficient. |
1.0
|
inertia_coefficient
|
array_like
|
Morison inertia coefficient. |
2.0
|
density
|
array_like
|
Fluid density [kg/m^3]. |
SEAWATER_DENSITY
|
gravity
|
array_like
|
Gravitational acceleration [m/s^2]. |
ENGINEERING_GRAVITY
|
phase_offset
|
array_like
|
Wave phase offset [rad]. |
0.0
|
Returns:
| Type | Description |
|---|---|
tuple
|
Drag, inertia and total force per length [N/m]. |
Notes
Wave number is calculated using still-water dispersion. Current-induced changes to wave propagation are neglected.
Source code in src/fluidmec/hydrodynamics/wave_current.py
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 | |
Visualisation¶
Run the engineering dashboard example:
python examples/wave_current_example.py
The generated dashboard is saved in outputs/lesson28/.
References¶
-
Morison, J. R., O'Brien, M. P., Johnson, J. W., and Schaaf, S. A. (1950). The Force Exerted by Surface Waves on Piles.
-
Dean, R. G., and Dalrymple, R. A. (1991). Water Wave Mechanics for Engineers and Scientists.
-
Sarpkaya, T. (2010). Wave Forces on Offshore Structures.