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

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

correct serial hybrid strategy parameters: target soc is 1% below inital soc,...

correct serial hybrid strategy parameters: target soc is 1% below inital soc, avoid unit conversion in calculating deltaSoC
parent c0e250b8
No related branches found
No related tags found
No related merge requests found
......@@ -344,7 +344,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.SimulationComponen
result.TargetSoC = reessMaxSoc - 1 * deltaSoc;
result.MinSoC = reessMinSoc + 2 * deltaSoc;
if (reessMinSoc >= result.TargetSoC) {
throw new VectoException("Min SOC higher than Target SOC");
throw new VectoException("Min SOC higher than Target SOC - probably the battery capacity is too small");
}
}
......@@ -355,7 +355,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.SimulationComponen
break;
case VectoRunData.OvcHevMode.ChargeDepleting:
result.InitialSoc = (tmpSystem.MaxSoC + tmpSystem.MinSoC) / 2;
result.TargetSoC = result.InitialSoc - 1;
result.TargetSoC = result.InitialSoc - 0.01; // target SoC is 1% below initial SoC
break;
default:
throw new ArgumentOutOfRangeException(nameof(ovcMode), ovcMode, null);
......@@ -367,8 +367,9 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.SimulationComponen
{
var v_nom = tmpSystem.NominalVoltage;
var c_nom = tmpSystem.Capacity.AsAmpHour;
var result = KineticEnergy(vehicleMass, v).ConvertToWattHour() / v_nom / c_nom;
var c_nom = tmpSystem.Capacity;
//var result = KineticEnergy(vehicleMass, v).ConvertToWattHour() / v_nom / c_nom;
var result = KineticEnergy(vehicleMass, v) / v_nom / c_nom;
return result.Value();
}
......
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