Coverage for C:\src\imod-python\imod\wq\oc.py: 35%
17 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 Package
4class OutputControl(Package):
5 """
6 The Output Control Option is used to specify if head, drawdown, or budget
7 data should be saved and in which format.
9 Parameters
10 ----------
11 save_head_idf: bool, optional
12 Save calculated head values in IDF format.
13 Default value is False.
14 save_concentration_idf: bool, optional
15 Save calculated concentration values in IDF format.
16 Default value is False.
17 save_budget_idf: bool, optional
18 Save calculated budget in IDF format.
19 Default value is False.
20 save_head_tec: bool, optional
21 Save calculated head values in a format compatible with Tecplot.
22 Default value is False.
23 save_concentration_tec: bool, optional
24 Save calculated concentration values in a format compatible with
25 Tecplot.
26 Default value is False.
27 save_budget_tec: bool, optional
28 Save calculated budget in a format compatible with Tecplot.
29 Default value is False.
30 save_head_vtk: bool, optional
31 Save calculated head values in a format compatible with ParaView (VTK).
32 Default value is False.
33 save_concentration_vtk: bool, optional
34 Save calculated concentration values in a format compatible with
35 ParaView (VTK).
36 Default value is False.
37 save_budget_vtk: bool, optional
38 Save calculated budget in a format compatible with ParaView (VTK).
39 Default value is False.
40 """
42 _pkg_id = "oc"
43 _template = (
44 "[oc]\n"
45 " savehead_p?_l? = {save_head_idf}\n"
46 " saveconclayer_p?_l? = {save_concentration_idf}\n"
47 " savebudget_p?_l? = {save_budget_idf}\n"
48 " saveheadtec_p?_l? = {save_head_tec}\n"
49 " saveconctec_p?_l? = {save_concentration_tec}\n"
50 " savevxtec_p?_l? = {save_budget_tec}\n"
51 " savevytec_p?_l? = {save_budget_tec}\n"
52 " savevztec_p?_l? = {save_budget_tec}\n"
53 " saveheadvtk_p?_l? = {save_head_vtk}\n"
54 " saveconcvtk_p?_l? = {save_concentration_vtk}\n"
55 " savevelovtk_p?_l? = {save_budget_vtk}"
56 )
58 def __init__(
59 self,
60 save_head_idf=False,
61 save_concentration_idf=False,
62 save_budget_idf=False,
63 save_head_tec=False,
64 save_concentration_tec=False,
65 save_budget_tec=False,
66 save_head_vtk=False,
67 save_concentration_vtk=False,
68 save_budget_vtk=False,
69 ):
70 super().__init__()
71 self["save_head_idf"] = save_head_idf
72 self["save_concentration_idf"] = save_concentration_idf
73 self["save_budget_idf"] = save_budget_idf
74 self["save_head_tec"] = save_head_tec
75 self["save_concentration_tec"] = save_concentration_tec
76 self["save_budget_tec"] = save_budget_tec
77 self["save_head_vtk"] = save_head_vtk
78 self["save_concentration_vtk"] = save_concentration_vtk
79 self["save_budget_vtk"] = save_budget_vtk
81 def _pkgcheck(self, ibound=None):
82 pass