Esempio n. 1
0
        /// <summary>
        /// Adds some biomass for a species to the coarse roots pools at a site.
        /// </summary>
        public static void AddLiveCoarseRoots(double abovegroundWoodyBiomass,
            //double leafLongevity,
            ISpecies species,
            ActiveSite site,
            Pool coarseRoots)
        {
            double leafLongevity = SpeciesData.LeafLongevity[species];
            double coarseRootBiomass = CalculateCoarseRoot(abovegroundWoodyBiomass, leafLongevity);
            double inputPercentC = SpeciesData.WoodFractionC[species];
            double inputPercentN = SpeciesData.WoodFractionN[species];
            double inputPercentP = SpeciesData.WoodFractionP[species];

            coarseRoots.AddMass(coarseRootBiomass, inputPercentC, inputPercentN, inputPercentP);
        }
Esempio n. 2
0
        //---------------------------------------------------------------------
        /// <summary>
        /// Adds some biomass for a species to the fine roots pools at a site.
        /// </summary>
        public static void AddLiveFineRoots(double abovegroundLeafBiomass,
            //double leafLongevity,
            ISpecies species,
            ActiveSite site,
            Pool fineRoots)
        {
            double leafLongevity = SpeciesData.LeafLongevity[species];
            double fineRootBiomass = CalculateFineRoot(abovegroundLeafBiomass, leafLongevity);
            double inputPercentC = SpeciesData.FRootFractionC[species];
            double inputPercentN = SpeciesData.FRootFractionN[species];
            double inputPercentP = SpeciesData.FRootFractionP[species];

            fineRoots.AddMass(fineRootBiomass, inputPercentC,
                inputPercentN, inputPercentP);
        }