Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 18313f15 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix: consider venitlation power even no heating is necessary or possible...

bugfix: consider venitlation power even no heating is necessary or possible (introduced when refactoring the CoP per environment)
parent 2450c63a
No related branches found
No related tags found
No related merge requests found
......@@ -673,9 +673,6 @@ namespace TUGraz.VectoCore.Models.BusAuxiliaries.DownstreamModules.Impl.HVAC
var H100 = TechListAdjustedCoolingW_ElectricalCoolingHeating;
var C54 = genInputs.ACSystem.HVACMaxCoolingPower;
var C59 = GetCoPCooling(genInputs, env);
if (double.IsNaN(C59) && H94.IsEqual(0)) {
return 0.SI<Watt>();
}
var I93 = BaseHeatingW_ElectricalVentilation(env.Temperature, env.Solar);
var I94 = BaseCoolingW_ElectricalVentilation(env.Temperature, env.Solar);
......@@ -684,7 +681,9 @@ namespace TUGraz.VectoCore.Models.BusAuxiliaries.DownstreamModules.Impl.HVAC
var I100 = TechListAdjustedCoolingW_ElectricalVentilation;
var I101 = TechListAdjustedVentilationW_ElectricalVentilation;
var ElectricalWAdjusted = (VectoMath.Min((H94 * (1 - H100)), C54) / C59) + (I93 * (1 - I99)) + (I94 * (1 - I100)) +
var coolingAdjusted = double.IsNaN(C59) ? 0.SI<Watt>() : (VectoMath.Min((H94 * (1 - H100)), C54) / C59);
var ElectricalWAdjusted = coolingAdjusted + (I93 * (1 - I99)) + (I94 * (1 - I100)) +
(I95 * (1 - I101));
return ElectricalWAdjusted * env.Weighting;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment