Skip to content

Wave Theory Applicability and Breaking Limits

The fluidmec.waves.applicability module provides preliminary engineering screening for regular surface gravity waves.

It evaluates dimensionless wave parameters, approximate breaking limits and candidate wave theories.

Dimensionless parameters

Wave steepness:

\[ S=\frac{H}{L}. \]

Dimensionless amplitude:

\[ ka=\frac{\pi H}{L}. \]

Relative water depth:

\[ \delta=\frac{h}{L}. \]

Relative wave height:

\[ R_H=\frac{H}{h}. \]

Ursell number:

\[ U_r=\frac{HL^2}{h^3}. \]

An equivalent Ursell expression is

\[ U_r=\frac{8\pi^2ka}{(kh)^3}. \]

The Ursell number convention must be checked before comparing results against external publications.

Miche breaking criterion

\[ H_{\mathrm{Miche}} =0.142L\tanh\left(\frac{2\pi h}{L}\right). \]

The deep-water asymptote is

\[ H_{\mathrm{Miche}}\approx0.142L. \]

The shallow-water asymptote is

\[ H_{\mathrm{Miche}}\approx0.892h. \]

Depth-limited breaking

\[ H_{\mathrm{depth}}=\gamma h. \]

The default empirical breaker index is 0.78. It is configurable and is not a universal constant.

Combined screening limit

\[ H_{\mathrm{limit}} =\min(H_{\mathrm{Miche}},H_{\mathrm{depth}}). \]

Breaking utilisation is

\[ B=\frac{H}{H_{\mathrm{limit}}}. \]

The default warning threshold is 0.8.

The status labels are:

  • below_limit
  • approaching_limit
  • at_or_above_limit

These labels refer to adopted screening criteria, not observed physical breaking states.

Theory selection

Candidate theories are recommended using configurable thresholds.

Default screening settings:

Parameter Default
Linear ka limit 0.05
Linear H/h limit 0.1
Linear Ursell limit 1.0
Cnoidal Ursell threshold 26.0
Cnoidal relative depth limit 0.1
Higher-order ka threshold 0.3
Breaking warning ratio 0.8

These values are heuristic screening settings. They are not universal accuracy or validity boundaries.

Basic usage

from fluidmec.waves import assess_wave_applicability

report = assess_wave_applicability(
    wave_height=2.0,
    period=8.0,
    depth=20.0,
)

print(report["recommended_theory"])
print(report["ursell_number"])
print(report["breaking_utilisation"])

Custom thresholds

from fluidmec.waves import recommend_wave_theory

theory = recommend_wave_theory(
    wave_height=2.0,
    wavelength=100.0,
    depth=20.0,
    linear_ka_limit=0.1,
    linear_ursell_limit=3.0,
)

Vectorised assessment

import numpy as np

from fluidmec.waves import assess_wave_applicability

depths = np.linspace(2.0, 100.0, 200)

report = assess_wave_applicability(
    wave_height=1.0,
    period=8.0,
    depth=depths,
)

print(report["breaking_utilisation"])

Numerical stability

The Ursell number is evaluated logarithmically to reduce premature overflow.

Miche's limiting wave height uses its shallow-water asymptote for sufficiently small kh.

The implementation validates inputs, rejects nonfinite outputs and supports NumPy broadcasting.

Assumptions and limitations

  • Regular progressive surface gravity waves.
  • No explicit background-current correction.
  • Local water depth and wavelength.
  • Linear dispersion estimates the wavelength.
  • Strong nonlinearity may invalidate that estimate.
  • Breaking criteria are approximate.
  • Bathymetric slope and wave history are not modelled.
  • No direct breaking-wave or turbulence simulation.
  • Candidate theory recommendations are heuristic.
  • No structural safety or final design certification.

Scientific validation

Validation includes analytical benchmarks, deep-water and shallow-water asymptotes, dimensionless scale invariance, threshold boundaries, vectorised inputs, numerical stability and dispersion consistency.

Visualisation

Run:

python examples/wave_applicability_example.py

The generated dashboard is saved to:

outputs/wave_applicability_analysis.png

API reference

Applicability screening for regular surface gravity waves.

All dimensional inputs use SI units.

Physical scope
  • Regular progressive surface gravity waves.
  • Positive local water depth and wavelength.
  • No explicit background-current correction.
  • Preliminary engineering screening rather than a nonlinear wave solution or breaking-wave prediction.

The Ursell number convention is H*L2/h3.

Miche's limiting steepness and the empirical breaker index provide approximate breaking limits. Neither criterion guarantees that a wave will remain unbroken.

Theory recommendations use configurable heuristic thresholds and must not replace engineering judgement.

References

Miche, R. (1944). Mouvements ondulatoires de la mer en profondeur constante ou decroissante.

Dean, R. G. and Dalrymple, R. A. (1991). Water Wave Mechanics for Engineers and Scientists. World Scientific.

US Army Corps of Engineers. Coastal Engineering Manual, EM 1110-2-1100.

ENGINEERING_GRAVITY module-attribute

ENGINEERING_GRAVITY: Final[float] = 9.81

ScalarOrArray module-attribute

ScalarOrArray = float | np.ndarray

TextOrArray module-attribute

TextOrArray = str | np.ndarray

MICHE_COEFFICIENT module-attribute

MICHE_COEFFICIENT = 0.142

DEFAULT_BREAKER_INDEX module-attribute

DEFAULT_BREAKER_INDEX = 0.78

DEFAULT_WARNING_RATIO module-attribute

DEFAULT_WARNING_RATIO = 0.8

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
def format_output(
    result: ArrayLike,
) -> float | np.ndarray:
    """Return a Python float for scalar results."""

    result = np.asarray(result, dtype=float)

    if result.ndim == 0:
        return float(result)

    return result

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
def validate_non_negative(
    value: ArrayLike,
    name: str,
) -> np.ndarray:
    """Validate non-negative numerical inputs."""

    array = as_float_array(value, name)

    if np.any(array < 0):
        raise ValueError(f"{name} must be non-negative.")

    return array

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
def validate_positive(
    value: ArrayLike,
    name: str,
) -> np.ndarray:
    """Validate strictly positive numerical inputs."""

    array = as_float_array(value, name)

    if np.any(array <= 0):
        raise ValueError(f"{name} must be positive.")

    return array

