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

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

bugfix targetSoC for SuperCap calculation

parent a43ecde4
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ namespace TUGraz.VectoCore.InputData.Reader.DataObjectAdapter.SimulationComponen
result.MinSoC = superCap.MinVoltage / superCap.MaxVoltage;
result.MaxSoC = 1;// superCap.MaxVoltage / superCap.MaxVoltage;
result.TargetSoC = Math.Sqrt(Math.Pow(superCap.MaxVoltage.Value(), 2) + Math.Pow(superCap.MinVoltage.Value(), 2)) /
result.TargetSoC = Math.Sqrt((Math.Pow(superCap.MaxVoltage.Value(), 2) + Math.Pow(superCap.MinVoltage.Value(), 2)) / 2) /
superCap.MaxVoltage.Value();
result.InitialSoc = superCap.InitialSoC;
}
......
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