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

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

Pull request #198: handle an edge-case when operating EM at maxSpeed still...

Pull request #198: handle an edge-case when operating EM at maxSpeed still provide efficiency map lookup

Merge in VECTO/vecto-dev from VECTO/mq_vecto-dev:develop to develop

* commit 'efcf3643':
  handle an edge-case when operating EM at maxSpeed still provide efficiency map lookup
parents d9228acc efcf3643
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