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
Verified Commit 369535a8 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

extend battery model data to include resistance of jucntion box and cables

parent 8c8c21dc
Branches
Tags
No related merge requests found
......@@ -25,7 +25,8 @@ namespace TUGraz.VectoCore.Models.GenericModelData
return null;
var retVal = new BatterySystemData {
Batteries = GetBatteries(currentBatteryData, jobType, ovc)
Batteries = GetBatteries(currentBatteryData, jobType, ovc),
ConnectionSystemResistance = 0.SI<Ohm>()
};
var limits = retVal.GetSocLimits();
retVal.InitialSoC = (limits.MaxSoc + limits.MinSoc) / 2;
......
......@@ -2213,7 +2213,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
throw new VectoException("Powertrain requires either Battery OR SuperCapacitor, but none are defined.");
}
var es = new ElectricSystem(container);
var es = new ElectricSystem(container, data.BatteryData);
if (data.BatteryData != null) {
if (data.BatteryData.InitialSoC < data.BatteryData.Batteries.Min(x => x.Item2.MinSOC)) {
throw new VectoException("Battery: Initial SoC has to be higher than min SoC");
......
......@@ -19,6 +19,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.ElectricComponents.Ba
public List<Tuple<int, BatteryData>> Batteries { get; internal set; }
public double InitialSoC { get; internal set; }
public Ohm ConnectionSystemResistance { get; internal set; } = 0.SI<Ohm>();
public AmpereSecond Capacity
{
get
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment