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

update testcase, update comment

parent 9208fb60
Branches
Tags
No related merge requests found
......@@ -213,7 +213,7 @@ namespace TUGraz.VectoCore.Tests.Reports
var pVehInertia = (Watt)row[(int)ModalResultField.P_veh_inertia];
var pTrac = (Watt)row[(int)ModalResultField.P_trac];
// Pe_eng = P_wheel + P_lossgearbox + P_lossaxle + P_lossretarder + P_agbx + Pa_eng + P_aux - P_brake_loss
// P_eng_out = P_wheel + P_lossgearbox + P_lossaxle + P_lossretarder + P_agbx + Pa_eng + P_aux - P_brake_loss
var pEngOut = (Watt)row[(int)ModalResultField.P_eng_out];
var pLossGbx = (Watt)row[(int)ModalResultField.P_gbx_loss];
var pGbxIn = (Watt)row[(int)ModalResultField.P_gbx_in];
......
......@@ -54,7 +54,7 @@ namespace TUGraz.VectoCore.Tests.Reports
modData.AddAuxiliary("FAN");
for (var i = 0; i < 500; i++) {
for (var i = 0; i < 499; i++) {
modData[ModalResultField.simulationInterval] = 1.SI<Second>();
modData[ModalResultField.time] = i.SI<Second>();
modData[ModalResultField.dist] = i.SI<Meter>();
......@@ -91,8 +91,8 @@ namespace TUGraz.VectoCore.Tests.Reports
Assert.AreEqual(500.0 * 3000.0 / 1000 / 3600, sumData.Rows[0].ParseDouble("E_aux_sum [kWh]"), 1e-3);
Assert.AreEqual(500.0 * 3000.0 / 1000 / 3600, sumData.Rows[0].ParseDouble("E_brake [kWh]"), 1e-3);
// 500s * 1e-4 kg/s = 0.05kg => 0.05kg / 499s => to g/h
Assert.AreEqual((500.0 * 1e-4) * 1000 * 3600 / 499.0, sumData.Rows[0].ParseDouble("FC-Map [g/h]"), 1e-3);
// 500s * 1e-4 kg/s = 0.05kg => 0.05kg / 500 => to g/h
Assert.AreEqual((500.0 * 1e-4) * 1000 * 3600 / 500.0, sumData.Rows[0].ParseDouble("FC-Map [g/h]"), 1e-3);
// 500s * 1e-4 kg/s = 0.05kg => 0.05kg / 499m => to g/km
Assert.AreEqual((500.0 * 1e-4) * 1000 * 1000 / 499.0, sumData.Rows[0].ParseDouble("FC-Map [g/km]"), 1e-3);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment