A gallery of cases, ready to run: idealized cases, where the wind and the
other parameters are constant, and most cases need no input files, and two
real cases from the ERA5 reanalysis, which prepare their input files from
it when they run. Each case is a directory with its main.nml namelist,
whose leading comments describe the case, and the spectrum.nml points of
its spectrum output; cases.txt lists the cases. The seamount and
eddy-field cases bring their input files, a bathymetry and steady
currents, in their input/ directory, with the make_input.py script that
writes them.
| Case | What it shows | Grid |
|---|---|---|
fetch-limited |
Growth with fetch to full development, 20 m/s wind | 1000 km at 10 km, 48 h |
duration-limited |
Growth with time of a uniform sea, 20 m/s wind | one sea cell, 48 h |
jonswap |
Fetch-limited growth over the fetches of JONSWAP, 10 m/s wind | 100 km at 1 km, 12 h |
wave-tank |
Waves in a laboratory wind-wave tank, 10 m/s wind | 10 m at 20 cm, 2 min |
titan-ontario-lacus |
Methane-ethane waves on a lake of Titan, 1.5 m/s wind | 230 x 75 km at 5 km, 24 h |
mars-jezero-lake |
Waves on the ancient lake of Jezero crater, Mars, 5 m/s wind | 40 x 40 km at 1 km, 12 h |
seamount |
Waves over a Gaussian seamount, 20 m/s wind | 100 x 160 km at 2.5 km, 12 h |
eddy-field |
Waves through steady mesoscale eddies, 20 m/s wind | 200 x 300 km at 4 km, 15 h |
era5-helene |
Hurricane Helene in the Gulf of Mexico, from ERA5, with open boundaries | 79 x 57 at 0.25 degrees, 24 h |
era5-global-1deg |
The global ocean, from ERA5 | 360 x 157 at 1 degree, 24 h |
era5-global-0.25deg |
The global ocean at the resolution of ERA5, about 22 GB of memory | 1440 x 625 at 0.25 degrees, 24 h |
Each case is a configuration directory: the umwm executable runs it with
umwm CONFIG, writing the output to the directory given with -o, created
if needed, or else the current directory, and reading the input files of
the cases that have them from their input/ directory:
./umwm --list-cases
./umwm examples/jonswap -o runs/jonswap
./umwm examples/titan-ontario-lacus -o runs/titan
mpiexec -n 2 ./umwm examples/jonswap -o runs/jonswap-parallel # in parallel
A run writes its output files, and copies of the namelists of the case,
umwmout_main.nml and umwmout_spectrum.nml, to the output directory, over
the output of any earlier run there, so give each run its own output
directory to keep their output apart. A run leaves the case as it is,
except that the ERA5 cases prepare their input files in their input/
directory unless -i gives another, as in the ERA5 cases
below. The executable lists the cases of examples/ of the current directory or of
the directory of the executable, also when it is started through PATH or
a symbolic link, or of $UMWM_EXAMPLES.
In parallel, the processes share the sea cells and the results are the same
as those of a serial run. The cases are small, so a few processes are
enough: fetch-limited, jonswap and wave-tank, four grid columns wide,
run on up to four processes, and duration-limited, a single sea cell, only
in serial.
With the Python command-line tool, umwm run CONFIG
runs a case in the same way, with -s to change any namelist variable for
the run, and umwm init --case NAME DIR copies a case, with its input
files, into a directory to edit:
umwm cases # list the cases, with their directories
umwm cases titan # describe one
umwm run examples/jonswap -o runs/jonswap
umwm run examples/jonswap -o runs/j15 -s forcing_constant.wspd0=15
umwm output runs/jonswap --stats # summarize the output
umwm output runs/jonswap --plot swh --save swh.png
umwm init --case mars mars # a configuration to edit
umwm init --case seamount seamount # with a copy of the input files
umwm config --case titan --diff defaults # what the case changes
The overrides of -s are in the copy of the namelist in the output
directory, umwmout_main.nml, and are not written to the case. From Python,
umwm.Config.from_case(name) reads the configuration of a case,
umwm.list_cases() lists them, and case.domain(output_dir) is a domain of
a case, which reads its input files from the case:
import umwm
config = umwm.Config.from_case("jonswap")
config.forcing_constant.wspd0 = 15.0
with umwm.Domain(config, output_dir="runs/jonswap15") as domain:
domain.run()
output = domain.output()
spectra = domain.spectrum_output() # {"fetch010km": Dataset, ...}
The ERA5 cases need the Python package, with the dependencies of ERA5
(pip install '.[era5]' in the UMWM repository), and network access to the
ARCO ERA5 store of Google; the umwm executable prepares their input files
with it, in the input directory (see ERA5 cases).
The ocean cases (fetch-limited, duration-limited and jonswap) model
frequencies from 0.04 to 14 Hz in 52 bins, the frequency spacing of the
default 37 bins from 0.0313 to 2 Hz, up to the smallest phase speed of sea
water at 13.7 Hz (a 1.65 cm wavelength), in the gravity-capillary range. The
longer high-frequency tail barely changes the wave heights, but lowers the
drag coefficient at 20 m/s by about 5%, to 2.0 × 10-3.
fetch-limited: a steady, uniform 20 m/s wind blows offshore from a
straight coast over 1000 km of deep water. The domain is periodic in x
(isGlobal = .true.), so the coast and the wave field are uniform along it,
without the lateral boundaries that would drain the waves traveling at an
angle to the wind in a narrow channel; the wind blows toward +y from the
land row at y = 0. Grid row n (1-based) is at a fetch of (n - 1) × 10 km.
After about 36 hours the wave field is steady. The significant wave height grows from 2.7 m at 10 km to 5.4 m at 100 km and 10.1 m at 990 km, and the dominant period from 6.3 s to 10 s and 16 s; at the far end, the sea is close to the Pierson-Moskowitz full development for this wind, with a significant wave height of about 9.9 m and a peak period of 15.7 s (Pierson and Moskowitz, 1964). Spectra are written hourly at 50, 200, 500 and 990 km.
duration-limited: the same 20 m/s wind starts blowing over a sea
without fetch limitation. The wave field is then the same everywhere, and
the model reduces to the integration of the source functions at a point: the
domain is a single sea cell, so large (106 km) that propagation out of
it is negligible. The significant wave height grows to 6.0 m in 6 hours,
9.6 m in 24 hours and 11.9 m in 48 hours, with the dominant period growing
from 11 s to 18 s. After about 30 hours of wind the sea is as developed as at
1000 km fetch in the fetch-limited case. The spectrum is written hourly;
after 48 hours its peak, at 0.057 Hz, is three bins above the lowest
frequency, so lower fmin to run the case longer.
jonswap: fetch-limited growth over the fetches of the Joint North Sea
Wave Project (JONSWAP; Hasselmann et al., 1973), with a 10 m/s wind over 100
km of deep water at 1 km resolution, in the same periodic layout as
fetch-limited. After about 10 hours the wave field is steady:
| Fetch | Hs, UMWM | Hs, JONSWAP | Peak frequency, UMWM | Peak frequency, JONSWAP |
|---|---|---|---|---|
| 10 km | 0.71 m | 0.51 m | 0.28 Hz | 0.35 Hz |
| 20 km | 0.88 m | 0.72 m | 0.25 Hz | 0.28 Hz |
| 40 km | 1.08 m | 1.02 m | 0.20 Hz | 0.22 Hz |
| 80 km | 1.32 m | 1.45 m | 0.18 Hz | 0.18 Hz |
where the JONSWAP values are the fetch laws gHs/U2 = 1.6 × 10-3 X1/2 and fpU/g = 3.5 X-0.33, with X = gx/U2 for the fetch x. The spectra written at these four fetches show the peaked spectrum shifting to lower frequencies with fetch.
wave-tank: a 10 m long tank with 0.5 m of fresh water, under a 10 m/s
wind, at 20 cm resolution. The wind speed is the wind at 10 m, to which
laboratory winds are customarily extrapolated with the logarithmic profile
for comparison with field measurements. The tank is periodic in x, of
unlimited width. The waves are steady along the tank within a minute: the
significant wave height grows from 1 cm at 1 m to 3.0 cm at 9.8 m, and the
peak frequency falls from 3.2 to 1.8 Hz. The frequencies span 1 to 20 Hz,
through the gravity-capillary range: the phase speed is smallest at 13.5 Hz,
for a wavenumber of (g ρw/σ)1/2 = 367 rad/m and a wavelength of
1.7 cm. The gridded output and the spectra along the tank are written every
10 s, every global time step (outgrid = outspec = -1).
In a tank the waves are far younger than a fully developed sea, and their
spectral peak lies far above the default cutoff of the prognostic range,
fc = 0.53 g/U ≈ 4 fPM, which is 0.52 Hz for this wind; with the
default, the whole spectrum of the tank would be in the diagnostic
equilibrium range, at nearly the same height, about 8 cm, all along the
tank. The case sets fcut_fac = 10, which raises the cutoff to 9.8 Hz.
The planetary cases use the parameters of Schneck et al. (2026), from their PlanetWaves model (v1.0.0, doi:10.5281/zenodo.18906357), which give the air density from the ideal gas law and the properties of the liquids from the DIPPR database and, for Titan, the TitanPool model:
| Parameter | Namelist | Earth, ocean cases | Titan, Ontario Lacus | Mars, Jezero (0.5 bar) |
|---|---|---|---|---|
| Gravity [m/s2] | g |
9.80665 | 1.352 | 3.71 |
| Atmosphere | N2, 1.5 atm, 92 K | CO2, 0.5 bar, 288 K | ||
| Air density [kg/m3] | rhoa0 |
1.2 | 5.564 | 0.9188 |
| Air kinematic viscosity [m2/s] | nu_air |
1.56e-5 | 1.156e-6 | 1.576e-5 |
| Liquid | sea water | CH4-C2H6-N2, 92 K | fresh water, 288 K | |
| Liquid density [kg/m3] | rhow0 |
1030 | 588.15 | 998.21 |
| Liquid kinematic viscosity [m2/s] | nu_water |
0.9e-6 | 8.084e-7 | 1.156e-6 |
| Surface tension [N/m] | sfct |
0.07 | 0.032766 | 0.073836 |
| Smallest phase speed [Hz, cm] | 13.7, 1.65 | 3.3, 4.0 | 6.5, 2.8 | |
| Frequencies [Hz] | fmin, fmax |
0.04 to 14 | 0.02 to 5 | 0.05 to 10 |
| Frequency bins | om |
52 | 49 | 47 |
The geometry of the lakes is idealized as rectangular basins of uniform depth. As in the Earth cases, the frequencies extend through the gravity-capillary range, past the smallest phase speed, at the wavenumber (g ρw/σ)1/2; with the lower gravity of Titan and Mars, it lies at lower frequencies and longer wavelengths than on Earth. The number of bins keeps the frequency spacing of the default 37 bins from 0.0313 to 2 Hz.
titan-ontario-lacus: Ontario Lacus, the largest lake of Titan’s south
polar region, as a 230 × 75 km basin, 20 m deep, under a 1.5 m/s wind along
its length, the average storm wind over Titan’s lakes (Detelich et al.,
2026). The low gravity and the dense atmosphere make the waves slow, long,
and high for their wind. After a day, the significant wave height grows from
0.23 m at 5 km to 0.46 m at 100 km, with dominant periods from 5.6 to 10 s,
in the range of 15 to 48 cm and 6 to 10.5 s found by Detelich et al. (2026)
for such winds; farther down the lake the waves are limited by the duration
of the wind rather than by the fetch, and are still growing slowly. Spectra
are written hourly at 25, 100 and 225 km.
mars-jezero-lake: the lake that filled Jezero crater on early Mars, as a
40 × 40 km basin, 100 m deep, under a 5 m/s wind, with the low-pressure (0.5
bar) atmosphere of Schneck et al. (2026). After about 8 hours the waves are
steady, with the significant wave height growing from 0.21 m at 1 km to
0.57 m at 40 km and dominant periods from 3.2 to 5.6 s. Spectra are written
hourly at 10, 20 and 40 km. For the high-pressure (2 bar) atmosphere of
Schneck et al. (2026):
umwm run examples/mars-jezero-lake -o runs/mars-2bar -s forcing_constant.rhoa0=3.6752 -s physics.nu_air=3.9405e-6
Schneck et al. (2026) modeled Jezero with winds of 2 to 3 m/s, close to the
threshold of wave growth there; try -s forcing_constant.wspd0=3.
These two cases, like the other ocean cases, model frequencies from 0.04 to
14 Hz in 52 bins, and have a steady, uniform 20 m/s wind blowing offshore
from a straight coast, as in fetch-limited: the domain is periodic in x,
and the wind blows toward +y from the land row at y = 0.
seamount: a Gaussian seamount rises from a 1000 m deep floor to 20 m
below the surface at the center of a 100 × 160 km domain, at 80 km fetch,
with a width (the standard deviation of the Gaussian) of 20 km, at 2.5 km
resolution. The bathymetry is read from input/umwm.gridtopo
(topoFromFile). After about 8 hours the waves over the seamount are
steady. Over its top, where the 10 s waves feel the bottom, the significant
wave height is 4.7 m, 7% lower than the 5.1 m away from it, and downwind the
seamount casts a weak shadow, 2% lower 20 km beyond its top. With the broad
directional spread of a wind sea, refraction over the seamount does not
focus the waves into a higher sea in its lee. Spectra are written upwind of,
on, and downwind of the seamount, and at the same fetch away from it.
eddy-field: beyond 60 km from the coast of a 200 × 300 km domain, at 4
km resolution, the waves cross 14 mesoscale eddies of Gaussian shape, 6
rotating clockwise and 8 counterclockwise, with radii of 13 to 28 km and
speeds up to 0.7 m/s (rms 0.3 m/s), which do not evolve in time. The
currents are read once, from input/umwmin.nc, and held constant
(currents and steady in &FORCING). The currents refract and advect
the waves: across the eddies, the significant wave height varies
by -8% to +11% around its mean at each fetch (standard deviation 3%), in
streaks downwind of the eddies, where it would be uniform without currents.
After 15 hours the pattern is steady, while the waves at the far end are
still growing slowly. Spectra are written upwind of the eddies and across
the domain beyond them.
The make_input.py script of each case writes its input file on the grid of
its main.nml, from parameters at its top: the depths and the width of the
seamount, and the number, sizes, speeds, and random seed of the eddies.
After changing them, python make_input.py in the case directory writes the
input file again.
These cases start from, and are forced by, the ERA5 reanalysis, on a
longitude-latitude grid (lon0, lat0, dlon and dlat in &GRID), with
the bathymetry of the ERA5 wave model (topoFromFile). With source =
'era5' in &FORCING, the input files are prepared from the analysis-ready,
cloud-optimized ERA5 store of Google Cloud before the model runs, by the
umwm executable, by umwm run, or beforehand by umwm forcing era5: the
bathymetry, the hourly wind, air density and sea ice, and the wave
partitions of ERA5, the wind sea and three swells, from which the model
rebuilds its initial spectrum (waves), with the significant wave height,
mean period, mean direction and directional spread of each.
./umwm examples/era5-helene -o runs/helene -i runs/helene/input # prepares the inputs, then runs
umwm run examples/era5-global-1deg -o runs/global -i runs/global/input # with the Python tool
umwm init --case era5-helene milton -s domain.starttimestr="2024-10-09 00:00:00" \
-s domain.stoptimestr="2024-10-10 00:00:00" # another hurricane
./umwm milton -o runs/milton
The input files are prepared in the input directory: the directory given
with -i, as above, which leaves the case as it is, or else the input/
directory of the configuration, such as milton/input.
era5-helene: hurricane Helene crossing the Gulf of Mexico on 26
September 2024, at the 0.25 degrees of ERA5, for 24 hours. The domain is
regional, and its open boundaries, the Yucatan Channel, the Straits of
Florida and the western Caribbean, take the spectrum of the ERA5 partitions
throughout the run. The preparation reads about 1 GB of ERA5 fields, as the
ARCO store has a chunk of the whole globe per hour and variable. ERA5
resolves the core of a hurricane poorly: its wind peaks at 32 m/s, far below
the 60 m/s of Helene, and the significant wave height at 10.7 m in ERA5 and
11.0 m in the model. Against ERA5 interpolated to the grid of the model, the
significant wave height of the model differs by:
| Time | From ERA5 | From rest |
|---|---|---|
| 0 h | 0.007 m (0.4%) | 1.78 m |
| 6 h | 0.26 m (13%) | 0.72 m |
| 12 h | 0.40 m (17%) | 0.62 m |
| 24 h | 0.68 m (28%) | 0.72 m |
(root mean square difference over the sea cells, and relative to the mean of ERA5), most under the strongest winds, where the model grows the waves by its own physics; within three cells of the open boundaries, it differs by 0.15 m or less throughout.
era5-global-1deg: the global ocean at 1 degree, from 78S to 78N, for 24
hours from the same time, with 38500 sea cells. The domain is periodic in
longitude and has no open boundaries: its edges, the rows at 78S and 78N,
are land. The preparation reads 0.24 GB of ERA5 fields, the wave partitions
at the start time only. A parallel run, such as
mpiexec -n 4 ./umwm examples/era5-global-1deg, gives the same results as a
serial one. Against ERA5, the significant wave height of the model differs
by 0.009 m (0.4%) at the start, 0.37 m (17%) after 6 hours and 0.51 m (23%)
after 24 hours, and is lower by 0.2 m on average from 6 hours on: the total
wave energy decreases by 7% in the first hour and 12% in six hours, and
then holds, as the model damps the swell that travels across or
against the local wind (the damping of sin_diss1; Donelan et al., 2012)
much faster than the ERA5 wave model, most in the trade winds of the
southern hemisphere, which the long swell of the Southern Ocean crosses.
era5-global-0.25deg: the same run at 0.25 degrees, the grid of ERA5,
whose points are the cells of the model, with 619000 sea cells, 16 times as
many. The preparation writes 0.6 GB of input files from the same 0.24 GB of
ERA5 fields. The model needs about 22 GB of memory: run it on a computer
with that memory, or in parallel on a cluster, whose processes divide the
memory between them, with its input files prepared first on a node with
network access, as a parallel run does not prepare them:
umwm forcing era5 examples/era5-global-0.25deg -i runs/global/input
mpiexec -n 64 ./umwm examples/era5-global-0.25deg -o runs/global -i runs/global/input
A case is a directory with a complete main.nml, which sets every
namelist variable, and optionally a spectrum.nml, listed in cases.txt
with a one-line description. Its input files, if any, go in its input/
directory; forcing read from file should be steady (forcing.steady), so
that one file of the start time is enough, unless the case prepares its
input files from a data source (forcing.source), as the ERA5 cases do. The
test suite of the Python package checks that every case listed is complete
and valid, and that its input files match its grid; it runs the ERA5 cases
only with UMWM_TEST_ERA5=1.