Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

Merge branch 'feature/add_rated_params_vsum' into 'amdm2/develop'

Add rated speed, power and torque to PHEV and PEV vsum

See merge request vecto/vecto!82
parents c3d10caf aab000ff
No related branches found
No related tags found
No related merge requests found
......@@ -287,6 +287,12 @@ namespace TUGraz.VectoCore.OutputData
public const string E_EM_Mot_LOSS_FORMAT = "E_EM_{0}-em_loss [kWh]";
public const string E_EM_LOSS_FORMAT = "E_EM_{0}_loss [kWh]";
public const string E_EM_OFF_TIME_SHARE = "EM {0} off time share [%]";
public const string EM_RATED_TORQUE_HI = "EM {0} high voltage rated T [Nm]";
public const string EM_RATED_TORQUE_LO = "EM {0} low voltage rated T [Nm]";
public const string EM_RATED_POWER = "EM {0} total rated power [kW]";
public const string EM_RATED_SPEED_HI = "EM {0} high voltage rated speed [rpm]";
public const string EM_RATED_SPEED_LO = "EM {0} low voltage rated speed [rpm]";
public const string EM_MOTOR_NUMBER = "EM number of motors";
public const string REESS_CAPACITY = "REESS Capacity";
public const string REESS_StartSoC = "REESS Start SoC [%]";
......@@ -732,6 +738,12 @@ namespace TUGraz.VectoCore.OutputData
{ E_EM_Mot_LOSS_FORMAT, (r, m, em) => m.ElectricMotorMotLosses(em)?.ConvertToKiloWattHour() },
{ E_EM_LOSS_FORMAT, (r, m, em) => m.ElectricMotorLosses(em)?.ConvertToKiloWattHour() },
{ E_EM_OFF_TIME_SHARE, (r, m, em) => (ConvertedSI)m.ElectricMotorOffTimeShare(em) },
{ EM_RATED_POWER, (r, m, em) => DeclarationData.GetReferencePropulsionPower(r.VehicleData.InputData).ConvertToKiloWatt() },
{ EM_RATED_SPEED_HI, (r, m, em) => r.VehicleData.InputData.Components.ElectricMachines.Entries.First().ElectricMachine.VoltageLevels.MaxBy(v => v.VoltageLevel).ContinuousTorqueSpeed.AsRPM },
{ EM_RATED_SPEED_LO, (r, m, em) => r.VehicleData.InputData.Components.ElectricMachines.Entries.First().ElectricMachine.VoltageLevels.MinBy(v => v.VoltageLevel).ContinuousTorqueSpeed.AsRPM },
{ EM_RATED_TORQUE_LO, (r, m, em) => (ConvertedSI)r.VehicleData.InputData.Components.ElectricMachines.Entries.First().ElectricMachine.VoltageLevels.MaxBy(v => v.VoltageLevel).ContinuousTorque },
{ EM_RATED_TORQUE_HI, (r, m, em) => (ConvertedSI)r.VehicleData.InputData.Components.ElectricMachines.Entries.First().ElectricMachine.VoltageLevels.MinBy(v => v.VoltageLevel).ContinuousTorque },
{ EM_MOTOR_NUMBER, (r, m, em) => r.VehicleData.InputData.Components.ElectricMachines.Entries.First().Count },
};
public static readonly Dictionary<string, WriteEmEntry> IEPCValue = new Dictionary<string, WriteEmEntry>() {
......@@ -746,7 +758,6 @@ namespace TUGraz.VectoCore.OutputData
};
public static readonly WriteAuxEntry AuxDataValue = (r, m, a) => m.AuxiliaryWork(a).ConvertToKiloWattHour();
}
......
......@@ -331,6 +331,12 @@ namespace TUGraz.VectoCore.OutputData
Tuple.Create(SumDataFields.E_EM_Mot_LOSS_FORMAT, typeof(ConvertedSI)),
Tuple.Create(SumDataFields.E_EM_LOSS_FORMAT, typeof(ConvertedSI)),
Tuple.Create(SumDataFields.E_EM_OFF_TIME_SHARE, typeof(ConvertedSI)),
Tuple.Create(SumDataFields.EM_RATED_POWER, typeof(ConvertedSI)),
Tuple.Create(SumDataFields.EM_RATED_SPEED_HI, typeof(int)),
Tuple.Create(SumDataFields.EM_RATED_SPEED_LO, typeof(int)),
Tuple.Create(SumDataFields.EM_RATED_TORQUE_HI, typeof(ConvertedSI)),
Tuple.Create(SumDataFields.EM_RATED_TORQUE_LO, typeof(ConvertedSI)),
Tuple.Create(SumDataFields.EM_MOTOR_NUMBER, typeof(int)),
};
public static readonly Tuple<string, Type>[] IEPCColumns = {
......
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