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

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

Merge pull request #388 in VECTO/vecto-sim from...

Merge pull request #388 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:bugfix/VECTO-464-handle-extrapolation-of-full-load to develop

* commit 'da5715dc':
  full load power can't be negative
parents c58659a8 da5715dc
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var fullDragTorque = ModelData.FullLoadCurve.DragLoadStationaryTorque(avgEngineSpeed);
var dynamicFullLoadPower = ComputeFullLoadPower(avgEngineSpeed, dt, dryRun);
if (dynamicFullLoadPower < 0) {
dynamicFullLoadPower = 0.SI<Watt>();
}
var dynamicFullLoadTorque = dynamicFullLoadPower / avgEngineSpeed;
var inertiaTorqueLoss =
Formulas.InertiaPower(angularVelocity, PreviousState.EngineSpeed, ModelData.Inertia, dt) /
......
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