rompy.swan.components.physics.OFFS#

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

Deactivate multiple physics commands.

OFF WINDGROWTH|QUADRUPL|WCAPPING|BREAKING|REFRAC|FSHIFT|BNDCHK
OFF WINDGROWTH|QUADRUPL|WCAPPING|BREAKING|REFRAC|FSHIFT|BNDCHK
.

This group component is a convenience to allow defining and rendering a list of OFF components.

Examples

In [108]: from rompy.swan.components.physics import OFFS

In [109]: off1 = dict(physics="windgrowth")

In [110]: off2 = dict(physics="wcapping")

In [111]: offs = OFFS(offs=[off1, off2])

In [112]: for off in offs.render():
   .....:     print(off)
   .....: 
O
F
F
 
W
I
N
D
G
R
O
W
T
H


O
F
F
 
W
C
A
P
P
I
N
G
Fields:
field model_type: Literal['offs', 'OFFS'] = 'offs'#

Model type discriminator

field offs: list[OFF] [Required]#

Physics commands to deactivate

cmd() list[source]#

Command file strings for this component.