Coverage for C:\src\imod-python\imod\wq\tvc.py: 60%
10 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-08 10:26 +0200
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-08 10:26 +0200
1from imod.wq.pkgbase import BoundaryCondition
4class TimeVaryingConstantConcentration(BoundaryCondition):
5 """
6 Time varying constant concentration package. Has no direct effect on
7 groundwater flow, is only included via MT3DMS source and sinks. (SSM ITYPE
8 -1)
10 Parameters
11 ----------
12 concentration: xr.DataArray of floats
13 """
15 _pkg_id = "tvc"
17 def __init__(self, concentration):
18 super().__init__()
19 self["concentration"] = concentration
21 def repeat_stress(self, concentration, use_cftime=False):
22 self._repeat_stress("concentration", concentration, use_cftime)
24 def _pkgcheck(self, ibound=None):
25 self._check_positive(["concentration"])