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

Skip to content
Snippets Groups Projects
Commit 2adcd628 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

TorqueConverter: Added a better Error Message if nu is not sufficient

parent 885f61c6
No related branches found
No related tags found
No related merge requests found
......@@ -146,11 +146,19 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Gearbox
retVal.OutTorque = retVal.InTorque * retVal.TorqueRatio;
return retVal;
}
throw new VectoException(
"No solution for output speed/input speed found! n_out: {0}, n_in: {1}, nu: {2}, nu_max: {3}", outAngularVelocity,
inAngularVelocity, outAngularVelocity / inAngularVelocity, TorqueConverterEntries.Last().SpeedRatio);
}
var nu = outAngularVelocity / inAngularVelocity;
var nuMax = TorqueConverterEntries.Last().SpeedRatio;
if (nu.IsGreater(nuMax)) {
throw new VectoException(
"Torque Converter: Range of torque converter data is not sufficient. Needed nu: {0}, Got nu_max: {1}", nu,
nuMax);
} else {
throw new VectoException(
"Torque Converter: No solution for output speed/input speed found! n_out: {0}, n_in: {1}, nu: {2}, nu_max: {3}",
outAngularVelocity, inAngularVelocity, nu, nuMax);
}
}
/// <summary>
/// find an operating point for the torque converter
......
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