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

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

set whtc correction factors to 1 by default, override only in declaration mode

parent d03d632c
No related branches found
No related tags found
No related merge requests found
......@@ -116,9 +116,6 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdaper
Displacement = data.Displacement,
IdleSpeed = data.IdleSpeed,
ConsumptionMap = FuelConsumptionMap.Create(data.FuelConsumptionMap),
WHTCUrban = data.WHTCUrban,
WHTCMotorway = data.WHTCMotorway,
WHTCRural = data.WHTCRural,
};
return retVal;
}
......
......@@ -142,6 +142,9 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdaper
}
var retVal = SetCommonCombustionEngineData(engine);
retVal.WHTCUrban = engine.WHTCUrban;
retVal.WHTCMotorway = engine.WHTCMotorway;
retVal.WHTCRural = engine.WHTCRural;
retVal.Inertia = DeclarationData.Engine.EngineInertia(retVal.Displacement);
retVal.FullLoadCurve = EngineFullLoadCurve.Create(engine.FullLoadCurve, true);
retVal.FullLoadCurve.EngineData = retVal;
......
......@@ -64,6 +64,13 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data
internal double WHTCCorrectionFactor = 1;
public CombustionEngineData()
{
WHTCUrban = 1;
WHTCMotorway = 1;
WHTCRural = 1;
}
#region Equality Member
protected bool Equals(CombustionEngineData other)
......
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