diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/BatterySystem.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/BatterySystem.cs index 638a043f1ae2cf4dfda8118b28d417ad9abd53bd..556b71c828e5aef112c4aad7c323d2292505f708 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/BatterySystem.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/BatterySystem.cs @@ -78,7 +78,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl public IList<IRESSResponse> Request(Second absTime, Second dt, Watt powerDemand, Second tPulse, bool dryRun) { var current = 0.SI<Ampere>(); - if (!powerDemand.IsEqual(0)) { + if (!powerDemand.IsEqual(0, 1e-3)) { var solutions = VectoMath.QuadraticEquationSolver(InternalResistance(tPulse).Value(), OpenCircuitVoltage.Value(), -powerDemand.Value()); current = SelectSolution(solutions, powerDemand.Value(), dt);