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

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

allow reduction of traction interruption interval by 10%

parent de5b12d4
No related branches found
No related tags found
No related merge requests found
......@@ -274,6 +274,13 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
};
}
var remainingTime = _engageTime - (absTime + dt);
var withinTractionInterruption = absTime.IsSmaller(_engageTime) && (absTime + dt).IsSmaller(_engageTime);
if (withinTractionInterruption && remainingTime.IsSmaller(Constants.SimulationSettings.LowerBoundTimeInterval) && remainingTime.IsSmaller(ModelData.TractionInterruption * 0.1)) {
// interval has already been prolonged, but has been overruled. if remaining time is less than 10%, reduce traction interruption time
_engageTime = absTime + dt;
}
if ((inTorque * avgInAngularVelocity).IsGreater(0.SI<Watt>(), Constants.SimulationSettings.LineSearchTolerance)) {
return new ResponseOverload {
Source = this,
......
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