diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Data/ElectricComponents/ElectricMotor/ElectricMotorData.cs b/VectoCore/VectoCore/Models/SimulationComponent/Data/ElectricComponents/ElectricMotor/ElectricMotorData.cs index ef257670d049f1ebf2367db0ada8d398e5e17294..c83694ef722ff63fcbce83f5152231ea64350bf6 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Data/ElectricComponents/ElectricMotor/ElectricMotorData.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Data/ElectricComponents/ElectricMotor/ElectricMotorData.cs @@ -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)