solve_wave_number

solve_wave_number(period: ArrayLike, depth: ArrayLike, gravity: ArrayLike = ENGINEERING_GRAVITY, *, method: str = 'newton', tolerance: float = 1e-10, max_iterations: int = 100) -> float | np.ndarray

Solve the linear wave dispersion relation for k.

Parameters:

Name Type Description Default
period array_like

Wave period T, in seconds. Positive.

required
depth array_like

Still-water depth h, in metres. Positive.

required
gravity array_like

Gravitational acceleration g, in m/s^2.

ENGINEERING_GRAVITY
method (newton, bisection)

Safeguarded Newton-Raphson or bisection.

"newton"
tolerance float

Relative dimensionless residual tolerance. Must be between zero and one, exclusive.

1e-10
max_iterations int

Maximum number of solver evaluations.

100

Returns:

Type Description
float or ndarray

Positive wave-number magnitude k, in rad/m.

Raises:

Type Description
ValueError

If physical inputs or solver options are invalid.

RuntimeError

If the solver does not converge.

Notes

Solves:

x*tanh(x) = mu

where x = kh and mu = omega**2h/g.

Convergence criterion:

abs(x*tanh(x) - mu) / mu <= tolerance

Newton steps outside the root bracket are replaced by bisection steps.

Supports NumPy broadcasting. Every array element must converge before the function returns.

The result is based on linear gravity wave theory, without current or surface tension.

Source code in src/fluidmec/waves/dispersion.py
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
223
224
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
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
301
302
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
333
334
335
336
337
338
339
340
341
342
343
344
def solve_wave_number(
    period: ArrayLike,
    depth: ArrayLike,
    gravity: ArrayLike = ENGINEERING_GRAVITY,
    *,
    method: str = "newton",
    tolerance: float = 1e-10,
    max_iterations: int = 100,
) -> float | np.ndarray:
    """Solve the linear wave dispersion relation for k.

    Parameters
    ----------
    period : array_like
        Wave period T, in seconds. Positive.
    depth : array_like
        Still-water depth h, in metres. Positive.
    gravity : array_like, optional
        Gravitational acceleration g, in m/s^2.
    method : {"newton", "bisection"}, optional
        Safeguarded Newton-Raphson or bisection.
    tolerance : float, optional
        Relative dimensionless residual tolerance.
        Must be between zero and one, exclusive.
    max_iterations : int, optional
        Maximum number of solver evaluations.

    Returns
    -------
    float or numpy.ndarray
        Positive wave-number magnitude k, in rad/m.

    Raises
    ------
    ValueError
        If physical inputs or solver options are invalid.
    RuntimeError
        If the solver does not converge.

    Notes
    -----
    Solves:

        x*tanh(x) = mu

    where x = k*h and mu = omega**2*h/g.

    Convergence criterion:

        abs(x*tanh(x) - mu) / mu <= tolerance

    Newton steps outside the root bracket are replaced
    by bisection steps.

    Supports NumPy broadcasting. Every array element must
    converge before the function returns.

    The result is based on linear gravity wave theory,
    without current or surface tension.
    """
    tolerance = _validate_solver_options(
        method,
        tolerance,
        max_iterations,
    )

    period = validate_positive(period, "Wave period")
    depth = validate_positive(depth, "Water depth")
    gravity = validate_positive(gravity, "Gravity")

    period, depth, gravity = np.broadcast_arrays(
        period,
        depth,
        gravity,
    )

    omega = 2.0 * np.pi / period

    with np.errstate(
        over="ignore",
        under="ignore",
        invalid="ignore",
    ):
        mu = omega**2 * depth / gravity

    if np.any(~np.isfinite(mu)) or np.any(mu <= 0):
        raise ValueError("Inputs exceed the supported numerical range.")

    # The limiting solutions are:
    # Deep water: x = mu
    # Shallow water: x = sqrt(mu)
    #
    # Twice the larger limiting value provides an
    # upper bracket for ordinary positive inputs.
    estimate = np.maximum(mu, np.sqrt(mu))

    lower = np.zeros_like(mu)
    upper = 2.0 * estimate

    if np.any(~np.isfinite(upper)):
        raise ValueError("Unable to construct a finite root bracket.")

    if np.any(_dimensionless_residual(upper, mu) < 0):
        raise RuntimeError("Unable to bracket the dispersion root.")

    x = estimate.copy()

    for _ in range(max_iterations):
        residual = _dimensionless_residual(x, mu)

        converged = np.abs(residual) / mu <= tolerance

        if np.all(converged):
            result = x / depth

            if np.any(~np.isfinite(result)) or np.any(result <= 0):
                raise ValueError("Wave number exceeds numerical range.")

            return format_output(result)

        active = ~converged

        lower = np.where(
            active & (residual < 0),
            x,
            lower,
        )

        upper = np.where(
            active & (residual > 0),
            x,
            upper,
        )

        midpoint = lower + 0.5 * (upper - lower)

        if method == "newton":
            derivative = _dimensionless_derivative(x)

            with np.errstate(
                divide="ignore",
                invalid="ignore",
                over="ignore",
            ):
                candidate = x - residual / derivative

            valid_step = (
                np.isfinite(candidate) & (candidate > lower) & (candidate < upper)
            )

            next_x = np.where(
                valid_step,
                candidate,
                midpoint,
            )

        else:
            next_x = midpoint

        # Preserve array elements that have converged.
        x = np.where(active, next_x, x)

    raise RuntimeError(
        f"Wave dispersion solver did not converge within {max_iterations} iterations."
    )

_finite_output

_finite_output(value: ArrayLike, name: str) -> ScalarOrArray

Return a finite scalar or NumPy array.

