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 3b08b19e authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

hotfix: account for gearbox inertia in dry-run

parent b48f882d
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Log.Debug("EngineSpeed is below IdleSpeed, Gearbox disengage!");
return new ResponseEngineSpeedTooLow { Source = this, GearboxPowerRequest = outTorque * outAngularVelocity };
}
var dryRunResponse = NextComponent.Request(absTime, dt, inTorque, inAngularVelocity, true);
var inertiaTorqueLossIn =
Formulas.InertiaPower(outAngularVelocity, PreviousState.OutAngularVelocity, ModelData.Inertia, dt) /
avgOutAngularVelocity / ModelData.Gears[Gear].Ratio;
var dryRunResponse = NextComponent.Request(absTime, dt, inTorque + inertiaTorqueLossIn, inAngularVelocity, true);
dryRunResponse.GearboxPowerRequest = outTorque * (PreviousState.OutAngularVelocity + outAngularVelocity) / 2.0;
return dryRunResponse;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment