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

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

provide full-load curve for generic iepc data (factor method

parent c892e33f
No related branches found
No related tags found
No related merge requests found
......@@ -84,11 +84,11 @@ namespace TUGraz.VectoCore.Models.GenericModelData
{
var result = new List<ElectricMotorVoltageLevelData>();
foreach (var entry in voltageLevels.OrderBy(x => x.VoltageLevel)) {
var fld = GetElectricMotorFullLoadCurve(entry, count);
var iepcVoltageLevel = new IEPCVoltageLevelData {
EfficiencyMaps = GetEfficiencyMaps(entry, count, electricMachineType),
EfficiencyMaps = GetEfficiencyMaps(entry, count, electricMachineType, fld),
Voltage = entry.VoltageLevel,
FullLoadCurve = GetElectricMotorFullLoadCurve(entry, count)
FullLoadCurve = fld
};
result.Add(iepcVoltageLevel);
}
......@@ -103,7 +103,8 @@ namespace TUGraz.VectoCore.Models.GenericModelData
}
private Dictionary<uint, EfficiencyMap> GetEfficiencyMaps(IElectricMotorVoltageLevel voltageLevel, int count, ElectricMachineType electricMachineType)
private Dictionary<uint, EfficiencyMap> GetEfficiencyMaps(IElectricMotorVoltageLevel voltageLevel, int count,
ElectricMachineType electricMachineType, ElectricMotorFullLoadCurve fullLoadCurve)
{
var result = new Dictionary<uint, EfficiencyMap>();
......@@ -115,7 +116,7 @@ namespace TUGraz.VectoCore.Models.GenericModelData
axleRatio, gearRatioAtMeasurement.Value, GearEfficiency, axleEfficiency);
var deNormalizedMap = DeNormalizeData(GetNormalizedEfficiencyMap(electricMachineType), ratedPoint, gearRatio);
result.Add((uint) gearEntry.Key, IEPCMapReader.Create(deNormalizedMap, count, gearRatio, null));
result.Add((uint) gearEntry.Key, IEPCMapReader.Create(deNormalizedMap, count, gearRatio, fullLoadCurve));
}
return result;
......
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