LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
vocmegan.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_VOCMEGAN_H_
14#define LM_PHYSIOLOGY_VOCMEGAN_H_
15
16#include "mbe_legacymodel.h"
17#include "state/mbe_state.h"
18
19namespace ldndc {
20
21class LDNDC_API PhysiologyVOCMEGAN : public MBE_LegacyModel
22{
23 LMOD_EXPORT_MODULE_INFO(PhysiologyVOCMEGAN,"physiology:vocmegan","Physiology VOCMEGAN");
24
25 /*** module specific constants ***/
26
28 static double const TREF;
30 static double const BETA;
32 static double const TOPT;
34 static double const CT1;
36 static double const CT2;
37
38 public:
39 PhysiologyVOCMEGAN(
40 MoBiLE_State *,
41 cbm::io_kcomm_t *,
42 timemode_e);
43
44 ~PhysiologyVOCMEGAN();
45
46 lerr_t configure(
47 ldndc::config_file_t const *);
48
49 lerr_t initialize();
50
51 lerr_t solve();
52
53 lerr_t finalize() { return LDNDC_ERR_OK; }
54
55 lerr_t sleep() { return LDNDC_ERR_OK; }
56 lerr_t wake() { return LDNDC_ERR_OK; }
57
58 private:
59 /* required state components */
60 substate_airchemistry_t * ac;
61 substate_microclimate_t * mc;
62 substate_physiology_t * phys;
63 substate_watercycle_t * wc;
64
65 input_class_setup_t const * m_setup;
66 MoBiLE_PlantVegetation * m_veg;
67
68 struct photosynth_t
69 {
70 /* aggregated photosynthetic active radiation (umol m-2 s-1) */
71 double par240;
72 /* aggregated photosynthetic active radiation (umol m-2 s-1) */
73 double par24;
74 /* photosynthetic active radiation (umol m-2 s-1) */
75 double par;
76
77 photosynth_t();
78 };
79 struct foliage_t
80 {
81 /* aggregated foliage temperature within a canopy layer (K) */
82 double tempK240;
83 /* aggregated foliage temperature within a canopy layer (K) */
84 double tempK24;
85 /* foliage temperature within a canopy layer (K) */
86 double tempK;
87
88 foliage_t();
89 };
90
91 struct leaf_emission_t
92 {
93 size_t foliage_layer;
94
95 double isoprene; // leaf level isoprene emission (ug gDW-1 h-1)
96 double monoterpene; // leaf level monoterpene emission (ug gDW-1 h-1) */
97 double monoterpene_s; // leaf level monoterpene emission from storages (ug gDW-1 h-1) */
98 double ovoc; // leaf level ovoc emission (only from storages) (ug gDW-1 h-1) */
99
100 photosynth_t pho;
101 foliage_t fol;
102 };
103
104 lerr_t CalcLeafEmission(
105 leaf_emission_t *,
106 MoBiLE_Plant const & /*species*/);
107
108 void step_init();
109};
110} /*namespace ldndc*/
111
112#endif /* !LM_PHYSIOLOGY_VOCMEGAN_H_ */
113
Spatially explicit groundwater model.
Definition airchemistryput.h:21