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

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

handle an edge-case when operating EM at maxSpeed still provide efficiency map lookup

parent f10ee183
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
public NewtonMeter EfficiencyMapLookupTorque(Volt voltage, Watt electricPower, PerSecond avgSpeed, NewtonMeter maxEmTorque)
{
if (avgSpeed.IsEqual(0.RPMtoRad()) || avgSpeed.IsGreaterOrEqual(MaxSpeed)) {
if (avgSpeed.IsEqual(0.RPMtoRad()) || avgSpeed.IsGreater(MaxSpeed)) {
return 0.SI<NewtonMeter>();
}
var (a, b) = GetSection(voltage);
......
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