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 01f7241a authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

Merge pull request #237 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:develop to develop

* commit '0fdb1f1d':
  read WHTCEngineering correction factor
parents 38b9cf56 0fdb1f1d
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,11 @@ namespace TUGraz.VectoCommon.InputData
/// cf. VECTO Input Parameters.xlsx
/// </summary>
KilogramSquareMeter Inertia { get; }
/// <summary>
/// P170
/// </summary>
double WHTCEngineering { get; }
}
public interface IAuxiliariesEngineeringInputData
......
......@@ -96,6 +96,11 @@ namespace TUGraz.VectoCore.InputData.FileIO.JSON
get { return Body.GetEx<double>(JsonKeys.Engine_Inertia).SI<KilogramSquareMeter>(); }
}
public virtual double WHTCEngineering
{
get { return 1; }
}
public virtual double WHTCMotorway
{
get { return Body.GetEx<double>(JsonKeys.Engine_WHTC_Motorway); }
......
......@@ -113,6 +113,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter
retVal.Inertia = engine.Inertia;
retVal.FullLoadCurve = EngineFullLoadCurve.Create(engine.FullLoadCurve);
retVal.FullLoadCurve.EngineData = retVal;
retVal.WHTCCorrectionFactor = engine.WHTCEngineering;
return retVal;
}
......
......@@ -53,5 +53,6 @@ namespace TUGraz.VectoCore.Tests.Utils
public DataTable FuelConsumptionMap { get; set; }
public DataTable FullLoadCurve { get; set; }
public KilogramSquareMeter Inertia { get; set; }
public double WHTCEngineering { get; set; }
}
}
\ No newline at end of file
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