Fundamental Wave Parameters¶
The wave parameters module provides geometric and kinematic relationships for regular surface waves.
Import¶
from fluidmec.waves import (
wave_amplitude,
wave_number,
angular_frequency,
wave_regime,
)
Governing equations¶
| Quantity | Equation | SI unit |
|---|---|---|
| Amplitude | \(a=H/2\) | m |
| Wave height | \(H=2a\) | m |
| Frequency | \(f=1/T\) | Hz |
| Period | \(T=1/f\) | s |
| Angular frequency | \(\omega=2\pi/T\) | rad/s |
| Wave number | \(k=2\pi/\lambda\) | rad/m |
| Wavelength | \(\lambda=2\pi/k\) | m |
| Wave steepness | \(H/\lambda\) | Dimensionless |
| Dimensionless amplitude | \(ka\) | Dimensionless |
| Relative water depth | \(h/\lambda\) | Dimensionless |
| Dimensionless depth | \(kh\) | Dimensionless |
| Phase velocity | \(c=\lambda/T\) | m/s |
Wave classification¶
| Regime | Relative depth |
|---|---|
| Shallow | \(h/\lambda \leq 0.05\) |
| Intermediate | \(0.05 < h/\lambda < 0.5\) |
| Deep | \(h/\lambda \geq 0.5\) |
Assumptions and limitations¶
- All dimensional quantities use SI units.
- The amplitude-height relationship assumes sinusoidal waves.
- Wave numbers represent positive magnitudes.
- Water depth, wavelength and period must be positive.
- Wave heights and amplitudes may be zero.
- Scalar and NumPy array inputs are supported.
- Array operations follow NumPy broadcasting rules.
- Wave classification thresholds are engineering conventions.
- The functions do not enforce the linear dispersion relation.
- Wave breaking and nonlinear wave effects are not modelled.
- Phase velocity is distinct from fluid particle velocity.
- Dry-bed conditions are outside the intended domain.
Example¶
from fluidmec.waves import (
wave_number,
angular_frequency,
wave_steepness,
wave_regime,
)
H = 2.0
T = 8.0
L = 80.0
h = 20.0
print(wave_number(L))
print(angular_frequency(T))
print(wave_steepness(H, L))
print(wave_regime(h, L))
The example demonstrates parameter relationships using independently prescribed inputs. It is not a verified solution of the linear dispersion relation.
API reference¶
Fundamental parameters for regular surface gravity waves.
All dimensional inputs and outputs use SI units.
This module provides geometric and kinematic relationships. It does not solve the wave dispersion relation or enforce the physical consistency of independently supplied parameters.
The amplitude-height relationship assumes sinusoidal waves. Depth classifications use conventional engineering thresholds.
References
Dean, R. G. and Dalrymple, R. A. (1991). Water Wave Mechanics for Engineers and Scientists. World Scientific.
format_output
¶
format_output(result: ArrayLike) -> float | np.ndarray
Return a Python float for scalar results.
Source code in src/fluidmec/core/_validation.py
69 70 71 72 73 74 75 76 77 78 79 | |
validate_non_negative
¶
validate_non_negative(value: ArrayLike, name: str) -> np.ndarray
Validate non-negative numerical inputs.
Source code in src/fluidmec/core/_validation.py
41 42 43 44 45 46 47 48 49 50 51 52 | |
validate_positive
¶
validate_positive(value: ArrayLike, name: str) -> np.ndarray
Validate strictly positive numerical inputs.
Source code in src/fluidmec/core/_validation.py
27 28 29 30 31 32 33 34 35 36 37 38 | |
wave_amplitude
¶
wave_amplitude(wave_height: ArrayLike) -> float | np.ndarray
Calculate the amplitude of a sinusoidal wave.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wave_height
|
array_like
|
Crest-to-trough wave height H, in metres. Must be non-negative. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Wave amplitude a, in metres. |
Notes
Equation: a = H / 2.
Assumes a symmetric sinusoidal wave about the mean water level.
Examples:
>>> wave_amplitude(2.0)
1.0
Source code in src/fluidmec/waves/parameters.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
wave_height
¶
wave_height(amplitude: ArrayLike) -> float | np.ndarray
Calculate the height of a sinusoidal wave.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amplitude
|
array_like
|
Wave amplitude a, in metres. Must be non-negative. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Crest-to-trough wave height H, in metres. |
Notes
Equation: H = 2a.
Assumes symmetric sinusoidal wave geometry.
Examples:
>>> wave_height(1.5)
3.0
Source code in src/fluidmec/waves/parameters.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
wave_frequency
¶
wave_frequency(period: ArrayLike) -> float | np.ndarray
Calculate wave frequency from the wave period.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
period
|
array_like
|
Wave period T, in seconds. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Wave frequency f, in hertz. |
Notes
Equation: f = 1 / T.
Examples:
>>> wave_frequency(8.0)
0.125
Source code in src/fluidmec/waves/parameters.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
wave_period
¶
wave_period(frequency: ArrayLike) -> float | np.ndarray
Calculate wave period from wave frequency.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frequency
|
array_like
|
Wave frequency f, in hertz. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Wave period T, in seconds. |
Notes
Equation: T = 1 / f.
Examples:
>>> wave_period(0.125)
8.0
Source code in src/fluidmec/waves/parameters.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
angular_frequency
¶
angular_frequency(period: ArrayLike) -> float | np.ndarray
Calculate angular wave frequency.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
period
|
array_like
|
Wave period T, in seconds. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Angular frequency omega, in radians per second. |
Notes
Equation: omega = 2 * pi / T.
Angular frequency measures the temporal rate of change of wave phase.
Source code in src/fluidmec/waves/parameters.py
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
wave_number
¶
wave_number(wavelength: ArrayLike) -> float | np.ndarray
Calculate the magnitude of the wave number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wavelength
|
array_like
|
Wavelength lambda, in metres. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Wave number k, in radians per metre. |
Notes
Equation: k = 2 * pi / lambda.
This function returns a positive scalar wave-number magnitude, not a directional wave vector.
Source code in src/fluidmec/waves/parameters.py
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 | |
wavelength
¶
wavelength(wave_number: ArrayLike) -> float | np.ndarray
Calculate wavelength from the wave-number magnitude.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wave_number
|
array_like
|
Wave number k, in radians per metre. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Wavelength lambda, in metres. |
Notes
Equation: lambda = 2 * pi / k.
Source code in src/fluidmec/waves/parameters.py
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | |
wave_steepness
¶
wave_steepness(wave_height: ArrayLike, wavelength: ArrayLike) -> float | np.ndarray
Calculate the geometric wave steepness H / lambda.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wave_height
|
array_like
|
Wave height H, in metres. Must be non-negative. |
required |
wavelength
|
array_like
|
Wavelength lambda, in metres. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Dimensionless wave steepness. |
Notes
Equation: S = H / lambda.
This function does not determine whether a wave is breaking or whether linear wave theory is applicable.
Source code in src/fluidmec/waves/parameters.py
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 | |
dimensionless_amplitude
¶
dimensionless_amplitude(amplitude: ArrayLike, wave_number: ArrayLike) -> float | np.ndarray
Calculate the dimensionless wave amplitude ka.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amplitude
|
array_like
|
Wave amplitude a, in metres. Must be non-negative. |
required |
wave_number
|
array_like
|
Wave-number magnitude k, in radians per metre. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Dimensionless amplitude ka. |
Notes
Equation: ka = k * a.
For a sinusoidal wave, ka = pi * H / lambda.
Small ka is an important linear-wave-theory criterion, but it is not sufficient on its own in shallow water.
Source code in src/fluidmec/waves/parameters.py
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |
relative_water_depth
¶
relative_water_depth(depth: ArrayLike, wavelength: ArrayLike) -> float | np.ndarray
Calculate water depth relative to wavelength.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth
|
array_like
|
Still-water depth h, in metres. Must be strictly positive. |
required |
wavelength
|
array_like
|
Wavelength lambda, in metres. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Dimensionless relative depth h / lambda. |
Notes
Equation: R = h / lambda.
Dry-bed conditions are outside the intended domain.
Source code in src/fluidmec/waves/parameters.py
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | |
dimensionless_depth
¶
dimensionless_depth(depth: ArrayLike, wave_number: ArrayLike) -> float | np.ndarray
Calculate the dimensionless water depth kh.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth
|
array_like
|
Still-water depth h, in metres. Must be strictly positive. |
required |
wave_number
|
array_like
|
Wave-number magnitude k, in radians per metre. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Dimensionless water depth kh. |
Notes
Equation: kh = k * h.
This parameter appears in the linear wave dispersion relation and finite-depth wave kinematics.
Source code in src/fluidmec/waves/parameters.py
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | |
phase_velocity
¶
phase_velocity(wavelength: ArrayLike, period: ArrayLike) -> float | np.ndarray
Calculate wave phase-speed magnitude.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wavelength
|
array_like
|
Wavelength lambda, in metres. Must be strictly positive. |
required |
period
|
array_like
|
Wave period T, in seconds. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
float or ndarray
|
Phase-speed magnitude c, in metres per second. |
Notes
Equation: c = lambda / T = omega / k.
Phase speed is not fluid particle velocity or group velocity. Wavelength and period must describe the same wave for a physically meaningful result.
Dispersion consistency is not enforced here.
Source code in src/fluidmec/waves/parameters.py
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 398 399 400 401 | |
wave_regime
¶
wave_regime(depth: ArrayLike, wavelength: ArrayLike) -> str | np.ndarray
Classify waves according to relative water depth.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth
|
array_like
|
Still-water depth h, in metres. Must be strictly positive. |
required |
wavelength
|
array_like
|
Wavelength lambda, in metres. Must be strictly positive. |
required |
Returns:
| Type | Description |
|---|---|
str or ndarray
|
One of 'shallow', 'intermediate', or 'deep'. |
Notes
Conventional classification:
- Shallow: h / lambda <= 0.05.
- Intermediate: 0.05 < h / lambda < 0.5.
- Deep: h / lambda >= 0.5.
These thresholds are engineering conventions, not discontinuous changes in physical behaviour.
Examples:
>>> wave_regime(2.0, 100.0)
'shallow'
>>> wave_regime(20.0, 100.0)
'intermediate'
>>> wave_regime(100.0, 100.0)
'deep'
Source code in src/fluidmec/waves/parameters.py
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 | |
References¶
Dean, R. G., and Dalrymple, R. A. (1991). Water Wave Mechanics for Engineers and Scientists. World Scientific.