LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
vocguenther.h
1/*
2 * SPDX-FileCopyrightText: Karlsruhe Institute of Technology (KIT)
3 * SPDX-License-Identifier: LicenseRef-LandscapeDNDC
4 * This file is part of LandscapeDNDC. See LICENSE.
5 */
12
13#ifndef LM_PHYSIOLOGY_VOCGUENTHER_H_
14#define LM_PHYSIOLOGY_VOCGUENTHER_H_
15
16#include "mbe_legacymodel.h"
17#include "state/mbe_state.h"
18
19namespace ldndc {
20
21class LDNDC_API PhysiologyVOCGUENTHER : public MBE_LegacyModel
22{
23 LMOD_EXPORT_MODULE_INFO(PhysiologyVOCGUENTHER,"physiology:vocguenther","Physiology VOCGUENTHER");
24
25 /*** module specific constants ***/
26
28 static double const TREF;
30 static double const TOPT;
32 static double const ALPHA;
34 static double const BETA;
36 static double const CT1;
38 static double const CT2;
40 static double const CL1;
41
42 public:
43 PhysiologyVOCGUENTHER(
44 MoBiLE_State *,
45 cbm::io_kcomm_t *,
46 timemode_e);
47
48 ~PhysiologyVOCGUENTHER();
49
50 lerr_t configure(
51 ldndc::config_file_t const *);
52
53 lerr_t initialize();
54
55 lerr_t solve();
56
57 lerr_t finalize() { return LDNDC_ERR_OK; }
58
59 lerr_t sleep() { return LDNDC_ERR_OK; }
60 lerr_t wake() { return LDNDC_ERR_OK; }
61
62 private:
63 /* required state components */
64 substate_microclimate_t * mc;
65 substate_physiology_t * phys;
66 MoBiLE_PlantVegetation * m_veg;
67 input_class_setup_t const * m_setup;
68
69 struct photosynth_t
70 {
71 /* aggregated photosynthetic active radiation (umol m-2 s-1) */
72 double par240;
73 /* aggregated photosynthetic active radiation (umol m-2 s-1) */
74 double par24;
75 /* photosynthetic active radiation (umol m-2 s-1) */
76 double par;
77
78 photosynth_t();
79 };
80 struct foliage_t
81 {
82 /* aggregated foliage temperature within a canopy layer (K) */
83 double tempK240;
84 /* aggregated foliage temperature within a canopy layer (K) */
85 double tempK24;
86 /* foliage temperature within a canopy layer (K) */
87 double tempK;
88// double ef_isoAct; // emission factor of isoprene(ug gDW-1 h-1)
89// double ef_monoAct; // emission factor of monoterpenes (ug gDW-1 h-1)
90// double isoprene; // isoprene emission (ug m-2ground h-1)
91// double monoterp; // monoterpene emission (ug m-2ground h-1)
92
93 foliage_t();
94 };
95 struct enzyme_activity_t
96 {
97 /* emission factor of isoprene(ug gDW-1 h-1) */
98 double iso;
99 /* isoprene emission (ug m-2ground h-1) */
100 double isoprene;
101 /* emission factor of monoterpenes (ug gDW-1 h-1) */
102 double mono;
103 /* monoterpene emission (ug m-2ground h-1) */
104 double monoterp;
105
106 enzyme_activity_t();
107 };
108 struct leaf_emission_t
109 {
110 size_t foliage_layer;
111
112 photosynth_t pho;
113 foliage_t fol;
114 enzyme_activity_t ef_act;
115 };
116
117 void CalcLeafEmission(
118 leaf_emission_t *,
119 MoBiLE_Plant const &) const;
120
121 void step_init();
122};
123} /*namespace ldndc*/
124
125#endif /* !LM_PHYSIOLOGY_VOCGUENTHER_H_ */
126
Spatially explicit groundwater model.
Definition airchemistryput.h:21