#include <PowerHeightGrowth.h>
Public Member Functions | |
clPowerHeightGrowth (clSimManager *p_oSimManager) | |
Constructor. | |
~clPowerHeightGrowth () | |
Destructor. | |
float | CalcHeightGrowthValue (clTree *p_oTree, clTreePopulation *p_oPop, float fDiameterGrowth) |
Calculates the amount of height growth increase for a particular tree using the power growth equation. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Does the setup for this behavior. | |
Protected Attributes | |
float * | mp_fN |
n - sized number of species | |
float * | mp_fB |
b - sized number of species | |
float | m_fNumberYearsPerTimestep |
Number of years per timestep - from sim manager. |
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.
The name string is "powergrowthshell". In the parameter file, call "power growth height only".
Copyright 2009 Charles D. Canham.
clPowerHeightGrowth::clPowerHeightGrowth | ( | clSimManager * | p_oSimManager | ) |
Constructor.
Sets the namestring.
clPowerHeightGrowth::~clPowerHeightGrowth | ( | ) |
Destructor.
Frees memory.
float clPowerHeightGrowth::CalcHeightGrowthValue | ( | clTree * | p_oTree, | |
clTreePopulation * | p_oPop, | |||
float | fDiameterGrowth | |||
) | [virtual] |
Calculates the amount of height growth increase for a particular tree using the power growth equation.
p_oTree | Tree for which to calculate growth. | |
p_oPop | Tree population object, just in case it's needed. | |
fDiameterGrowth | Amount of diameter growth for this tree, in cm. |
Reimplemented from clGrowthBase.
void clPowerHeightGrowth::DoShellSetup | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Does the setup for this behavior.
This reads in the parameters from the parameter file.
p_oDoc | Parsed parameter file. |
Reimplemented from clGrowthBase.
float* clPowerHeightGrowth::mp_fN [protected] |
n - sized number of species
float* clPowerHeightGrowth::mp_fB [protected] |
b - sized number of species
float clPowerHeightGrowth::m_fNumberYearsPerTimestep [protected] |
Number of years per timestep - from sim manager.