Source code in src/fluidmec/waves/applicability.py
56
57
58
59
60
61
62
63
64
65
66
def _finite_output(
    value: ArrayLike,
    name: str,
) -> ScalarOrArray:
    """Return a finite scalar or NumPy array."""
    result = np.asarray(value, dtype=float)

    if not np.all(np.isfinite(result)):
        raise ValueError(f"{name} exceeds the supported numerical range.")

    return format_output(result)

_positive_scalar

_positive_scalar(value: float, name: str) -> float

Validate a positive scalar configuration value.

Source code in src/fluidmec/waves/applicability.py
69
70
71
72
73
74
75
76
def _positive_scalar(value: float, name: str) -> float:
    """Validate a positive scalar configuration value."""
    result = validate_positive(value, name)

    if result.ndim != 0:
        raise ValueError(f"{name} must be a scalar.")

    return float(result)

_warning_threshold

_warning_threshold(value: float) -> float

Validate a warning threshold strictly between zero and one.

Source code in src/fluidmec/waves/applicability.py
79
80
81
82
83
84
85
86
def _warning_threshold(value: float) -> float:
    """Validate a warning threshold strictly between zero and one."""
    result = _positive_scalar(value, "Warning ratio")

    if result >= 1.0:
        raise ValueError("Warning ratio must be less than one.")

    return result

_text_output

_text_output(value: ArrayLike) -> TextOrArray

Return a scalar string or a NumPy string array.

Source code in src/fluidmec/waves/applicability.py
89
90
91
92
93
94
95
96
def _text_output(value: ArrayLike) -> TextOrArray:
    """Return a scalar string or a NumPy string array."""
    result = np.asarray(value, dtype=str)

    if result.ndim == 0:
        return str(result.item())

    return result

_safe_ratio

_safe_ratio(numerator: ArrayLike, denominator: ArrayLike, name: str) -> ScalarOrArray

Calculate a ratio with a strictly positive denominator.

Source code in src/fluidmec/waves/applicability.py
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
def _safe_ratio(
    numerator: ArrayLike,
    denominator: ArrayLike,
    name: str,
) -> ScalarOrArray:
    """Calculate a ratio with a strictly positive denominator."""
    denominator = validate_positive(denominator, "Ratio denominator")

    with np.errstate(
        over="ignore",
        under="ignore",
        invalid="ignore",
    ):
        result = np.asarray(numerator) / denominator

    return _finite_output(result, name)

_wave_inputs

_wave_inputs(wave_height: ArrayLike, wavelength: ArrayLike, depth: ArrayLike) -> tuple[np.ndarray, np.ndarray, np.ndarray]

Validate and broadcast regular-wave geometry.

Source code in src/fluidmec/waves/applicability.py
117
118
119
120
121
122
123
124
125
126
127
def _wave_inputs(
    wave_height: ArrayLike,
    wavelength: ArrayLike,
    depth: ArrayLike,
) -> tuple[np.ndarray, np.ndarray, np.ndarray]:
    """Validate and broadcast regular-wave geometry."""
    height = validate_non_negative(wave_height, "Wave height")
    length = validate_positive(wavelength, "Wavelength")
    water_depth = validate_positive(depth, "Water depth")

    return tuple(np.broadcast_arrays(height, length, water_depth))

relative_wave_height

relative_wave_height(wave_height: ArrayLike, depth: ArrayLike) -> ScalarOrArray

Calculate the regular-wave height-to-depth ratio.

Parameters:

Name Type Description Default
wave_height array_like

Non-negative crest-to-trough wave height H [m].

required
depth array_like

Positive local still-water depth h [m].

required

Returns:

Type Description
float or ndarray

Dimensionless relative wave height H/h.

Notes

Large H/h indicates increasing finite-amplitude effects, especially in shallow water.

This ratio alone does not determine wave breaking or the validity of a particular wave theory.

Source code in src/fluidmec/waves/applicability.py
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
def relative_wave_height(
    wave_height: ArrayLike,
    depth: ArrayLike,
) -> ScalarOrArray:
    """Calculate the regular-wave height-to-depth ratio.

    Parameters
    ----------
    wave_height : array_like
        Non-negative crest-to-trough wave height H [m].
    depth : array_like
        Positive local still-water depth h [m].

    Returns
    -------
    float or ndarray
        Dimensionless relative wave height H/h.

    Notes
    -----
    Large H/h indicates increasing finite-amplitude
    effects, especially in shallow water.

    This ratio alone does not determine wave breaking
    or the validity of a particular wave theory.
    """
    height = validate_non_negative(wave_height, "Wave height")

    return _safe_ratio(height, depth, "Relative wave height")

ursell_number

ursell_number(wave_height: ArrayLike, wavelength: ArrayLike, depth: ArrayLike) -> ScalarOrArray

Calculate the conventional Ursell number.

Parameters:

Name Type Description Default
wave_height array_like

Non-negative regular wave height H [m].

required
wavelength array_like

Positive wavelength L [m].

required
depth array_like

Positive still-water depth h [m].

required

Returns:

Type Description
float or ndarray

Dimensionless Ursell number Ur = H*L2/h3.

Notes

The Ursell number measures the relative importance of nonlinear and dispersive effects in long waves.

Different conventions may include numerical prefactors. This function uses H*L2/h3.

Logarithmic evaluation reduces premature overflow from separately calculating L2 and h3.

Source code in src/fluidmec/waves/applicability.py
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
def ursell_number(
    wave_height: ArrayLike,
    wavelength: ArrayLike,
    depth: ArrayLike,
) -> ScalarOrArray:
    """Calculate the conventional Ursell number.

    Parameters
    ----------
    wave_height : array_like
        Non-negative regular wave height H [m].
    wavelength : array_like
        Positive wavelength L [m].
    depth : array_like
        Positive still-water depth h [m].

    Returns
    -------
    float or ndarray
        Dimensionless Ursell number Ur = H*L**2/h**3.

    Notes
    -----
    The Ursell number measures the relative importance
    of nonlinear and dispersive effects in long waves.

    Different conventions may include numerical
    prefactors. This function uses H*L**2/h**3.

    Logarithmic evaluation reduces premature overflow
    from separately calculating L**2 and h**3.
    """
    height, length, water_depth = _wave_inputs(wave_height, wavelength, depth)

    positive = height > 0.0
    safe_height = np.where(positive, height, 1.0)

    with np.errstate(
        over="ignore",
        under="ignore",
        invalid="ignore",
    ):
        log_result = (
            np.log(safe_height) + 2.0 * np.log(length) - 3.0 * np.log(water_depth)
        )

        result = np.where(
            positive,
            np.exp(log_result),
            0.0,
        )

    return _finite_output(result, "Ursell number")

