The BioCro C++ Library
rue_leaf_photosynthesis.h
Go to the documentation of this file.
1#ifndef RUE_LEAF_PHOTOSYNTHESIS_H
2#define RUE_LEAF_PHOTOSYNTHESIS_H
3
4#include "../framework/module.h"
5#include "../framework/state_map.h"
6
7namespace standardBML
8{
117class rue_leaf_photosynthesis : public direct_module
118{
119 public:
121 state_map const& input_quantities,
122 state_map* output_quantities)
123 : direct_module{},
124
125 // Get references to input parameters
126 alpha_rue{get_input(input_quantities, "alpha_rue")},
127 incident_ppfd{get_input(input_quantities, "incident_ppfd")},
128
129 // Get pointers to output parameters
130 Assim_op{get_op(output_quantities, "Assim")},
131 GrossAssim_op{get_op(output_quantities, "GrossAssim")},
132 Gs_op{get_op(output_quantities, "Gs")},
133 RL_op{get_op(output_quantities, "RL")},
134 Rp_op{get_op(output_quantities, "Rp")},
135 TransR_op{get_op(output_quantities, "TransR")}
136 {
137 }
138 static string_vector get_inputs();
139 static string_vector get_outputs();
140 static std::string get_name() { return "rue_leaf_photosynthesis"; }
141
142 private:
143 // References to input parameters
144 double const& alpha_rue;
145 double const& incident_ppfd;
146
147 // Pointers to output parameters
148 double* Assim_op;
149 double* GrossAssim_op;
150 double* Gs_op;
151 double* RL_op;
152 double* Rp_op;
153 double* TransR_op;
154
155 // Main operation
156 void do_operation() const;
157};
158
159} // namespace standardBML
160#endif
Calculates leaf photosynthesis parameters using a simple radiation use efficiency (RUE) model where n...
rue_leaf_photosynthesis(state_map const &input_quantities, state_map *output_quantities)
This is the standard BioCro module library; it includes the essential modules used in typical BioCro ...
Definition: aba_decay.h:8