rompy.swan.components.physics.GEN2#
- pydantic model rompy.swan.components.physics.GEN2[source]#
Second generation source terms GEN2.
GEN2 [cf10] [cf20] [cf30] [cf40] [cf50] [cf60] [edmlpm] [cdrag] [umin] [cfpm]
With this command the user indicates that SWAN should run in second-generation mode (see Scientific/Technical documentation).
Examples
In [64]: from rompy.swan.components.physics import GEN2 In [65]: gen = GEN2() In [66]: print(gen.render()) GEN2 In [67]: kwargs = dict( ....: cf10=188.0, ....: cf20=0.59, ....: cf30=0.12, ....: cf40=250.0, ....: cf50=0.0023, ....: cf60=-0.223, ....: edmlpm=0.0036, ....: cdrag=0.0012, ....: umin=1.0, ....: cfpm=0.13 ....: ) ....: In [68]: gen = GEN2(**kwargs) In [69]: print(gen.render()) GEN2 cf10=188.0 cf20=0.59 cf30=0.12 cf40=250.0 cf50=0.0023 cf60=-0.223 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 cf50: float | None = None#
Controls the spectral energy scale of the limit spectrum (SWAN default: 0.0023)
- field cf60: float | None = None#
Ccontrols the spectral energy scale of the limit spectrum (SWAN default: -0.223
- 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['gen2', 'GEN2'] = 'gen2'#
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)