Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 0a00eb9b authored by Harald Martini's avatar Harald Martini
Browse files

read electrical power as watt in ElectricMotorMapReader

parent e80432bc
No related branches found
No related tags found
No related merge requests found
......@@ -793,7 +793,9 @@ namespace TUGraz.VectoCommon.InputData
public interface IElectricMotorPowerMap
{
int Gear { get; }
/// <summary>
/// P_el must be in W!
/// </summary>
TableData PowerMap { get; }
}
......
......@@ -4,15 +4,13 @@ using System.Data;
using System.IO;
using System.Linq;
using TUGraz.VectoCommon.Exceptions;
using TUGraz.VectoCommon.InputData;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Models.SimulationComponent.Data;
using TUGraz.VectoCore.Models.SimulationComponent.Data.ElectricMotor;
using TUGraz.VectoCore.Models.SimulationComponent.Data.Engine;
using TUGraz.VectoCore.Utils;
namespace TUGraz.VectoCore.InputData.Reader.ComponentData {
namespace TUGraz.VectoCore.InputData.Reader.ComponentData
{
public class ElectricMotorMapReader
{
......@@ -67,6 +65,8 @@ namespace TUGraz.VectoCore.InputData.Reader.ComponentData {
return retVal;
}
private static List<EfficiencyMap.Entry> GetEntriesAtZeroRpm(List<EfficiencyMap.Entry> entries)
{
// find entries at first grid point above 0. em-speed might vary slightly,
......@@ -138,7 +138,8 @@ namespace TUGraz.VectoCore.InputData.Reader.ComponentData {
return new EfficiencyMap.Entry(
speed: row.ParseDouble(Fields.MotorSpeed).RPMtoRad(),
torque: row.ParseDouble(Fields.Torque).SI<NewtonMeter>(),
powerElectrical: row.ParseDouble(Fields.PowerElectrical).SI(Unit.SI.Kilo.Watt).Cast<Watt>());
//powerElectrical: row.ParseDouble(Fields.PowerElectrical).SI(Unit.SI.Kilo.Watt).Cast<Watt>());
powerElectrical: row.ParseDouble(Fields.PowerElectrical).SI<Watt>());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment