.Buildings.Electrical.DC.Storage.BaseClasses.Charge

Information

This model represents the charge/discharge mechanism of a battery.

This model two parameters ηCHA and ηDIS that represent the efficiency during the charge and discharge of the battery.

The model given the power P that should be provide or taken from the battery and compute the actual power flowing through the battery as

EquationCondition
Pactual = P ηCHA P ≥ 0
Pactual = P / ηDIS P < 0

The actual power is then used to compute the variation of the state of charge SOC. The state of charge is the state variable of this model and is a real value between 0 and 1.

d SOC / dt = Pactual

Note:The input power P has to be controlled in order to avoid the state of charge SOC exceeding the range between 0 and 1.

Revisions


Generated at 2024-05-18T18:16:21Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos