#include <MichMenPhotoinhibition.h>
Public Member Functions | |
clMichMenPhotoinhibition (clSimManager *p_oSimManager) | |
Constructor. | |
~clMichMenPhotoinhibition () | |
Destructor. | |
float | CalcHeightGrowthValue (clTree *p_oTree, clTreePopulation *p_oPop, float fDiameterGrowth) |
Calculates the amount of height growth increase for a particular tree using the growth equation described ablove. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Does setup. | |
Protected Attributes | |
float * | mp_fAlpha |
alpha - sized number of behavior species | |
float * | mp_fBeta |
beta - sized number of behavior species | |
float * | mp_fPhi |
phi - sized number of behavior species | |
float * | mp_fD |
d - sized number of behavior species | |
int * | mp_iIndexes |
To help access the other arrays. | |
float | m_fYearsPerTimestep |
Conversion factor to translate the results of the function to the appropriate units per timestep. |
This behavior can only be used to create a height growth increment.
The equation used in this behavior is:
This is looped over the number of years per timestep, allowing H to increment at each intermediate year.
All trees must have the "Light" data member registered (i.e. must have a light behavior applied).
The name string is "michmenphotogrowthshell". The parameter file call string is "Michaelis Menten photoinhibition growth height only".
Copyright 2008 Charles D. Canham.
clMichMenPhotoinhibition::clMichMenPhotoinhibition | ( | clSimManager * | p_oSimManager | ) |
Constructor.
Sets the namestring.
clMichMenPhotoinhibition::~clMichMenPhotoinhibition | ( | ) |
Destructor.
Frees memory.
float clMichMenPhotoinhibition::CalcHeightGrowthValue | ( | clTree * | p_oTree, | |
clTreePopulation * | p_oPop, | |||
float | fDiameterGrowth | |||
) | [virtual] |
Calculates the amount of height growth increase for a particular tree using the growth equation described ablove.
p_oTree | Tree for which to calculate growth. | |
p_oPop | Tree population object, just in case it's needed. | |
fDiameterGrowth | Diameter growth, in cm. |
Reimplemented from clGrowthBase.
void clMichMenPhotoinhibition::DoShellSetup | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Does setup.
Reads in values from the parameter file, and validates that all species/type combos use light (each must have "Light" registered).
p_oDoc | DOM tree of parsed input file. |
modelErr | if any species/type combo to which this behavior is applied does not have a light behavior, or if beta = 0. |
Reimplemented from clGrowthBase.
float* clMichMenPhotoinhibition::mp_fAlpha [protected] |
alpha - sized number of behavior species
float* clMichMenPhotoinhibition::mp_fBeta [protected] |
beta - sized number of behavior species
float* clMichMenPhotoinhibition::mp_fPhi [protected] |
phi - sized number of behavior species
float* clMichMenPhotoinhibition::mp_fD [protected] |
d - sized number of behavior species
int* clMichMenPhotoinhibition::mp_iIndexes [protected] |
To help access the other arrays.
float clMichMenPhotoinhibition::m_fYearsPerTimestep [protected] |
Conversion factor to translate the results of the function to the appropriate units per timestep.