Code development platform for open source projects from the European Union institutions

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

fix: no negative heating demand allowed - that-s cooling...

parent 47b9c527
No related branches found
No related tags found
No related merge requests found
...@@ -768,7 +768,7 @@ namespace TUGraz.VectoCore.Models.BusAuxiliaries.DownstreamModules.Impl.HVAC ...@@ -768,7 +768,7 @@ namespace TUGraz.VectoCore.Models.BusAuxiliaries.DownstreamModules.Impl.HVAC
: run2TotalW //.TechListAmendedFuelHeater(env.Temperature, env.Solar) : run2TotalW //.TechListAmendedFuelHeater(env.Temperature, env.Solar)
) - ssmTOOL.EngineWasteHeat; ) - ssmTOOL.EngineWasteHeat;
} }
return result; return VectoMath.Max(result, 0.SI<Watt>());
} }
} }
......
...@@ -1357,9 +1357,9 @@ public class SSMTestHeatingCooling ...@@ -1357,9 +1357,9 @@ public class SSMTestHeatingCooling
[ [
TestCase(CFG1, 1, 5e3, 8475.49374), TestCase(CFG1, 1, 5e3, 8475.49374),
TestCase(CFG1, 2, 5e3, 2261.98124), TestCase(CFG1, 2, 5e3, 2261.98124),
TestCase(CFG1, 3, 5e3, -604.51875), TestCase(CFG1, 3, 5e3, 0), // no negative heating demand!
TestCase(CFG1, 4, 5e3, -3026.0124), TestCase(CFG1, 4, 5e3, 0), // no negative heating demand!
TestCase(CFG1, 5, 5e3, -3505.3468), TestCase(CFG1, 5, 5e3, 0), // no negative heating demand!
TestCase(CFG1, 6, 5e3, 0), TestCase(CFG1, 6, 5e3, 0),
TestCase(CFG1, 7, 5e3, 0), TestCase(CFG1, 7, 5e3, 0),
TestCase(CFG1, 8, 5e3, 0), TestCase(CFG1, 8, 5e3, 0),
......
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