LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
vocmartin.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_VOCMARTIN_H_
14#define LM_PHYSIOLOGY_VOCMARTIN_H_
15
16#include "mbe_legacymodel.h"
17#include "state/mbe_state.h"
18
19namespace ldndc {
20
21class LDNDC_API PhysiologyVOCMARTIN : public MBE_LegacyModel
22{
23 LMOD_EXPORT_MODULE_INFO(PhysiologyVOCMARTIN,"physiology:vocmartin","Physiology VOCMARTIN");
24
25 /*** module specific constants ***/
26
28 static double const NISO;
30 static double const EISO;
32 static double const DELTAS;
34 static double const DELTAH;
36 static double const TPU;
37
39 static double const PPFD0;
41 static double const TEMP0;
43 static double const OI25;
44
45 public:
46 PhysiologyVOCMARTIN(
47 MoBiLE_State *,
48 cbm::io_kcomm_t *,
49 timemode_e);
50
51 ~PhysiologyVOCMARTIN();
52
53 lerr_t configure(
54 ldndc::config_file_t const *);
55
56 lerr_t initialize();
57
58 lerr_t solve();
59
60 lerr_t finalize() { return LDNDC_ERR_OK; }
61
62 lerr_t sleep() { return LDNDC_ERR_OK; }
63 lerr_t wake() { return LDNDC_ERR_OK; }
64
65 private:
66
67 input_class_setup_t const & m_setup;
68 /* required state components */
69 substate_microclimate_t * mc;
70 substate_physiology_t * phys;
71 substate_watercycle_t * wc;
72
73 MoBiLE_PlantVegetation * m_veg;
74
75 struct isoprene_emission_t
76 {
77 size_t foliage_layer;
78
79 double isoEph;
80 double isoAct;
81
82 double qefirad;
83
84 isoprene_emission_t();
85 };
86
87 void IsopreneEmission(
88 isoprene_emission_t *,
89 MoBiLE_Plant const &) const;
90 double getMartinScalingCoefficient(
91 isoprene_emission_t const *,
92 MoBiLE_Plant const &) const;
93
94
95
96 void step_init();
97};
98} /*namespace ldndc*/
99
100#endif /* !LM_PHYSIOLOGY_VOCMARTIN_H_ */
101
Spatially explicit groundwater model.
Definition airchemistryput.h:21