VirtualFCS.Control.ChargeCounter

Determine the state-of-charge of a battery using a charge counting algorithm

Model Description and References

What it does
The ChargeCounter model is designed to calculate the state-of-charge of a battery using a simple charge counting algorithm. 

Description
The ChargeCounter model can be used together with a battery model (e.g. VirtualFCS.Electrochemical.Battery.LiIonBatteryPack_Lumped). It may be implement either on its own or as a component in a larger battery management system (BMS) block (e.g. VirtualFCS.Control.BatteryManagementSystem). ChargeCounter builds on components from the Modelica Standard Library.

Assumptions
The inital version assumes a faradaic efficiency of 100%.

Formula

SOC = SOC_init - int_0^t{i/C dt}

Operation


Governing Equations

The assembly connects add (Modelica.Blocks.Math.Add), integrator (Modelica.Blocks.Continuous.Integrator), division (Modelica.Blocks.Math.Division), limiter (Modelica.Blocks.Nonlinear.Limiter), product1 (Modelica.Blocks.Math.Product), add1 (Modelica.Blocks.Math.Add), integrator1 (Modelica.Blocks.Continuous.Integrator), limiterCC (Modelica.Blocks.Nonlinear.Limiter).

Parameters

NameTypeUnitDefaultDescription
chargeCapacity_CouModelica.Units.NonSI.ElectricCharge_AhAh1Battery Cell Capacity

Interfaces and Connections

NameKindTypeUnitDescription
SOCOutput signalModelica.Blocks.Interfaces.RealOutput-Battery state of charge at the current time step.
ChargeCapacity_currentOutput signalModelica.Blocks.Interfaces.RealOutput-
SOC_initInput signalModelica.Blocks.Interfaces.RealInput-Initial state of charge of the battery.
chargeCapacityInput signalModelica.Blocks.Interfaces.RealInput-Nominal capacity of the battery.
electricCurrentInput signalModelica.Blocks.Interfaces.RealInput-Measured electric current to/from the battery.