diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Data/ElectricComponents/ElectricMotor/EfficiencyMap.cs b/VectoCore/VectoCore/Models/SimulationComponent/Data/ElectricComponents/ElectricMotor/EfficiencyMap.cs index 54baf78c9eaed6b54f2872f7c35f5d96fdf334f7..275457bd8f5cfd4d13f7dc4d4cd93597f1dc939d 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Data/ElectricComponents/ElectricMotor/EfficiencyMap.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Data/ElectricComponents/ElectricMotor/EfficiencyMap.cs @@ -42,7 +42,15 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.ElectricMotor return - ((entry.PowerElectrical - entry.MotorSpeed * entry.Torque) / (entry.MotorSpeed)).Value(); } - } + + public override string[] SerializedEntries { + get { + return _efficiencyMapMech2El.Entries.Select( + entry => $"{entry.Y.SI<PerSecond>().AsRPM} [rpm], {entry.X.SI<NewtonMeter>()}, {(entry.Z * entry.Y + entry.Y * entry.X).SI<Watt>()}") + .ToArray(); + } + } + } public class EfficiencyMap : LoggingObject { @@ -75,7 +83,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.ElectricMotor return result; } - public string[] SerializedEntries + public virtual string[] SerializedEntries { get { return _efficiencyMapMech2El.Entries.Select( entry => $"{entry.Y.SI<PerSecond>().AsRPM} [rpm], {entry.X.SI<NewtonMeter>()}, {entry.Z.SI<Watt>()}")