Coverage for C:\src\imod-python\imod\flow\drn.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.5.1, created at 2024-05-08 14:15 +0200

1from imod.flow.pkgbase import BoundaryCondition 

2 

3 

4class Drain(BoundaryCondition): 

5 """ 

6 The Drain package is used to simulate head-dependent flux boundaries. In 

7 the Drain package if the head in the cell falls below a certain threshold, 

8 the flux from the drain to the model cell drops to zero. 

9 

10 Parameters 

11 ---------- 

12 elevation: float or xr.DataArray of floats 

13 elevation of the drain, dims ``("layer", "y", "x")``. 

14 conductance: float or xr.DataArray of floats 

15 is the conductance of the drain, dims ``("layer", "y", "x")``. 

16 """ 

17 

18 _pkg_id = "drn" 

19 _variable_order = ["conductance", "elevation"] 

20 

21 def __init__(self, conductance, elevation): 

22 super().__init__() 

23 self.dataset["conductance"] = conductance 

24 self.dataset["elevation"] = elevation