iLand
|
CNPool provides (in addition to CNPair) also a weighted parameter value (e.g. More...
#include <snag.h>
Public Member Functions | |
CNPool () | |
CNPool (const double c, const double n, const double param_value) | |
double | parameter () const |
get weighting parameter More... | |
double | parameter (const CNPool &s) const |
'simulate' weighting (get weighted param value of 's' with the current content) More... | |
void | clear () |
void | addBiomass (const double biomass, const double CNratio, const double parameter_value) |
add biomass with a specific 'CNRatio' and 'parameter_value' More... | |
void | add (const CNPair &s, const double parameter_value) |
convenience function More... | |
void | setParameter (const double value) |
void | operator+= (const CNPool &s) |
const CNPool | operator* (const double factor) const |
return the pool multiplied with 'factor' More... | |
![]() | |
CNPair () | |
CNPair (const double c, const double n) | |
bool | isEmpty () const |
returns true if pool is empty More... | |
bool | isValid () const |
return true if pool is valid (content of C or N >=0) More... | |
double | CN () |
current CN ratio More... | |
void | clear () |
double | biomass () const |
retrieve the amount of biomass (kg/ha). Uses the global C-fraciton. Soil pools are in t/ha!!! More... | |
void | addBiomass (const double biomass, const double CNratio) |
add biomass to the pool (kg dry mass/ha); CNratio is used to calculate the N-Content, the global C-Fraction of biomass is used to calculate the amount of carbon of 'biomass'. More... | |
void | operator+= (const CNPair &s) |
add contents of a pool More... | |
void | operator*= (const double factor) |
Multiply pool with 'factor'. More... | |
const CNPair | operator+ (const CNPair &p2) const |
return the sum of two pools More... | |
const CNPair | operator- (const CNPair &p2) const |
return the difference of two pools More... | |
const CNPair | operator* (const double factor) const |
return the pool multiplied with 'factor' More... | |
Additional Inherited Members | |
![]() | |
static void | setCFraction (const double fraction) |
set the global fraction of carbon of biomass More... | |
![]() | |
double | C |
double | N |
![]() | |
static double | biomassCFraction = biomassCFraction |
|
inline |
|
inline |
|
inline |
convenience function
void CNPool::addBiomass | ( | const double | biomass, |
const double | CNratio, | ||
const double | parameter_value | ||
) |
add biomass with a specific 'CNRatio' and 'parameter_value'
add biomass and weigh the parameter_value with the current C-content of the pool
|
inline |
|
inline |
return the pool multiplied with 'factor'
void CNPool::operator+= | ( | const CNPool & | s | ) |
|
inline |
get weighting parameter
double CNPool::parameter | ( | const CNPool & | s | ) | const |
'simulate' weighting (get weighted param value of 's' with the current content)
|
inline |