#include <DoubleMMRelGrowth.h>
Inheritance diagram for clDoubleMMRelGrowth:
Public Member Functions | |
clDoubleMMRelGrowth (clSimManager *p_oSimManager) | |
Constructor. | |
~clDoubleMMRelGrowth () | |
Destructor. | |
float | CalcDiameterGrowthValue (clTree *p_oTree, clTreePopulation *p_oPop, float fHeightGrowth) |
Applies growth as described in the equation above. | |
void | SetNameData (char *cNameString) |
Captures the behavior name passed from the parameter file. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Does setup. | |
Protected Attributes | |
clGridBase * | mp_oResourceGrid |
Grid containing the levels of the second resource. | |
float * | mp_fResourceInfluence |
Parameter governing the influence of the second resource (C in equation above). | |
float | m_fNumberYearsPerTimestep |
Number of years per timestep - from sim manager. | |
short int | m_iResourceCode |
The float data member code for the resource grid. |
This is a growth shell object which applies a double Michaelis-Menton function to find relative growth as a function of light and some other resource.
The growth equation is:
To compound the growth over the number of years per timestep, the following equation is used:
The identity of the second resource (R) in the Michaelis-Menton function is unimportant. It is assumed that the parameters will be scaled appropriately for the data range for whatever resource it is. The resource levels are obtained from a grid object called "Resource", with a single float data member called "Resource" which contains the level of the resource in question. If the grid is not present, this is considered a fatal error by this behavior.
To call this from the parameter file, use either "Double resource relative diam with auto height" (for diam with auto height growth) or "Double resource relative diam only" (for diam only growth).
The namestring for this class is "doublemmrelgrowthshell".
Copyright 2003 Charles D. Canham.
|
Constructor. Sets the namestring.
|
|
Destructor. Frees memory. |
|
Applies growth as described in the equation above.
Reimplemented from clGrowthBase. |
|
Does setup. Reads in values from the parameter file, and validates that all species/type combos use light (each must have "lgm" registered).
Reimplemented from clGrowthBase. |
|
Captures the behavior name passed from the parameter file. This is useful since this class can produce a few different kinds of behaviors.
Reimplemented from clBehaviorBase. |
|
Parameter governing the influence of the second resource (C in equation above). Array size is number of behavior species. |
|
Grid containing the levels of the second resource. This is not created by this behavior; it is expected to already be available. It should be named "Resource" and have one float data member called "Resource". |