miche_breaking_steepness

miche_breaking_steepness(wavelength: ArrayLike, depth: ArrayLike, coefficient: float = MICHE_COEFFICIENT) -> ScalarOrArray

Calculate Miche's approximate limiting steepness.

Parameters:

Name Type Description Default
wavelength array_like

Positive wavelength L [m].

required
depth array_like

Positive still-water depth h [m].

required
coefficient float

Positive Miche coefficient, default 0.142.

MICHE_COEFFICIENT

Returns:

Type Description
float or ndarray

Limiting dimensionless wave steepness Hb/L.

Notes

Hb/L = coefficienttanh(2pi*h/L).

The criterion approximates a limiting regular-wave steepness and is not a dynamic breaking model.

Source code in src/fluidmec/waves/applicability.py
216
217
218
219
220
221
222
223
224
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
def miche_breaking_steepness(
    wavelength: ArrayLike,
    depth: ArrayLike,
    coefficient: float = MICHE_COEFFICIENT,
) -> ScalarOrArray:
    """Calculate Miche's approximate limiting steepness.

    Parameters
    ----------
    wavelength : array_like
        Positive wavelength L [m].
    depth : array_like
        Positive still-water depth h [m].
    coefficient : float, optional
        Positive Miche coefficient, default 0.142.

    Returns
    -------
    float or ndarray
        Limiting dimensionless wave steepness Hb/L.

    Notes
    -----
    Hb/L = coefficient*tanh(2*pi*h/L).

    The criterion approximates a limiting regular-wave
    steepness and is not a dynamic breaking model.
    """
    length = validate_positive(wavelength, "Wavelength")
    water_depth = validate_positive(depth, "Water depth")
    c = _positive_scalar(coefficient, "Miche coefficient")

    with np.errstate(
        over="ignore",
        under="ignore",
    ):
        kh = (water_depth / length) * (2.0 * np.pi)
        result = c * np.tanh(kh)

    return _finite_output(result, "Miche breaking steepness")

miche_breaking_height

miche_breaking_height(wavelength: ArrayLike, depth: ArrayLike, coefficient: float = MICHE_COEFFICIENT) -> ScalarOrArray

Calculate Miche's approximate limiting wave height.

Parameters:

Name Type Description Default
wavelength array_like

Positive wavelength L [m].

required
depth array_like

Positive still-water depth h [m].

required
coefficient float

Positive Miche coefficient, default 0.142.

MICHE_COEFFICIENT

Returns:

Type Description
float or ndarray

Approximate limiting regular-wave height [m].

Notes

Hb = coefficientLtanh(2pih/L).

For very small kh, the equivalent shallow-water asymptote Hb = 2picoefficient*h is used.

For large kh, tanh(kh) approaches one.

Source code in src/fluidmec/waves/applicability.py
258
259
260
261
262
263
264
265
266
267
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
301
302
303
304
305
306
307
def miche_breaking_height(
    wavelength: ArrayLike,
    depth: ArrayLike,
    coefficient: float = MICHE_COEFFICIENT,
) -> ScalarOrArray:
    """Calculate Miche's approximate limiting wave height.

    Parameters
    ----------
    wavelength : array_like
        Positive wavelength L [m].
    depth : array_like
        Positive still-water depth h [m].
    coefficient : float, optional
        Positive Miche coefficient, default 0.142.

    Returns
    -------
    float or ndarray
        Approximate limiting regular-wave height [m].

    Notes
    -----
    Hb = coefficient*L*tanh(2*pi*h/L).

    For very small kh, the equivalent shallow-water
    asymptote Hb = 2*pi*coefficient*h is used.

    For large kh, tanh(kh) approaches one.
    """
    length = validate_positive(wavelength, "Wavelength")
    water_depth = validate_positive(depth, "Water depth")
    c = _positive_scalar(coefficient, "Miche coefficient")

    with np.errstate(
        over="ignore",
        under="ignore",
        invalid="ignore",
    ):
        kh = (water_depth / length) * (2.0 * np.pi)

        shallow = kh < 1e-6

        exact = (c * np.tanh(kh)) * length

        asymptotic = (c * (2.0 * np.pi)) * water_depth

        result = np.where(shallow, asymptotic, exact)

    return _finite_output(result, "Miche breaking height")

depth_limited_breaking_height

depth_limited_breaking_height(depth: ArrayLike, breaker_index: float = DEFAULT_BREAKER_INDEX) -> ScalarOrArray

Calculate an empirical depth-limited wave height.

Parameters:

Name Type Description Default
depth array_like

Positive local still-water depth h [m].

required
breaker_index float

Positive empirical breaker index gamma [-]. The default value is 0.78.

DEFAULT_BREAKER_INDEX

Returns:

Type Description
float or ndarray

Empirical limiting wave height gamma*h [m].

Notes

The breaker index is not universal. Actual breaking depends on bathymetry, incident wave conditions, currents and wave transformation history.

Source code in src/fluidmec/waves/applicability.py
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
def depth_limited_breaking_height(
    depth: ArrayLike,
    breaker_index: float = DEFAULT_BREAKER_INDEX,
) -> ScalarOrArray:
    """Calculate an empirical depth-limited wave height.

    Parameters
    ----------
    depth : array_like
        Positive local still-water depth h [m].
    breaker_index : float, optional
        Positive empirical breaker index gamma [-].
        The default value is 0.78.

    Returns
    -------
    float or ndarray
        Empirical limiting wave height gamma*h [m].

    Notes
    -----
    The breaker index is not universal. Actual breaking
    depends on bathymetry, incident wave conditions,
    currents and wave transformation history.
    """
    water_depth = validate_positive(depth, "Water depth")
    gamma = _positive_scalar(breaker_index, "Breaker index")

    with np.errstate(over="ignore", under="ignore"):
        result = gamma * water_depth

    return _finite_output(result, "Depth-limited breaking height")

