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

Skip to content
Snippets Groups Projects
Commit 041f76e9 authored by Harald Martini's avatar Harald Martini
Browse files

write efficiency map in to model data if DEBUG is enabled

parent aefb03b0
No related branches found
No related tags found
No related merge requests found
......@@ -192,9 +192,13 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
[ValidateObject]
public ElectricMotorFullLoadCurve FullLoadCurve { get; protected internal set; }
#if DEBUG
[ValidateObject]
public EfficiencyMap EfficiencyMap { get; set; }
#else
[ValidateObject]
protected internal EfficiencyMap EfficiencyMap { protected get; set; }
#endif
public virtual PerSecond MaxSpeed => _maxSpeed ?? (_maxSpeed = VectoMath.Min(EfficiencyMap.MaxSpeed, FullLoadCurve.MaxSpeed));
public virtual EfficiencyMap.EfficiencyResult LookupElectricPower(PerSecond avgSpeed, NewtonMeter torque, uint gear, bool allowExtrapolation)
......
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