rompy.swan.components.physics.GEN1#

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

First generation source terms GEN1.

GEN1 [cf10] [cf20] [cf30] [cf40] [edmlpm] [cdrag] [umin] [cfpm]

With this command the user indicates that SWAN should run in first-generation mode (see Scientific/Technical documentation).

Examples

In [58]: from rompy.swan.components.physics import GEN1

In [59]: gen = GEN1()

In [60]: print(gen.render())
GEN1

In [61]: kwargs = dict(
   ....:     cf10=188.0,
   ....:     cf20=0.59,
   ....:     cf30=0.12,
   ....:     cf40=250.0,
   ....:     edmlpm=0.0036,
   ....:     cdrag=0.0012,
   ....:     umin=1.0,
   ....:     cfpm=0.13
   ....: )
   ....: 

In [62]: gen = GEN1(**kwargs)

In [63]: print(gen.render())
GEN1 cf10=188.0 cf20=0.59 cf30=0.12 cf40=250.0 edmlpm=0.0036 cdrag=0.0012 umin=1.0 cfpm=0.13
Fields:
field cdrag: float | None = None#

Drag coefficient (SWAN default: 0.0012)

field cf10: float | None = None#

Controls the linear wave growth (SWAN default: 188.0)

field cf20: float | None = None#

Controls the exponential wave growth (SWAN default: 0.59)

field cf30: float | None = None#

Controls the exponential wave growth (SWAN default: 0.12)

field cf40: float | None = None#

Controls the dissipation rate, i.e., the time decay scale (SWAN default: 250.0)

field cfpm: float | None = None#

Coefficient which determines the Pierson Moskowitz frequency: delta_PM = 2pi g / U_10 (SWAN default: 0.13)

field edmlpm: float | None = None#

Maximum non-dimensionless energy density of the wind sea part of the spectrum according to Pierson Moskowitz (SWAN default: 0.0036)

field model_type: Literal['gen1', 'GEN1'] = 'gen1'#

Model type discriminator

field umin: float | None = None#

Minimum wind velocity (relative to current; all wind speeds are taken at 10 m above sea level) (SWAN default: 1)

cmd()[source]#

Command line string for this component.