combined_breaking_height

combined_breaking_height(wavelength: ArrayLike, depth: ArrayLike, *, coefficient: float = MICHE_COEFFICIENT, breaker_index: float = DEFAULT_BREAKER_INDEX) -> ScalarOrArray

Calculate the lower of two adopted breaking limits.

Parameters:

Name Type Description Default
wavelength array_like

Positive wavelength L [m].

required
depth array_like

Positive still-water depth h [m].

required
coefficient float

Positive Miche coefficient [-].

MICHE_COEFFICIENT
breaker_index float

Positive empirical breaker index [-].

DEFAULT_BREAKER_INDEX

Returns:

Type Description
float or ndarray

Minimum of the Miche and depth-limited breaking heights [m].

Notes

This lower-envelope rule is a conservative screening convention relative to the two adopted criteria, not a guaranteed safe physical limit.

Source code in src/fluidmec/waves/applicability.py
344
345
346
347
348
349
350
351
352
353
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
def combined_breaking_height(
    wavelength: ArrayLike,
    depth: ArrayLike,
    *,
    coefficient: float = MICHE_COEFFICIENT,
    breaker_index: float = DEFAULT_BREAKER_INDEX,
) -> ScalarOrArray:
    """Calculate the lower of two adopted breaking limits.

    Parameters
    ----------
    wavelength : array_like
        Positive wavelength L [m].
    depth : array_like
        Positive still-water depth h [m].
    coefficient : float, optional
        Positive Miche coefficient [-].
    breaker_index : float, optional
        Positive empirical breaker index [-].

    Returns
    -------
    float or ndarray
        Minimum of the Miche and depth-limited
        breaking heights [m].

    Notes
    -----
    This lower-envelope rule is a conservative
    screening convention relative to the two adopted
    criteria, not a guaranteed safe physical limit.
    """
    miche = miche_breaking_height(wavelength, depth, coefficient)

    depth_limit = depth_limited_breaking_height(depth, breaker_index)

    return format_output(np.minimum(miche, depth_limit))

miche_breaking_utilisation

miche_breaking_utilisation(wave_height: ArrayLike, wavelength: ArrayLike, depth: ArrayLike, coefficient: float = MICHE_COEFFICIENT) -> ScalarOrArray

Calculate utilisation of Miche's breaking limit.

Parameters:

Name Type Description Default
wave_height array_like

Non-negative regular wave height H [m].

required
wavelength array_like

Positive wavelength L [m].

required
depth array_like

Positive still-water depth h [m].

required
coefficient float

Positive Miche coefficient [-].

MICHE_COEFFICIENT

Returns:

Type Description
float or ndarray

Dimensionless ratio H/H_Miche.

Notes

Values at or above one exceed or reach the adopted limiting-steepness criterion.

Source code in src/fluidmec/waves/applicability.py
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
def miche_breaking_utilisation(
    wave_height: ArrayLike,
    wavelength: ArrayLike,
    depth: ArrayLike,
    coefficient: float = MICHE_COEFFICIENT,
) -> ScalarOrArray:
    """Calculate utilisation of Miche's breaking limit.

    Parameters
    ----------
    wave_height : array_like
        Non-negative regular wave height H [m].
    wavelength : array_like
        Positive wavelength L [m].
    depth : array_like
        Positive still-water depth h [m].
    coefficient : float, optional
        Positive Miche coefficient [-].

    Returns
    -------
    float or ndarray
        Dimensionless ratio H/H_Miche.

    Notes
    -----
    Values at or above one exceed or reach the
    adopted limiting-steepness criterion.
    """
    height = validate_non_negative(wave_height, "Wave height")

    limit = miche_breaking_height(wavelength, depth, coefficient)

    return _safe_ratio(height, limit, "Miche utilisation")

depth_breaking_utilisation

depth_breaking_utilisation(wave_height: ArrayLike, depth: ArrayLike, breaker_index: float = DEFAULT_BREAKER_INDEX) -> ScalarOrArray

Calculate utilisation of the empirical depth limit.

Parameters:

Name Type Description Default
wave_height array_like

Non-negative regular wave height H [m].

required
depth array_like

Positive still-water depth h [m].

required
breaker_index float

Positive empirical breaker index [-].

DEFAULT_BREAKER_INDEX

Returns:

Type Description
float or ndarray

Dimensionless ratio H/(gamma*h).

Notes

A value of one corresponds to the adopted empirical depth-limited wave height.

Source code in src/fluidmec/waves/applicability.py
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
def depth_breaking_utilisation(
    wave_height: ArrayLike,
    depth: ArrayLike,
    breaker_index: float = DEFAULT_BREAKER_INDEX,
) -> ScalarOrArray:
    """Calculate utilisation of the empirical depth limit.

    Parameters
    ----------
    wave_height : array_like
        Non-negative regular wave height H [m].
    depth : array_like
        Positive still-water depth h [m].
    breaker_index : float, optional
        Positive empirical breaker index [-].

    Returns
    -------
    float or ndarray
        Dimensionless ratio H/(gamma*h).

    Notes
    -----
    A value of one corresponds to the adopted
    empirical depth-limited wave height.
    """
    height = validate_non_negative(wave_height, "Wave height")

    limit = depth_limited_breaking_height(depth, breaker_index)

    return _safe_ratio(height, limit, "Depth breaking utilisation")

breaking_utilisation

breaking_utilisation(wave_height: ArrayLike, wavelength: ArrayLike, depth: ArrayLike, *, coefficient: float = MICHE_COEFFICIENT, breaker_index: float = DEFAULT_BREAKER_INDEX) -> ScalarOrArray

