Types¶
Enumerations used by the components.
SWAN Types
This module contains type definitions and enumerations used throughout the SWAN model implementation, including grid types, boundary conditions, and physics options.
IDLA
¶
Bases: IntEnum
Order of values in the input files.
Attributes:
| Name | Type | Description |
|---|---|---|
ONE |
1
|
SWAN reads the map from left to right starting in the upper-left-hand corner of the map. A new line in the map should start on a new line in the file. |
TWO |
2
|
As |
THREE |
3
|
SWAN reads the map from left to right starting in the lower-left-hand corner of the map. A new line in the map should start on a new line in the file. |
FOUR |
4
|
As |
FIVE |
5
|
SWAN reads the map from top to bottom starting in the lower-left-hand corner of the map. A new column in the map should start on a new line in the file. |
SIX |
6
|
As |
Notes
It is assumed that the x-axis of the grid is pointing to the right and the y-axis upwards.
GridOptions
¶
Valid options for the input grid type.
Attributes:
| Name | Type | Description |
|---|---|---|
BOTTOM |
bottom
|
Bottom level grid. |
WLEVEL |
wlevel
|
Water level grid. |
CURRENT |
current
|
Current field grid. |
VX |
vx
|
Current field x-component grid. |
VY |
vy
|
Current field y-component grid. |
WIND |
wind
|
Wind velocity grid. |
WX |
wx
|
Wind velocity x-component grid. |
WY |
wy
|
Wind velocity y-component grid. |
FRICTION |
friction
|
Bottom friction grid. |
NPLANTS |
nplants
|
Horizontally varying vegetation density grid. |
TURBVISC |
turbvisc
|
Horizontally varying turbulent viscosity grid. |
MUDLAYER |
mudlayer
|
Horizontally varying mud layer thickness grid. |
AICE |
aice
|
Areal ice fraction grid, a number between 0 and 1. |
HICE |
hice
|
Ice thickness grid. |
HSS |
hss
|
Sea-swell significant wave height grid. |
TSS |
tss
|
Sea-swell mean wave period. |
BoundShapeOptions
¶
SideOptions
¶
PhysicsOff
¶
Physics commands to be switched off.
Attributes:
| Name | Type | Description |
|---|---|---|
WINDGROWTH |
str = "windgrowth"
|
Switches off wind growth (in commands GEN1, GEN2, GEN3). |
QUADRUPL |
str = "quadrupl"
|
Switches off quadruplet wave interactions (in command GEN3). |
WCAPPING |
str = "wcapping"
|
Switches off whitecapping (in command GEN3). |
BREAKING |
str = "breaking"
|
Switches off wave breaking dissipation. |
REFRAC |
str = "refrac"
|
Switches off wave refraction (action transport in theta space). |
FSHIFT |
str = "fshift"
|
Switches off frequency shifting (action transport in sigma space). |
BNDCHK |
str = "bndchk"
|
Switches off the checking of the delta imposed and computed Hs at the boundary. |
BlockOptions
¶
Valid options for block output parameters.
Attributes:
| Name | Type | Description |
|---|---|---|
HSIGN |
hsign
|
Significant wave height (in m). |
HSEA |
hsea
|
Sea wave height (in m). |
HSWELL |
hswell
|
Swell wave height (in m). |
DIR |
dir
|
Mean wave direction (in degrees). |
DPM |
dpm
|
Mean wave direction at the peak frequency (in degrees). |
DPMSEA |
dpmsea
|
Sea mean wave direction at the peak frequency (in degrees). |
DPMSWE |
dpmswe
|
Swell mean wave direction at the peak frequency (in degrees). |
PDIR |
pdir
|
Peak wave direction (in degrees). |
TDIR |
tdir
|
Direction of energy transport (in degrees). |
TM01 |
tm01
|
Mean absolute wave period (in s). |
RTM01 |
rtm01
|
Mean relative wave period (in s). |
RTP |
rtp
|
Peak period of the (relative frequency) variance density spectrum (in s). |
TPS |
tps
|
Smoothed peak period (in s). |
TPSSEA |
tpssea
|
Sea smoothed peak period (in s). |
TPSSWE |
tpsswe
|
Swell smoothed peak period (in s). |
PER |
per
|
Mean absolute wave period (in s). |
RPER |
rper
|
Mean relative wave period (in s). |
TMM10 |
tmm10
|
Mean absolute wave period (in s). |
RTMM10 |
rtmm10
|
Mean relative wave period (in s). |
TM02 |
tm02
|
Mean absolute zero-crossing period (in s). |
FSPR |
fspr
|
The normalised width of the frequency spectrum. |
DSPR |
dspr
|
Directional spreading of the waves (in degrees). |
QP |
qp
|
Peakedness of the wave spectrum (dimensionless). |
DEPTH |
depth
|
Water depth (in m). |
WATLEV |
watlev
|
Water level (in m). |
BOTLEV |
botlev
|
Bottom level (in m). |
VEL |
vel
|
Current velocity (vector; in m/s). |
FRCOEF |
frcoef
|
Friction coefficient (equal to |
WIND |
wind
|
Wind velocity (vector; in m/s). |
AICE |
aice
|
Ice concentration (as a fraction from 0 to 1). |
PROPAGAT |
propagat
|
Sum of PROPXY, PROPTHETA and PROPSIGMA (in W/m2 or m2/s). |
PROPXY |
propxy
|
Energy propagation in geographic space; sum of x- and y-direction (in W/m2 or m2/s). |
PROPTHETA |
proptheta
|
Energy propagation in theta space (in W/m2 or m2/s). |
PROPSIGMA |
propsigma
|
Energy propagation in sigma space (in W/m2 or m2/s). |
GENERAT |
generat
|
Total energy generation (in W/m2 or m2/s). |
GENWIND |
genwind
|
Energy generation due to wind (in W/m2 or m2/s). |
REDIST |
redist
|
Total energy redistribution (in W/m2 or m2/s). |
REDQUAD |
redquad
|
Energy redistribution due to quadruplets (in W/m2 or m2/s). |
REDTRIAD |
redtriad
|
Energy redistribution due to triads (in W/m2 or m2/s). |
DISSIP |
dissip
|
Total energy dissipation (in W/m2 or m2/s). |
DISBOT |
disbot
|
Energy dissipation due to bottom friction (in W/m2 or m2/s). |
DISSURF |
dissurf
|
Energy dissipation due to surf breaking (in W/m2 or m2/s). |
DISWCAP |
diswcap
|
Energy dissipation due to whitecapping (in W/m2 or m2/s). |
DISSWELL |
disswell
|
Energy dissipation due to swell dissipation (in W/m2 or m2/s). |
DISVEG |
disveg
|
Energy dissipation due to vegetation (in W/m2 or m2/s). |
DISMUD |
dismud
|
Energy dissipation due to mud (in W/m2 or m2/s). |
DISICE |
disice
|
Energy dissipation due to sea ice (in W/m2 or m2/s). |
RADSTR |
radstr
|
Energy transfer between waves and currents due to radiation stress (in W/m2 or m2/s). |
QB |
qb
|
Fraction of breaking waves due to depth-induced breaking. |
TRANSP |
transp
|
Transport of energy (vector; in W/m2 or m2/s). |
FORCE |
force
|
Wave-induced force per unit surface area (vector; in N/m2). |
UBOT |
ubot
|
The rms-value of the maxima of the orbital velocity near the bottom (in m/s). |
URMS |
urms
|
The rms-value of the orbital velocity near the bottom (in m/s). |
TMBOT |
tmbot
|
The bottom wave period (in s). |
WLENGTH |
wlength
|
Average wave length (in m). |
LWAVP |
lwavp
|
Peak wave length (in m). |
STEEPNESS |
steepness
|
Average wave steepness (dimensionless). |
BFI |
bfi
|
Benjamin-Feir index (dimensionless). |
NPLANTS |
nplants
|
Number of plants per square meter. |
DHSIGN |
dhsign
|
Difference in significant wave height from the last two iterations (in m). |
DRTM01 |
drtm01
|
Difference in average wave period (RTM01) from the last two iterations (in s). |
LEAK |
leak
|
Numerical loss of energy equal to |
TIME |
time
|
Full date-time string as part of line used in TABLE only. |
TSEC |
tsec
|
Time in seconds with respect to a reference time (see command QUANTITY). |
XP |
xp
|
The x-coordinate in the problem coordinate system of the output location. |
YP |
yp
|
The y-coordinate in the problem coordinate system of the output location. |
DIST |
dist
|
If output has been requested along a curve then the distance along the curve can be obtained with the command TABLE. DIST is the distance along the curve measured from teh first point on the curve to the output location on the curve in meters (also in the case of spherical coordinates). |
SETUP |
setup
|
Set-up due to waves (in m). |
PTHSIGN |
pthsign
|
Watershed partitions of the significant wave height (in m). |
PTRTP |
ptrtp
|
Watershed partitions of the relative peak period (in s). |
PTWLEN |
ptwlen
|
Watershed partitions of the average wave length (in m). |
PTDIR |
ptdir
|
Watershed partitions of the peak wave direction (in degrees). |
PTDSPR |
ptdspr
|
Watershed partitions of the directional spreading (in degrees). |
PTWFRAC |
ptwfrac
|
Watershed partitions of the wind fraction (dimensionless). |
PTSTEEPNE |
ptsteepne
|
Watershed partition of the wave steepness (dimensionless). |
PARTITION |
partition
|
The raw spectral partition for wave system tracking post-processing. |
Note
Energy given in W/m2 or m2/s depending on command SET.
Note
UBOT and URMS required command FRICTION to be used. If friction is ignored in the
computation, then one should use the command FRICTION with the value of the
friction set to zero (e.g., FRICTION COLLINS 0).