Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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

bugfix: whr power was always multiplied with the ESS utility factor even when...

bugfix: whr power was always multiplied with the ESS utility factor even when the ICE was on. correction: introduce dedicated method for writing whr entries when ice is off (instead of overriding method from base class)
parent 86d1656e
Branches
Tags
No related merge requests found
......@@ -116,7 +116,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl {
var auxDemand = EngineAux.PowerDemandEngineOn(time, simulationInterval, ModelData.IdleSpeed) / ModelData.IdleSpeed;
WriteWHRPower(container, ModelData.IdleSpeed, auxDemand);
WriteWHRPowerEngineOff(container, ModelData.IdleSpeed, auxDemand);
foreach (var fuel in ModelData.Fuels) {
var fc = 0.SI<KilogramPerSecond>();
......@@ -146,7 +146,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl {
}
}
protected override void WriteWHRPower(IModalDataContainer container, PerSecond engineSpeed, NewtonMeter engineTorque)
protected virtual void WriteWHRPowerEngineOff(IModalDataContainer container, PerSecond engineSpeed, NewtonMeter engineTorque)
{
var pWHRelMap = 0.SI<Watt>();
var pWHRelCorr = 0.SI<Watt>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment