private void DoEnergyArbitration(object sender, EventArgs e) { MetVariables(); foreach (MicroClimateZone MCZone in microClimateZones) { MCZone.DoCanopyCompartments(); BalanceCanopyEnergy(MCZone); CalculateGc(MCZone); CalculateGa(MCZone); CalculateInterception(MCZone); CalculatePM(MCZone); CalculateOmega(MCZone); SetCanopyEnergyTerms(MCZone); } }
private void DoEnergyArbitration(object sender, EventArgs e) { dayLengthEvap = MathUtilities.DayLength(Clock.Today.DayOfYear, SunAngleNetPositiveRadiation, weather.Latitude); dayLengthLight = MathUtilities.DayLength(Clock.Today.DayOfYear, SunSetAngle, weather.Latitude); foreach (MicroClimateZone MCZone in microClimateZones) { MCZone.DoCanopyCompartments(); CalculateShortWaveRadiation(MCZone); CalculateEnergyTerms(MCZone); CalculateLongWaveRadiation(MCZone); CalculateSoilHeatRadiation(MCZone); CalculateGc(MCZone); CalculateGa(MCZone); CalculateInterception(MCZone); CalculatePM(MCZone); CalculateOmega(MCZone); SetCanopyEnergyTerms(MCZone); } }