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

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

torque converter: compute both delta values on dry-run (full-load & drag load)

parent d7ed1574
No related branches found
No related tags found
No related merge requests found
...@@ -107,25 +107,32 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -107,25 +107,32 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var engineResponse = (ResponseDryRun) var engineResponse = (ResponseDryRun)
NextComponent.Request(absTime, dt, inTorque, operatingPoint.InAngularVelocity, true); NextComponent.Request(absTime, dt, inTorque, operatingPoint.InAngularVelocity, true);
TorqueConverterOperatingPoint dryOperatingPoint; //TorqueConverterOperatingPoint dryOperatingPoint;
//if (false && DataBus.VehicleStopped && DataBus.DriverBehavior == DrivingBehavior.Driving && outTorque.IsGreater(0)) { //if (false && DataBus.VehicleStopped && DataBus.DriverBehavior == DrivingBehavior.Driving && outTorque.IsGreater(0)) {
// dryOperatingPoint = ModelData.FindOperatingPoint(DataBus.EngineIdleSpeed, outAngularVelocity); // dryOperatingPoint = ModelData.FindOperatingPoint(DataBus.EngineIdleSpeed, outAngularVelocity);
//} else { //} else {
dryOperatingPoint = (DataBus.DriverBehavior != DrivingBehavior.Braking && DataBus.BrakePower.IsEqual(0)) || //dryOperatingPoint = (DataBus.DriverBehavior != DrivingBehavior.Braking && DataBus.BrakePower.IsEqual(0)) ||
(outTorque.IsGreater(0) && DataBus.BrakePower.IsEqual(0)) // (outTorque.IsGreater(0) && DataBus.BrakePower.IsEqual(0))
? GetMaxPowerOperatingPoint(dt, outAngularVelocity, engineResponse, // ? GetMaxPowerOperatingPoint(dt, outAngularVelocity, engineResponse,
PreviousState.InTorque * PreviousState.InAngularVelocity) // PreviousState.InTorque * PreviousState.InAngularVelocity)
: GetDragPowerOperatingPoint(dt, outAngularVelocity, engineResponse, // : GetDragPowerOperatingPoint(dt, outAngularVelocity, engineResponse,
PreviousState.InTorque * PreviousState.InAngularVelocity); // PreviousState.InTorque * PreviousState.InAngularVelocity);
//} //}
var avgOutSpeed = (PreviousState.OutAngularVelocity + dryOperatingPoint.OutAngularVelocity) / 2.0; var dryOperatingPointMax = GetMaxPowerOperatingPoint(dt, outAngularVelocity, engineResponse,
var delta = (outTorque - dryOperatingPoint.OutTorque) * avgOutSpeed; PreviousState.InTorque * PreviousState.InAngularVelocity);
var avgOutSpeedMax = (PreviousState.OutAngularVelocity + dryOperatingPointMax.OutAngularVelocity) / 2.0;
var deltaMax = (outTorque - dryOperatingPointMax.OutTorque) * avgOutSpeedMax;
var dryOperatingPointMin = GetDragPowerOperatingPoint(dt, outAngularVelocity, engineResponse,
PreviousState.InTorque * PreviousState.InAngularVelocity);
var avgOutSpeedMin = (PreviousState.OutAngularVelocity + dryOperatingPointMin.OutAngularVelocity) / 2.0;
var deltaMin = (outTorque - dryOperatingPointMin.OutTorque) * avgOutSpeedMin;
return new ResponseDryRun { return new ResponseDryRun {
Source = this, Source = this,
DeltaFullLoad = 2 * delta, DeltaFullLoad = 2 * deltaMax,
DeltaDragLoad = 2 * delta, DeltaDragLoad = 2 * deltaMin,
TorqueConverterOperatingPoint = dryOperatingPoint TorqueConverterOperatingPoint = dryOperatingPointMax
}; };
} }
......
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