Calculate utilisation of the combined breaking limit.

Parameters:

Name Type Description Default
wave_height array_like

Non-negative regular wave height H [m].

required
wavelength array_like

Positive wavelength L [m].

required
depth array_like

Positive still-water depth h [m].

required
coefficient float

Positive Miche coefficient [-].

MICHE_COEFFICIENT
breaker_index float

Positive empirical breaker index [-].

DEFAULT_BREAKER_INDEX

Returns:

Type Description
float or ndarray

Ratio H/min(H_Miche, H_depth), dimensionless.

Notes

This is equivalent to the maximum utilisation of the two individual adopted criteria.

Source code in src/fluidmec/waves/applicability.py
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
def breaking_utilisation(
    wave_height: ArrayLike,
    wavelength: ArrayLike,
    depth: ArrayLike,
    *,
    coefficient: float = MICHE_COEFFICIENT,
    breaker_index: float = DEFAULT_BREAKER_INDEX,
) -> ScalarOrArray:
    """Calculate utilisation of the combined breaking limit.

    Parameters
    ----------
    wave_height : array_like
        Non-negative regular wave height H [m].
    wavelength : array_like
        Positive wavelength L [m].
    depth : array_like
        Positive still-water depth h [m].
    coefficient : float, optional
        Positive Miche coefficient [-].
    breaker_index : float, optional
        Positive empirical breaker index [-].

    Returns
    -------
    float or ndarray
        Ratio H/min(H_Miche, H_depth), dimensionless.

    Notes
    -----
    This is equivalent to the maximum utilisation
    of the two individual adopted criteria.
    """
    height = validate_non_negative(wave_height, "Wave height")

    limit = combined_breaking_height(
        wavelength,
        depth,
        coefficient=coefficient,
        breaker_index=breaker_index,
    )

    return _safe_ratio(height, limit, "Breaking utilisation")

breaking_status

breaking_status(wave_height: ArrayLike, wavelength: ArrayLike, depth: ArrayLike, *, coefficient: float = MICHE_COEFFICIENT, breaker_index: float = DEFAULT_BREAKER_INDEX, warning_ratio: float = DEFAULT_WARNING_RATIO) -> TextOrArray

Classify proximity to the adopted breaking limits.

Parameters:

Name Type Description Default
wave_height array_like

Non-negative regular wave height H [m].

required
wavelength array_like

Positive wavelength L [m].

required
depth array_like

Positive still-water depth h [m].

required
coefficient float

Positive Miche coefficient [-].

MICHE_COEFFICIENT
breaker_index float

Positive empirical breaker index [-].

DEFAULT_BREAKER_INDEX
warning_ratio float

Warning utilisation strictly between zero and one. Default 0.8.

DEFAULT_WARNING_RATIO

Returns:

Type Description
str or ndarray

One of: - "below_limit" - "approaching_limit" - "at_or_above_limit"

Notes

The labels describe the adopted screening criteria, not an observed physical breaking state.

Source code in src/fluidmec/waves/applicability.py
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
def breaking_status(
    wave_height: ArrayLike,
    wavelength: ArrayLike,
    depth: ArrayLike,
    *,
    coefficient: float = MICHE_COEFFICIENT,
    breaker_index: float = DEFAULT_BREAKER_INDEX,
    warning_ratio: float = DEFAULT_WARNING_RATIO,
) -> TextOrArray:
    """Classify proximity to the adopted breaking limits.

    Parameters
    ----------
    wave_height : array_like
        Non-negative regular wave height H [m].
    wavelength : array_like
        Positive wavelength L [m].
    depth : array_like
        Positive still-water depth h [m].
    coefficient : float, optional
        Positive Miche coefficient [-].
    breaker_index : float, optional
        Positive empirical breaker index [-].
    warning_ratio : float, optional
        Warning utilisation strictly between zero
        and one. Default 0.8.

    Returns
    -------
    str or ndarray
        One of:
        - "below_limit"
        - "approaching_limit"
        - "at_or_above_limit"

    Notes
    -----
    The labels describe the adopted screening
    criteria, not an observed physical breaking state.
    """
    warning = _warning_threshold(warning_ratio)

    utilisation = breaking_utilisation(
        wave_height,
        wavelength,
        depth,
        coefficient=coefficient,
        breaker_index=breaker_index,
    )

    result = np.select(
        [
            utilisation >= 1.0,
            utilisation >= warning,
        ],
        [
            "at_or_above_limit",
            "approaching_limit",
        ],
        default="below_limit",
    )

    return _text_output(result)

recommend_wave_theory

recommend_wave_theory(wave_height: ArrayLike, wavelength: ArrayLike, depth: ArrayLike, *, coefficient: float = MICHE_COEFFICIENT, breaker_index: float = DEFAULT_BREAKER_INDEX, warning_ratio: float = DEFAULT_WARNING_RATIO, linear_ka_limit: float = 0.05, linear_height_ratio_limit: float = 0.1, linear_ursell_limit: float = 1.0, cnoidal_ursell_limit: float = 26.0, cnoidal_depth_limit: float = 0.1, steep_ka_limit: float = 0.3) -> TextOrArray

Recommend candidate wave theories for screening.

Parameters:

Name Type Description Default
wave_height array_like

Non-negative regular wave height H [m].

required
wavelength array_like

Positive wavelength L [m].

required
depth array_like

Positive still-water depth h [m].

required
coefficient float

Positive Miche coefficient [-].

MICHE_COEFFICIENT
breaker_index float

Positive empirical breaker index [-].

DEFAULT_BREAKER_INDEX
warning_ratio float

Breaking utilisation warning threshold (0, 1).

DEFAULT_WARNING_RATIO
linear_ka_limit float

Maximum dimensionless amplitude for the adopted linear-wave screening rule.

0.05
linear_height_ratio_limit float

Maximum H/h for the linear screening rule.

0.1
linear_ursell_limit float

Maximum Ursell number for the linear rule outside the deep-water regime.

1.0
cnoidal_ursell_limit float

Minimum Ursell number for the cnoidal candidate rule.

26.0
cnoidal_depth_limit float

Maximum relative depth h/L for the cnoidal candidate rule.

0.1
steep_ka_limit float

Dimensionless amplitude above which a higher-order numerical theory is suggested.

0.3

Returns:

Type Description
str or ndarray

Candidate theory label.

Notes

The decision rules are configurable heuristics. They are not universal theory-validity boundaries.

The Ursell number is primarily relevant to long waves. Its linear screening condition is therefore not imposed in the deep-water regime.

A recommendation does not verify a particular solver, accuracy tolerance or engineering design.

Source code in src/fluidmec/waves/applicability.py
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
def recommend_wave_theory(
    wave_height: ArrayLike,
    wavelength: ArrayLike,
    depth: ArrayLike,
    *,
    coefficient: float = MICHE_COEFFICIENT,
    breaker_index: float = DEFAULT_BREAKER_INDEX,
    warning_ratio: float = DEFAULT_WARNING_RATIO,
    linear_ka_limit: float = 0.05,
    linear_height_ratio_limit: float = 0.1,
    linear_ursell_limit: float = 1.0,
    cnoidal_ursell_limit: float = 26.0,
    cnoidal_depth_limit: float = 0.1,
    steep_ka_limit: float = 0.3,
) -> TextOrArray:
    """Recommend candidate wave theories for screening.

    Parameters
    ----------
    wave_height : array_like
        Non-negative regular wave height H [m].
    wavelength : array_like
        Positive wavelength L [m].
    depth : array_like
        Positive still-water depth h [m].
    coefficient : float, optional
        Positive Miche coefficient [-].
    breaker_index : float, optional
        Positive empirical breaker index [-].
    warning_ratio : float, optional
        Breaking utilisation warning threshold (0, 1).
    linear_ka_limit : float, optional
        Maximum dimensionless amplitude for the
        adopted linear-wave screening rule.
    linear_height_ratio_limit : float, optional
        Maximum H/h for the linear screening rule.
    linear_ursell_limit : float, optional
        Maximum Ursell number for the linear rule
        outside the deep-water regime.
    cnoidal_ursell_limit : float, optional
        Minimum Ursell number for the cnoidal
        candidate rule.
    cnoidal_depth_limit : float, optional
        Maximum relative depth h/L for the cnoidal
        candidate rule.
    steep_ka_limit : float, optional
        Dimensionless amplitude above which a
        higher-order numerical theory is suggested.

    Returns
    -------
    str or ndarray
        Candidate theory label.

    Notes
    -----
    The decision rules are configurable heuristics.
    They are not universal theory-validity boundaries.

    The Ursell number is primarily relevant to long
    waves. Its linear screening condition is therefore
    not imposed in the deep-water regime.

    A recommendation does not verify a particular
    solver, accuracy tolerance or engineering design.
    """
    height, length, water_depth = _wave_inputs(wave_height, wavelength, depth)

    warning = _warning_threshold(warning_ratio)

    linear_ka = _positive_scalar(linear_ka_limit, "Linear ka limit")
    linear_ratio = _positive_scalar(
        linear_height_ratio_limit,
        "Linear height ratio limit",
    )
    linear_ur = _positive_scalar(linear_ursell_limit, "Linear Ursell limit")
    cnoidal_ur = _positive_scalar(cnoidal_ursell_limit, "Cnoidal Ursell limit")
    cnoidal_depth = _positive_scalar(cnoidal_depth_limit, "Cnoidal depth limit")
    steep_ka = _positive_scalar(steep_ka_limit, "Steep ka limit")

    if linear_ka >= steep_ka:
        raise ValueError("Linear ka limit must be below steep ka limit.")

    if linear_ur >= cnoidal_ur:
        raise ValueError("Linear Ursell limit must be below cnoidal Ursell limit.")

    if cnoidal_depth >= 0.5:
        raise ValueError("Cnoidal depth limit must be below 0.5.")

    steepness = _safe_ratio(height, length, "Wave steepness")

    ka = _finite_output(
        np.pi * np.asarray(steepness),
        "Dimensionless amplitude",
    )

    relative_depth = _safe_ratio(water_depth, length, "Relative depth")

    height_ratio = relative_wave_height(height, water_depth)

    ur = ursell_number(height, length, water_depth)

    utilisation = breaking_utilisation(
        height,
        length,
        water_depth,
        coefficient=coefficient,
        breaker_index=breaker_index,
    )

    linear = (
        (ka <= linear_ka)
        & (height_ratio <= linear_ratio)
        & ((relative_depth >= 0.5) | (ur <= linear_ur))
    )

    cnoidal = (relative_depth <= cnoidal_depth) & (ur >= cnoidal_ur)

    higher_order = (utilisation >= warning) | (ka >= steep_ka)

    result = np.select(
        [
            utilisation >= 1.0,
            linear,
            cnoidal,
            higher_order,
            relative_depth <= 0.05,
        ],
        [
            "breaking_wave_assessment",
            "linear_airy_candidate",
            "cnoidal_long_wave_candidate",
            "higher_order_numerical_candidate",
            "nonlinear_shallow_water_candidate",
        ],
        default="stokes_candidate",
    )

    return _text_output(result)

assess_wave_applicability

assess_wave_applicability(wave_height: ArrayLike, period: ArrayLike, depth: ArrayLike, gravity: ArrayLike = ENGINEERING_GRAVITY, *, coefficient: float = MICHE_COEFFICIENT, breaker_index: float = DEFAULT_BREAKER_INDEX, warning_ratio: float = DEFAULT_WARNING_RATIO, method: str = 'newton', tolerance: float = 1e-10, max_iterations: int = 100) -> dict

Produce a structured regular-wave screening report.

Parameters:

Name Type Description Default
wave_height array_like

Non-negative regular wave height H [m].

required
period array_like

Positive regular wave period T [s].

required
depth array_like

Positive still-water depth h [m].

required
gravity array_like

Positive gravitational acceleration [m/s^2].

