Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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
Branches
Tags
No related merge requests found
...@@ -192,9 +192,13 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data ...@@ -192,9 +192,13 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
[ValidateObject] [ValidateObject]
public ElectricMotorFullLoadCurve FullLoadCurve { get; protected internal set; } public ElectricMotorFullLoadCurve FullLoadCurve { get; protected internal set; }
#if DEBUG
[ValidateObject]
public EfficiencyMap EfficiencyMap { get; set; }
#else
[ValidateObject] [ValidateObject]
protected internal EfficiencyMap EfficiencyMap { protected get; set; } protected internal EfficiencyMap EfficiencyMap { protected get; set; }
#endif
public virtual PerSecond MaxSpeed => _maxSpeed ?? (_maxSpeed = VectoMath.Min(EfficiencyMap.MaxSpeed, FullLoadCurve.MaxSpeed)); 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) 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.
Please register or to comment