#include <SenescenceMort.h>
Public Member Functions | |
clSenescenceMort (clSimManager *p_oSimManager) | |
Constructor. | |
~clSenescenceMort () | |
Destructor. | |
void | DoShellSetup (xercesc::DOMDocument *p_oDoc) |
Reads in values from the parameter file. | |
deadCode | DoMort (clTree *p_oTree, const float &fDiam, const short int &iSpecies) |
Calculates mortality according to senescence. | |
Protected Member Functions | |
void | CalculateMortalityProbability () |
Calculates mortality probability for a given dbh out to the maximum. | |
Protected Attributes | |
floatVal * | mp_fRandomAlpha |
Random mortality alpha, for calculating annual probability of death. | |
floatVal * | mp_fRandomBeta |
Random mortality beta, for calculating annual probability of death. | |
floatVal * | mp_fDbhAtOnset |
DBH at onset of senescence. | |
float ** | mp_fMortProb |
Probability of death per timestep for each DBH value out to the maximum. | |
int | m_iMaxDbh |
DBH of asymptotic maximum mortality. | |
short int | m_iNumTotalSpecies |
Keep our own copy for the destructor. |
This evaluates mortality due to senescence. The senescence equation is evaluated to determine the probability of death. The probability is applied to all trees to which senescence is assigned, but in practice death rate increases due to senescence don't kick in until the DBH at onset parameter is reached. Death rates rise until the asymptotic max DBH value is reached, after which they level off and don't rise further.
This cannot be assigned to seedlings.
This class's namestring is "senescencemortshell". The parameter file name string is "senescence".
Copyright 2003 Charles D. Canham.
clSenescenceMort::clSenescenceMort | ( | clSimManager * | p_oSimManager | ) |
Constructor.
p_oSimManager | Sim Manager object. |
clSenescenceMort::~clSenescenceMort | ( | ) |
Destructor.
void clSenescenceMort::DoShellSetup | ( | xercesc::DOMDocument * | p_oDoc | ) | [virtual] |
Reads in values from the parameter file.
p_oDoc | DOM tree of parsed input file. |
Reimplemented from clMortalityBase.
deadCode clSenescenceMort::DoMort | ( | clTree * | p_oTree, | |
const float & | fDiam, | |||
const short int & | iSpecies | |||
) | [virtual] |
Calculates mortality according to senescence.
fDiam | DBH of tree being evaluated - for seedlings will be 0 | |
p_oTree | Tree being evaluated | |
iSpecies | Species of the tree being evaluated |
Implements clMortalityBase.
void clSenescenceMort::CalculateMortalityProbability | ( | ) | [protected] |
Calculates mortality probability for a given dbh out to the maximum.
This probability will have the number of years per timestep already taken into account.
floatVal* clSenescenceMort::mp_fRandomAlpha [protected] |
Random mortality alpha, for calculating annual probability of death.
Array size is number of species to which this behavior applies.
floatVal* clSenescenceMort::mp_fRandomBeta [protected] |
Random mortality beta, for calculating annual probability of death.
Array size is number of species to which this behavior applies.
floatVal* clSenescenceMort::mp_fDbhAtOnset [protected] |
DBH at onset of senescence.
Old parameter elderlyMort. Array size is number of species to which this behavior applies.
float** clSenescenceMort::mp_fMortProb [protected] |
Probability of death per timestep for each DBH value out to the maximum.
Array of total number of species by m_iMaxDbh.
int clSenescenceMort::m_iMaxDbh [protected] |
DBH of asymptotic maximum mortality.
Defaults to 100
short int clSenescenceMort::m_iNumTotalSpecies [protected] |