APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
132 stars 161 forks source link

Respiration factor could be a function #5523

Open hut104 opened 4 years ago

hut104 commented 4 years ago

The following code occurs in 8 class. It could be converted into a function that is used in all organs.

        // GrowthRespiration with unit CO2 
        // GrowthRespiration is calculated as 
        // Allocated CH2O from photosynthesis "1 / dMCE", converted 
        // into carbon through (12 / 30), then minus the carbon in the biomass, finally converted into 
        // CO2 (44/12).
        double growthRespFactor = ((1.0 / dMCE) * (12.0 / 30.0) - 1.0 * carbonConcentration.Value()) * 44.0 / 12.0;
HamishBrownPFR commented 4 years ago

This would make it more consistent with maintenance respiration which is also in need of some tidying up. #5651