ENGINEERING_GRAVITY
coefficient float

Positive Miche coefficient [-].

MICHE_COEFFICIENT
breaker_index float

Positive empirical breaker index [-].

DEFAULT_BREAKER_INDEX
warning_ratio float

Breaking utilisation warning threshold (0, 1).

DEFAULT_WARNING_RATIO
method (newton, bisection)

Linear dispersion solver method.

"newton"
tolerance float

Relative dispersion residual tolerance.

1e-10
max_iterations int

Maximum dispersion solver iterations.

100

Returns:

Type Description
dict

Wave inputs, estimated wavelength and wave number, dimensionless parameters, adopted breaking limits, utilisation, depth regime and candidate wave theory.

Notes

Wavelength is estimated using linear dispersion. If waves are strongly nonlinear, that wavelength may itself be inaccurate.

The report is preliminary engineering screening. It does not constitute a nonlinear wave solution or an assessment of structural safety.

Numeric report entries support NumPy broadcasting. Scalar inputs produce scalar numeric outputs.

Source code in src/fluidmec/waves/applicability.py
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
def assess_wave_applicability(
    wave_height: ArrayLike,
    period: ArrayLike,
    depth: ArrayLike,
    gravity: ArrayLike = ENGINEERING_GRAVITY,
    *,
    coefficient: float = MICHE_COEFFICIENT,
    breaker_index: float = DEFAULT_BREAKER_INDEX,
    warning_ratio: float = DEFAULT_WARNING_RATIO,
    method: str = "newton",
    tolerance: float = 1e-10,
    max_iterations: int = 100,
) -> dict:
    """Produce a structured regular-wave screening report.

    Parameters
    ----------
    wave_height : array_like
        Non-negative regular wave height H [m].
    period : array_like
        Positive regular wave period T [s].
    depth : array_like
        Positive still-water depth h [m].
    gravity : array_like, optional
        Positive gravitational acceleration [m/s^2].
    coefficient : float, optional
        Positive Miche coefficient [-].
    breaker_index : float, optional
        Positive empirical breaker index [-].
    warning_ratio : float, optional
        Breaking utilisation warning threshold (0, 1).
    method : {"newton", "bisection"}, optional
        Linear dispersion solver method.
    tolerance : float, optional
        Relative dispersion residual tolerance.
    max_iterations : int, optional
        Maximum dispersion solver iterations.

    Returns
    -------
    dict
        Wave inputs, estimated wavelength and wave
        number, dimensionless parameters, adopted
        breaking limits, utilisation, depth regime
        and candidate wave theory.

    Notes
    -----
    Wavelength is estimated using linear dispersion.
    If waves are strongly nonlinear, that wavelength
    may itself be inaccurate.

    The report is preliminary engineering screening.
    It does not constitute a nonlinear wave solution
    or an assessment of structural safety.

    Numeric report entries support NumPy broadcasting.
    Scalar inputs produce scalar numeric outputs.
    """
    height = validate_non_negative(wave_height, "Wave height")
    wave_period = validate_positive(period, "Wave period")
    water_depth = validate_positive(depth, "Water depth")
    g = validate_positive(gravity, "Gravity")

    height, wave_period, water_depth, g = np.broadcast_arrays(
        height, wave_period, water_depth, g
    )

    k = solve_wave_number(
        wave_period,
        water_depth,
        g,
        method=method,
        tolerance=tolerance,
        max_iterations=max_iterations,
    )

    length = _safe_ratio(2.0 * np.pi, k, "Wavelength")

    relative_depth = _safe_ratio(water_depth, length, "Relative depth")

    steepness = _safe_ratio(height, length, "Wave steepness")

    regime = np.select(
        [
            relative_depth <= 0.05,
            relative_depth >= 0.5,
        ],
        ["shallow", "deep"],
        default="intermediate",
    )

    miche = miche_breaking_height(length, water_depth, coefficient)

    depth_limit = depth_limited_breaking_height(water_depth, breaker_index)

    combined = format_output(np.minimum(miche, depth_limit))

    utilisation = breaking_utilisation(
        height,
        length,
        water_depth,
        coefficient=coefficient,
        breaker_index=breaker_index,
    )

    return {
        "wave_height_m": format_output(height),
        "period_s": format_output(wave_period),
        "depth_m": format_output(water_depth),
        "gravity_m_s2": format_output(g),
        "wave_number_rad_m": format_output(k),
        "wavelength_m": length,
        "wave_steepness": steepness,
        "dimensionless_amplitude": _finite_output(
            np.pi * np.asarray(steepness),
            "Dimensionless amplitude",
        ),
        "relative_depth": relative_depth,
        "dimensionless_depth": _finite_output(
            k * water_depth,
            "Dimensionless depth",
        ),
        "relative_wave_height": relative_wave_height(height, water_depth),
        "ursell_number": ursell_number(height, length, water_depth),
        "miche_breaking_height_m": miche,
        "depth_breaking_height_m": depth_limit,
        "combined_breaking_height_m": combined,
        "breaking_utilisation": utilisation,
        "depth_regime": _text_output(regime),
        "breaking_status": breaking_status(
            height,
            length,
            water_depth,
            coefficient=coefficient,
            breaker_index=breaker_index,
            warning_ratio=warning_ratio,
        ),
        "recommended_theory": recommend_wave_theory(
            height,
            length,
            water_depth,
            coefficient=coefficient,
            breaker_index=breaker_index,
            warning_ratio=warning_ratio,
        ),
        "miche_coefficient": float(coefficient),
        "breaker_index": float(breaker_index),
        "warning_ratio": float(warning_ratio),
        "wavelength_model": "linear_dispersion",
        "assessment_type": "preliminary_screening",
    }

References

Miche, R. (1944). Mouvements ondulatoires de la mer en profondeur constante ou decroissante.

Dean, R. G. and Dalrymple, R. A. (1991). Water Wave Mechanics for Engineers and Scientists. World Scientific.

US Army Corps of Engineers. Coastal Engineering Manual, EM 1110-2-1100.