rompy.swan.components.physics.TRIAD#

pydantic model rompy.swan.components.physics.TRIAD[source]#

Wave triad interactions.

TRIAD [itriad] [trfac] [cutfr] [a] [b] [urcrit] [urslim]

With this command the user can activate the triad wave-wave interactions. If this command is not used, SWAN will not account for triads.

Note

This is the TRIAD specification in SWAN < 41.45.

Examples

In [175]: from rompy.swan.components.physics import TRIAD

In [176]: triad = TRIAD()

In [177]: print(triad.render())
TRIAD

In [178]: triad = TRIAD(
   .....:     itriad=1,
   .....:     trfac=0.8,
   .....:     cutfr=2.5,
   .....:     a=0.95,
   .....:     b=-0.75,
   .....:     ucrit=0.2,
   .....:     urslim=0.01,
   .....: )
   .....: 

In [179]: print(triad.render())
TRIAD itriad=1 trfac=0.8 cutfr=2.5 a=0.95 b=-0.75 urcrit=0.2 urslim=0.01
Fields:
field a: float | None = None#

First calibration parameter for tuning K in Eq. (5.1) of Becq-Girard et al. (1999). This parameter is associated with broadening of the resonance condition (SWAN default: 0.95)

field b: float | None = None#

Second calibration parameter for tuning K in Eq. (5.1) of Becq-Girard et al. (1999). This parameter is associated with broadening of the resonance condition (SWAN default: -0.75 for 1D, 0.0 for 2D

field cutfr: float | None = None#

Controls the maximum frequency that is considered in the LTA computation. The value of cutfr is the ratio of this maximum frequency over the mean frequency (SWAN default: 2.5)

field itriad: Literal[1, 2] | None = None#

Approximation method for the triad computation:

  • 1: the LTA method of Eldeberky (1996)

  • 2: the SPB method of Becq-Girard et al. (1999) (SWAN default: 1)

field model_type: Literal['triad', 'TRIAD'] = 'triad'#

Model type discriminator

field trfac: float | None = None#

Proportionality coefficient (SWAN default: 0.8 in case of LTA method, 0.9 in case of SPB method)

field ucrit: float | None = None#

The critical Ursell number appearing in the expression for the biphase (SWAN default: 0.2)

field urslim: float | None = None#

The lower threshold for Ursell number, if the actual Ursell number is below this value triad interactions are be computed (SWAN default: 0.01)

cmd() str[source]#

Command file string for this component.