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
Verified Commit abc21449 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

ICE: if stationary full load gets negative (extrapolation) return 0W - too...

ICE: if stationary full load gets negative (extrapolation) return 0W - too high engine speed is handled by Hybrid strategy or shift strategy later on
parent d7898a03
No related branches found
No related tags found
No related merge requests found
......@@ -561,7 +561,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var stationaryFullLoadPower = stationaryFullLoadTorque * avgAngularVelocity;
Watt dynFullPowerCalculated;
// disable pt1 behaviour if PT1Disabled is true, or if the previous enginepower is greater than the current stationary fullload power (in this case the pt1 calculation fails)
if (PT1Disabled || PreviousState.EnginePower.IsGreaterOrEqual(stationaryFullLoadPower)) {
dynFullPowerCalculated = stationaryFullLoadPower;
......@@ -592,6 +592,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
if (dryRun) {
dynFullPowerCalculated = stationaryFullLoadPower;
} else {
if (stationaryFullLoadTorque.IsSmaller(0)) {
return 0.SI<Watt>();
}
throw;
}
}
......
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