CNPair stores a duple of carbon and nitrogen (kg/ha) use addBiomass(biomass, cnratio) to add biomass; use operators (+, +=, *, *=) for simple operations.
More...
#include <snag.h>
|
static void | setCFraction (const double fraction) |
| set the global fraction of carbon of biomass More...
|
|
CNPair stores a duple of carbon and nitrogen (kg/ha) use addBiomass(biomass, cnratio) to add biomass; use operators (+, +=, *, *=) for simple operations.
◆ CNPair() [1/2]
◆ CNPair() [2/2]
CNPair::CNPair |
( |
const double |
c, |
|
|
const double |
n |
|
) |
| |
|
inline |
◆ addBiomass()
void CNPair::addBiomass |
( |
const double |
biomass, |
|
|
const double |
CNratio |
|
) |
| |
|
inline |
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'.
◆ biomass()
double CNPair::biomass |
( |
| ) |
const |
|
inline |
retrieve the amount of biomass (kg/ha). Uses the global C-fraciton. Soil pools are in t/ha!!!
◆ clear()
◆ CN()
◆ isEmpty()
bool CNPair::isEmpty |
( |
| ) |
const |
|
inline |
returns true if pool is empty
◆ isValid()
bool CNPair::isValid |
( |
| ) |
const |
|
inline |
return true if pool is valid (content of C or N >=0)
◆ operator*()
const CNPair CNPair::operator* |
( |
const double |
factor | ) |
const |
|
inline |
return the pool multiplied with 'factor'
◆ operator*=()
void CNPair::operator*= |
( |
const double |
factor | ) |
|
|
inline |
Multiply pool with 'factor'.
◆ operator+()
return the sum of two pools
◆ operator+=()
void CNPair::operator+= |
( |
const CNPair & |
s | ) |
|
|
inline |
◆ operator-()
return the difference of two pools
◆ setCFraction()
static void CNPair::setCFraction |
( |
const double |
fraction | ) |
|
|
inlinestatic |
set the global fraction of carbon of biomass
◆ biomassCFraction
double CNPair::biomassCFraction = biomassCFraction |
|
staticprotected |
The documentation for this class was generated from the following files: