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

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

Merge branch 'bugfix/VECTO-813-error-infinity-is-not-allowed-for-si-value'...

Merge branch 'bugfix/VECTO-813-error-infinity-is-not-allowed-for-si-value' into bugfix/VECTO-822-simulation-run-aborted-by-infinity
parents ec471d07 84b165ee
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var halted = DataBus.DrivingAction == DrivingAction.Halt;
var driverDeceleratingNegTorque = DataBus.DriverBehavior == DrivingBehavior.Braking &&
(DataBus.BrakePower.IsGreater(0) || inTorque < 0);
(DataBus.BrakePower.IsGreater(0) || inTorque.IsSmaller(0));
var vehiclespeedBelowThreshold =
DataBus.VehicleSpeed.IsSmaller(Constants.SimulationSettings.ClutchDisengageWhenHaltingSpeed);
if (halted || (driverDeceleratingNegTorque && vehiclespeedBelowThreshold)) {
......
......@@ -102,7 +102,8 @@ namespace TUGraz.VectoCore.Tests.Integration
GearboxData = gearboxData,
EngineData = engineData,
AirdragData = airDragData,
SimulationType = SimulationType.DistanceCycle
SimulationType = SimulationType.DistanceCycle,
Cycle = cycleData
};
container.RunData = runData;
......
......@@ -58,10 +58,10 @@ namespace TUGraz.VectoCore.Tests.Integration.Declaration
Directory.SetCurrentDirectory(TestContext.CurrentContext.TestDirectory);
}
[TestCase(null, 1.0, 45.53793),
TestCase("CFRegPer", 1.2, 45.53793 * 1.2),
TestCase("BFColdHot", 1.2, 45.53793 * 1.2),
TestCase("CFNCV", 1.2, 45.53793) // has no influence - only for documentation purpose
[TestCase(null, 1.0, 45.5309587),
TestCase("CFRegPer", 1.2, 45.5309587 * 1.2),
TestCase("BFColdHot", 1.2, 45.5309587 * 1.2),
TestCase("CFNCV", 1.2, 45.5309587) // has no influence - only for documentation purpose
]
public void TestEngineCorrectionFactors(string correctionFactor, double value, double expectedFc)
{
......
......@@ -34,8 +34,8 @@ namespace TUGraz.VectoCore.Tests.Integration.Declaration
[
TestCase(Class5NG, 2, TankSystem.Liquefied, 253.7, 702.4),
TestCase(Class5NG, 2, TankSystem.Compressed, 259.4, 697.7),
TestCase(Class5NG, 6, TankSystem.Liquefied, 252.7, 700.0),
TestCase(Class5NG, 6, TankSystem.Compressed, 258.5, 695.4),
TestCase(Class5NG, 6, TankSystem.Liquefied, 252.7, 699.8),
TestCase(Class5NG, 6, TankSystem.Compressed, 258.4, 695.4),
]
public void NaturalGasTankSystemTest(string filename, int runIdx, TankSystem tankSystem, double expectedFc, double expectedCo2)
{
......
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