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

Skip to content
Snippets Groups Projects
Commit bb11c3a5 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

override serializedEntries property in em efficiency map to reflect input map

parent 2d3c830d
No related branches found
No related tags found
No related merge requests found
......@@ -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>()}")
......
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