LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-flood.h
1/*
2 * SPDX-FileCopyrightText: Karlsruhe Institute of Technology (KIT)
3 * SPDX-License-Identifier: LicenseRef-Crabmeat
4 * This file is part of Crabmeat. Redistribution or commercial use is
5 * prohibited without express written permission. See LICENCE.
6 */
7
17
18#ifndef LDNDC_INPUT_EVENT_FLOOD_H_
19#define LDNDC_INPUT_EVENT_FLOOD_H_
20
21#include "event/events/eventbase.h"
22
23
24#ifdef __this_event_name
25# undef __this_event_name
26#endif
27#define __this_event_name flood
28
29namespace ldndc{
30namespace event{
31
51struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
52{
53 __event_attrib_class_name(__this_event_name)();
54 ~__event_attrib_class_name(__this_event_name)();
55
57 double watertable;
58
60 double bundheight;
61
63 double percolationrate;
64
66 double irrigationheight;
67
69 double irrigationamount;
70
72 double unlimitedwater;
73
75 double saturationlevel;
76
78 double soildepth;
79
81 double no3;
82
84 double nh4;
85
87 double don;
88
90 double doc;
91};
92
93class CBM_API __event_class_name(__this_event_name) : public Event
94{
95 EVENT_COMMON_DECL(__this_event_name)
96
97 public:
98 double water_table_height() const
99 { return this->attribs_->watertable; }
100 double bund_height() const
101 { return this->attribs_->bundheight; }
102 double percolation_rate() const
103 { return this->attribs_->percolationrate; }
104 double irrigation_height() const
105 { return this->attribs_->irrigationheight; }
106 double irrigation_amount() const
107 { return this->attribs_->irrigationamount; }
108 double unlimited_water() const
109 { return this->attribs_->unlimitedwater; }
110 double saturation_level() const
111 { return this->attribs_->saturationlevel; }
112 double soil_depth() const
113 { return this->attribs_->soildepth; }
114 double no3() const
115 { return this->attribs_->no3; }
116 double nh4() const
117 { return this->attribs_->nh4; }
118 double don() const
119 { return this->attribs_->don; }
120 double doc() const
121 { return this->attribs_->doc; }
122};
123}}
124
125#endif /* !LDNDC_INPUT_EVENT_FLOOD_H_ */
Spatially explicit groundwater model.
Definition airchemistryput.h:21