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

Skip to content
Snippets Groups Projects
Commit 99906e96 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

fix: auxpower engine off already considers stop/start utility factor

parent 7c75230b
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl {
container[ModalResultField.T_ice_drag] = 0.SI<NewtonMeter>();
container[ModalResultField.ICEOn] = CurrentState.IgnitionOn;
container[ModalResultField.P_aux_ice_off] = (CurrentState.AuxPowerEngineOff ?? 0.SI<Watt>()) * EngineStopStartUtilityFactor;
container[ModalResultField.P_aux_ice_off] = (CurrentState.AuxPowerEngineOff ?? 0.SI<Watt>());
var auxDemand = EngineAux.PowerDemandEngineOn(ModelData.IdleSpeed) / ModelData.IdleSpeed;
......@@ -130,9 +130,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl {
}
var result = fuel.ConsumptionMap.GetFuelConsumptionValue(auxDemand, ModelData.IdleSpeed);
var result = fuel.ConsumptionMap.GetFuelConsumption(auxDemand, ModelData.IdleSpeed);
var fcESS = result.Value() * (1 - EngineStopStartUtilityFactor);
var fcESS = result.Value * (1 - EngineStopStartUtilityFactor);
var fcFinal = fcESS;
container[ModalResultField.FCMap, fuel.FuelData] = fc;
......
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