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

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

Pull request #911: in case the ICE was off in the previous simulation step,...

Pull request #911: in case the ICE was off in the previous simulation step, calcuclate the average speed as if the engine was on (no ramp-up is simulated, engine start is considered in postprocessing)

Merge in VECTO/vecto-sim from VECTO/mq_vecto-sim:bugfix/VECTO-1656-simulation-run-aborted to develop

* commit '419e6417':
  in case the ICE was off in the previous simulation step, calcuclate the average speed as if the engine was on (no ramp-up is simulated, engine start is considered in postprocessing)
parents 523e24f2 419e6417
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
private NewtonMeter CalculateAverageInTorque(TorqueConverterOperatingPoint operatingPoint)
{
var avgEngineSpeed = (PreviousState.InAngularVelocity + operatingPoint.InAngularVelocity) / 2;
if (!DataBus.EngineInfo.EngineOn) {
avgEngineSpeed = (DataBus.EngineInfo.EngineSpeed+operatingPoint.InAngularVelocity) / 2;
}
//var prevInSpeed = PreviousState.OperatingPoint?.InAngularVelocity ?? PreviousState.InAngularVelocity;
//var prevInTorque = PreviousState.OperatingPoint?.InTorque ?? PreviousState.InTorque;
......
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