#include <DensitySelfThinning.h>
Inheritance diagram for clDensitySelfThinning:
Public Member Functions | |
clDensitySelfThinning (clSimManager *p_oSimManager) | |
Constructor. | |
~clDensitySelfThinning () | |
Destructor. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Reads in values from the parameter file and makes sure all data needed is collected. | |
void | CalculateNeighborhoodTreeCountAndMeanDiam10 (clTree *p_oTree, float *p_fTreeCount, float *p_fMeanDiam10) |
Calculates the number of neighborhood trees and their mean Diam10. | |
bool | DoMort (clTree *p_oTree, const float &fDbh, const short int &iSpecies) |
Calculates mortality according to the DensitySelfThinning equation. | |
Protected Attributes | |
float | m_fNumberYearsPerTimestep |
Number of years per timestep. | |
float * | mp_fSelfThinRadius |
Radius that defines the neighborhood size (meters). | |
float * | mp_fMinDensityForMort |
Minimum neighborhood density subject to mortality (trees/ha). | |
float * | mp_fSelfThinAsymptote |
Asymptote parameter. | |
float * | mp_fSelfThinDiamEffect |
Diameter effect parameter. | |
float * | mp_fSelfThinDensityEffect |
Density effect parameter. | |
short int * | mp_iIndexes |
Speeds access to the arrays. |
This behavior evaluates seedling and sapling mortality according the density and mean diam10 of a tree's neigbourhood.
This class's namestring is "densityselfthinningmortshell".
This class's parameter file call string is "densityselfthinning".
Note (LEM): this behavior requires a 1-year timestep. There is no programmatic reason for this; this is what Rasmus wanted, as author, because he believes using this behavior with a multi-year timestep is not smart scientifically.
Copyright 2003 Charles D. Canham.
clDensitySelfThinning::clDensitySelfThinning | ( | clSimManager * | p_oSimManager | ) |
Constructor.
Sets the namestring.
void clDensitySelfThinning::CalculateNeighborhoodTreeCountAndMeanDiam10 | ( | clTree * | p_oTree, | |
float * | p_fTreeCount, | |||
float * | p_fMeanDiam10 | |||
) |
Calculates the number of neighborhood trees and their mean Diam10.
p_oTree | Tree being evaluated. | |
p_fTreeCount | Variable into which to place the number of neighborhood trees. | |
p_fMeanDiam10 | Variable into which to place the mean diam10 of the neighborhood trees. |
bool clDensitySelfThinning::DoMort | ( | clTree * | p_oTree, | |
const float & | fDbh, | |||
const short int & | iSpecies | |||
) | [virtual] |
Calculates mortality according to the DensitySelfThinning equation.
p_oTree | Tree being evaluated. | |
fDbh | DBH of tree being evaluated. | |
iSpecies | Species of the tree being evaluated. |
Implements clMortalityBase.
void clDensitySelfThinning::DoShellSetup | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Reads in values from the parameter file and makes sure all data needed is collected.
p_oDoc | Parsed DOM tree of parameter file. |
modelErr | if:
|
Reimplemented from clMortalityBase.