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

cycle gearbox: initialize torque converter in measured speed mode

parent a2a10c75
Branches
Tags
No related merge requests found
......@@ -92,6 +92,16 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
inAngularVelocity;
inTorque += torqueLossInertia;
if (TorqueConverterActive != null && TorqueConverterActive.Value) {
var operatingPoint = FindOperatingPoint(inTorque, inAngularVelocity);
if (inTorque.IsGreater(operatingPoint.OutTorque)) {
//Log.Warn("torque converter operating point does not match!");
throw new VectoException("Failed to initialize: Torque Converter can't provide requested torque.");
}
inTorque = operatingPoint.InTorque;
inAngularVelocity = operatingPoint.InAngularVelocity;
}
} else {
inTorque = 0.SI<NewtonMeter>();
inAngularVelocity = DataBus.EngineIdleSpeed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment