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

Skip to content
Snippets Groups Projects
Commit 1842f011 authored by Stefanos Doumpoulakis's avatar Stefanos Doumpoulakis
Browse files

various fixes

parent 9132b953
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ namespace TUGraz.VectoCore.Configuration
public const string Prefix = "AUX_";
public const string PowerPrefix = "P_";
public const double FanElectricToMechanicalEfficiency = 0.7;
public const double FanElectricToMechanicalEfficiency = 1.05;
public static class IDs
{
......@@ -332,7 +332,7 @@ namespace TUGraz.VectoCore.Configuration
/// When the simulated (in VTP) positive engine work deviates more than this threshold
/// from the measured positive energy of the vdri, a warning is issued.
/// </summary>
public const double VTPEngineWorkDeviationThreshold = 0.01;
public const double VTPEngineWorkDeviationThreshold = 0.1;
}
public static class XML
......
......@@ -940,11 +940,6 @@ namespace TUGraz.VectoCore.InputData.Reader
return CheckColumns(header, allowedCols, requiredCols, throwExceptions, allowAux)
&& CheckComboColumns(header, new[] { Fields.AirSpeedRelativeToVehicle, Fields.WindYawAngle }, throwExceptions)
&& CheckMutuallyExclusiveColumns(header, new[] { Fields.FanSpeed, Fields.FanElectricalPower}, throwExceptions)
&& CheckColumnsPredicatedOnAnother(
header,
new[] { Fields.CH4MassFlow, Fields.NMHCMassFlow },
FuelTypeHelper.GetLabelsForNonGaseous("fc_"),
throwExceptions)
&& CheckColumnsPredicatedOnAnotherMissing(
header,
new[] { Fields.THCMassFlow },
......
......@@ -65,7 +65,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public Watt PowerDemand(Watt fanElectricalPower)
{
return fanElectricalPower / Constants.Auxiliaries.FanElectricToMechanicalEfficiency;
return fanElectricalPower * Constants.Auxiliaries.FanElectricToMechanicalEfficiency;
}
}
......
......@@ -238,10 +238,6 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
CycleType.MeasuredSpeedGear),
TestCase("<t>,<v>,<n_eng>,<n_fan>,<tq_left>,<tq_right>,<n_wh_left>,<n_wh_right>,<fc_DIESEL CI>,<CO>,<NOx>,<THC>,<CO2>,<PN>",
CycleType.VTP),
TestCase("<t>,<v>,<n_eng>,<n_fan>,<tq_left>,<tq_right>,<n_wh_left>,<n_wh_right>,<fc_NG CI>,<tq_eng>,<CH4>,<CO>,<NOx>,<THC>,<CO2>,<PN>",
CycleType.VTP),
TestCase("<t>,<v>,<n_eng>,<n_fan>,<tq_left>,<tq_right>,<n_wh_left>,<n_wh_right>,<fc_NG CI>,<tq_eng>,<NMHC>,<CO>,<NOx>,<THC>,<CO2>,<PN>",
CycleType.VTP),
TestCase("<t>,<v>,<n_eng>,<n_fan>,<tq_left>,<tq_right>,<n_wh_left>,<n_wh_right>,<fc_NG CI>,<tq_eng>,<CH4>,<NMHC>,<CO>,<NOx>,<THC>,<CO2>",
CycleType.VTP),
TestCase("<t>,<v>,<n_eng>,<n_fan>,<tq_left>,<tq_right>,<n_wh_left>,<n_wh_right>,<fc_NG CI>,<tq_eng>,<CO>,<NOx>,<CO2>,<PN>",
......
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