rompy.swan.subcomponents.numerics.DIRIMPL#

pydantic model rompy.swan.subcomponents.numerics.DIRIMPL[source]#

Numerical scheme for refraction.

DIRIMPL [cdd]

Examples

In [294]: from rompy.swan.subcomponents.numerics import DIRIMPL

In [295]: dirimpl = DIRIMPL()

In [296]: print(dirimpl.render())
DIRIMPL

In [297]: dirimpl = DIRIMPL(cdd=0.5)

In [298]: print(dirimpl.render())
DIRIMPL cdd=0.5
Fields:
field cdd: float | None = None#

A value of cdd=0 corresponds to a central scheme and has the largest accuracy (diffusion ≈ 0) but the computation may more easily generatespurious fluctuations. A value of cdd=1 corresponds to a first orderupwind scheme and it is more diffusive and therefore preferable if (strong) gradients in depth or current are present (SWAN default: 0.5)

field model_type: Literal['dirimpl', 'DIRIMPL'] = 'dirimpl'#

Model type discriminator

cmd() str[source]#

Command file string for this component.