imod.wq.AdvectionFiniteDifference#

class imod.wq.AdvectionFiniteDifference(courant=0.75, weighting='upstream')[source]#

Solve the advection term using the explicit Finite Difference method (MIXELM = 0) with upstream weighting

courant#

Courant number (PERCEL) is the number of cells (or a fraction of a cell) advection will be allowed in any direction in one transport step. For implicit finite-difference or particle tracking based schemes, there is no limit on PERCEL, but for accuracy reasons, it is generally not set much greater than one. Note, however, that the PERCEL limit is checked over the entire model grid. Thus, even if PERCEL > 1, advection may not be more than one cell’s length at most model locations. For the explicit finite-difference, PERCEL is also a stability constraint, which must not exceed one and will be automatically reset to one if a value greater than one is specified.

Type

float

weighting#

Indication of which weighting scheme should be used, set to default value “upstream” (NADVFD = 0 or 1) Default value: “upstream”

Type

string {“upstream”, “central”}, optional

__init__(courant=0.75, weighting='upstream')[source]#

Methods

__init__([courant, weighting])

from_file(path, **kwargs)

Loads an imod-wq package from a file (currently only netcdf and zarr are supported).

isel()

save(directory)

sel()