Command index¶
Every SWAN command rompy-swan can write, and the component that writes it, by section of the command file. The index is generated from the code when the docs are built. The SWAN user manual describes each command in full.
Startup¶
Set in SwanConfig.startup. See the startup reference.
| SWAN command | Component | Description |
|---|---|---|
COORDINATES |
COORDINATES |
SWAN Coordinates |
MODE |
MODE |
SWAN Mode |
PROJECT |
PROJECT |
SWAN Project |
SET |
SET |
SWAN setting commands |
Computational grid¶
Set in SwanConfig.cgrid. See the computational grid reference.
| SWAN command | Component | Description |
|---|---|---|
CGRID |
CGRID |
SWAN computational grid abstract component |
CGRID |
CURVILINEAR |
SWAN curvilinear computational grid |
CGRID |
REGULAR |
SWAN regular computational grid |
CGRID |
UNSTRUCTURED |
SWAN unstructured computational grid |
Input grids¶
Set in SwanConfig.inpgrid and SwanConfig.forcing. See the input grids reference.
| SWAN command | Component | Description |
|---|---|---|
ICE |
ICE |
Constant wind input field |
INPGRID |
CURVILINEAR |
SWAN curvilinear input grid |
INPGRID |
INPGRID |
SWAN input grid |
INPGRID |
REGULAR |
SWAN regular input grid |
INPGRID |
UNSTRUCTURED |
SWAN unstructured input grid |
WIND |
WIND |
Constant wind input field |
Boundary and initial conditions¶
Set in SwanConfig.boundary and SwanConfig.initial. See the boundary and initial conditions reference.
| SWAN command | Component | Description |
|---|---|---|
BOUNDNEST1 |
BOUNDNEST1 |
Boundary spectra from a coarser SWAN nest |
BOUNDNEST2 |
BOUNDNEST2 |
Boundary spectra from WAM |
BOUNDNEST3 |
BOUNDNEST3 |
Boundary spectra from WAVEWATCHIII |
BOUNDSPEC |
BOUNDSPEC |
Boundary along sides or segment |
INITIAL |
INITIAL |
Initial conditions |
Physics¶
Set in SwanConfig.physics. See the physics reference.
| SWAN command | Component | Description |
|---|---|---|
BRAGG |
BRAGG |
Bragg scattering |
BRAGG |
BRAGG_FILE |
Bragg scattering with bottom spectrum from file |
BRAGG |
BRAGG_FT |
Bragg scattering with bottom spectrum computed from FFT |
BREAKING |
BREAKING_BKD |
Variable wave breaking index |
BREAKING |
BREAKING_CONSTANT |
Constant wave breaking index |
DIFFRACTION |
DIFFRACTION |
Wave diffraction |
FRICTION |
FRICTION_COLLINS |
Collins (1972) friction |
FRICTION |
FRICTION_JONSWAP |
Hasselmann et al. (1973) Jonswap friction |
FRICTION |
FRICTION_MADSEN |
Madsen et al (1988) friction |
FRICTION |
FRICTION_RIPPLES |
Smith et al. (2011) Ripples friction |
GEN1 |
GEN1 |
First generation source terms GEN1 |
GEN2 |
GEN2 |
Second generation source terms GEN2 |
GEN3 |
GEN3 |
Third generation source terms GEN3 |
LIMITER |
LIMITER |
Physics limiter |
MUD |
MUD |
Mud dumping |
NEGATINP |
NEGATINP |
Negative wind input |
OBSTACLE |
OBSTACLE |
Subgrid obstacle |
OBSTACLE |
OBSTACLES |
List of swan obstacles |
OBSTACLE |
OBSTACLE_FIG |
Obstacle for free infragravity radiation |
OFF |
OFF |
Deactivate physics commands |
OFF |
OFFS |
Deactivate multiple physics commands |
QUADRUPL |
QUADRUPL |
Nonlinear quadruplet wave interactions |
SCAT |
SCAT |
Scattering |
SETUP |
SETUP |
Wave setup |
SICE |
SICE |
Sea ice dissipation |
SICE |
SICE_D15 |
Sea ice dissipation based on the method of Doble et al. (2015) |
SICE |
SICE_M18 |
Sea ice dissipation based on the method of Meylan et al. (2018) |
SICE |
SICE_R19 |
Sea ice dissipation based on the method of Rogers et al (2019) |
SICE |
SICE_R21B |
Sea ice dissipation based on the method of Rogers et al. (2021) |
SSWELL |
SSWELL_ARDHUIN |
Nonbreaking dissipation of Ardhuin et al. (2010) |
SSWELL |
SSWELL_ROGERS |
Nonbreaking dissipation of Rogers et al. (2012) |
SSWELL |
SSWELL_ZIEGER |
Nonbreaking dissipation of Zieger et al. (2015) |
SURFBEAT |
SURFBEAT |
Surfbeat |
TRIAD |
TRIAD |
Wave triad interactions |
TRIAD |
TRIAD_DCTA |
Triad interactions with the DCTA method of Booij et al. (2009) |
TRIAD |
TRIAD_LTA |
Triad interactions with the LTA method of Eldeberky (1996) |
TRIAD |
TRIAD_SPB |
Triad interactions with the SPB method of Becq-Girard et al. (1999) |
TURBULENCE |
TURBULENCE |
Turbulent viscosity |
VEGETATION |
VEGETATION |
Vegetation dumping |
WCAPPING |
WCAPPING_AB |
Whitecapping according to Alves and Banner (2003) |
WCAPPING |
WCAPPING_KOMEN |
Whitecapping according to Komen (1984) |
Numerics¶
Set in SwanConfig.prop and SwanConfig.numeric. See the numerics reference.
| SWAN command | Component | Description |
|---|---|---|
NUMeric |
NUMERIC |
Numerical properties |
PROP |
PROP |
Propagation scheme |
Output¶
Set in SwanConfig.output. See the output reference.
| SWAN command | Component | Description |
|---|---|---|
BLOCK |
BLOCK |
Write spatial distributions |
BLOCK |
BLOCKS |
Write multiple spatial distributions |
CURVE |
CURVE |
Output locations along a curve |
CURVE |
CURVES |
Output locations along multiple curves |
FRAME |
FRAME |
Output locations on a regular grid |
GROUP |
GROUP |
Output locations on subset of a grid |
ISOLINE |
ISOLINE |
Output locations along a depth contour |
NESTOUT |
NESTOUT |
Write to 2D boundary spectra |
NGRID |
NEST |
Coupled NGRID and NESTOUT component for nested runs |
NGRID |
NGRID |
Output locations for a nested grid |
NGRID |
NGRID_UNSTRUCTURED |
Output locations for a nested grid |
OUTPUT |
OUTPUT_OPTIONS |
Set format of output |
POINTS |
POINTS |
Isolated output locations |
POINTS |
POINTS_FILE |
Isolated output locations |
QUANTITY |
QUANTITIES |
Define output settings for multiple output |
QUANTITY |
QUANTITY |
Define output settings |
RAY |
RAY |
Output locations along a depth contour |
SPECOUT |
SPECOUT |
Write to data file the wave spectra |
TABLE |
TABLE |
Write spatial distributions |
TEST |
TEST |
Write intermediate results |
{MODEL_TYPE} |
BaseLocation |
Base class for SWAN output locations |
{MODEL_TYPE} |
BaseWrite |
Base class for SWAN output writing |
Lockup¶
Set in SwanConfig.lockup. See the lockup reference.
| SWAN command | Component | Description |
|---|---|---|
COMPUTE |
COMPUTE |
Single SWAN computation in stationary mode |
COMPUTE |
COMPUTE_NONSTAT |
Multiple SWAN nonstationary computations |
COMPUTE |
COMPUTE_STAT |
Multiple SWAN stationary computations |
HOTFILE |
HOTFILE |
Write intermediate results |
STOP |
STOP |
End of commands |