Go to the documentation of this file. 1 #ifndef MOJA_MODULES_CBM_SMALLTREEGROWTHCURVE_H_
2 #define MOJA_MODULES_CBM_SMALLTREEGROWTHCURVE_H_
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
5 #include "moja/flint/modulebase.h"
10 #include <unordered_map>
25 std::string getEcoBoundary()
const;
28 void checkUpdateEcoParameters(std::string ecoBoundaryName,
const DynamicObject& data);
30 std::unordered_map<std::string, double> getSmallTreeBiomassCarbonIncrements(
double stem,
double other,
double foliage,
double coarseRoot,
double fineRoot,
int age);
32 double getStemwoodVolumeAtAge(
int age);
34 double getStemwoodBiomass(
double stemwoodVolume);
36 double getBiomassPercentage(
COMPONENT component,
double totalStemVolume);
38 void setRootBiomassEquation();
40 void generateOrUpdateCarbonCurve();
59 double vol_max{ 0.0 };
60 double vol_min{ 0.0 };
61 double p_sw_min{ 0.0 };
62 double p_sw_max{ 0.0 };
63 double p_fl_min{ 0.0 };
64 double p_fl_max{ 0.0 };
65 double p_br_min{ 0.0 };
66 double p_br_max{ 0.0 };
67 double p_sb_min{ 0.0 };
68 double p_sb_max{ 0.0 };
86 void setParametersValue(
const DynamicObject& data);
87 void initilizeVectors();
88 double commonDivider(
double volume);
89 std::unordered_map<std::string, double> getAGIncrements(
double stem,
double other,
double foliage,
int age);
Definition: smalltreegrowthcurve.h:18
SpeciesType typeName
Definition: smalltreegrowthcurve.h:78
Definition: ageclasshelper.cpp:12
COMPONENT
Definition: smalltreegrowthcurve.h:16
std::vector< double > foliageCarbonIncrements
Definition: smalltreegrowthcurve.h:81
SpeciesType
Enumeration of tree species type, softwood or hardwood.
Definition: treespecies.h:14
virtual ~SmallTreeGrowthCurve()
Definition: smalltreegrowthcurve.h:21
std::string ecoBoundaryName
Definition: smalltreegrowthcurve.h:77
std::vector< double > stemCarbonIncrements
Definition: smalltreegrowthcurve.h:80
std::vector< double > otherCarbonIncrements
Definition: smalltreegrowthcurve.h:82
SmallTreeGrowthCurve()
Definition: smalltreegrowthcurve.h:20
Definition: ageclasshelper.cpp:10
std::shared_ptr< cbm::RootBiomassEquation > rootBiomassEquation
Definition: smalltreegrowthcurve.h:84