LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-manure.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
20
21#ifndef LDNDC_INPUT_EVENT_MANURE_H_
22#define LDNDC_INPUT_EVENT_MANURE_H_
23
24#include "event/events/eventbase.h"
25
26
27#ifdef __this_event_name
28# undef __this_event_name
29#endif
30#define __this_event_name manure
31
32namespace ldndc{
33namespace event{
34
75struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
76{
77 __event_attrib_class_name(__this_event_name)();
78 ~__event_attrib_class_name(__this_event_name)();
79
81 cbm::string_t type;
82
84 double depth;
85
87 double c;
88
90 double cn;
91
93 double avail_c;
94
96 double avail_n;
97
99 double ph;
100
102 double volume;
103
105 double nh4_fraction;
106
108 double no3_fraction;
109
111 double urea_fraction;
112
114 double don_fraction;
115
117 double cellulose_fraction;
118
120 double lignin_fraction;
121
123 double cp;
124
126 double avail_p;
127
129 double ni_amount;
130 double ui_amount;
131 cbm::string_t ni_type;
132 cbm::string_t ui_type;
133
140 event_trigger_t trigger;
141};
142
143class CBM_API __event_class_name(__this_event_name) : public Event
144{
145 EVENT_COMMON_DECL(__this_event_name)
146
147 public:
148 cbm::string_t const & type() const
149 { return this->attribs_->type; }
150
151 double depth() const
152 { return this->attribs_->depth; }
153 double c() const
154 { return this->attribs_->c; }
155 double cn() const
156 { return this->attribs_->cn; }
157 double avail_c() const
158 { return this->attribs_->avail_c; }
159 double avail_n() const
160 { return this->attribs_->avail_n; }
161 double ph() const
162 { return this->attribs_->ph; }
163 double ni_amount() const
164 { return this->attribs_->ni_amount; }
165 double ui_amount() const
166 { return this->attribs_->ui_amount; }
167 cbm::string_t const & ni_type() const
168 { return this->attribs_->ni_type; }
169 cbm::string_t const & ui_type() const
170 { return this->attribs_->ui_type; }
171 double volume() const
172 { return this->attribs_->volume; }
173 double nh4_fraction() const
174 { return this->attribs_->nh4_fraction; }
175 double no3_fraction() const
176 { return this->attribs_->no3_fraction; }
177 double urea_fraction() const
178 { return this->attribs_->urea_fraction; }
179 double don_fraction() const
180 { return this->attribs_->don_fraction; }
181 double cellulose_fraction() const
182 { return this->attribs_->cellulose_fraction; }
183 double lignin_fraction() const
184 { return this->attribs_->lignin_fraction; }
185 double cp() const
186 { return this->attribs_->cp; }
187 double avail_p() const
188 { return this->attribs_->avail_p; }
189
191 event_trigger_t const & trigger() const
192 { return this->attribs_->trigger; }
193};
194}}
195
196#endif /* !LDNDC_INPUT_EVENT_MANURE_H_ */
197
Spatially explicit groundwater model.
Definition airchemistryput.h:21