Base models for battery package
This package contains base classes that are used to construct the models in Buildings.Electrical.DC.Storage.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Name | Description |
---|---|
Charge | Model to compute the battery charge |
Model to compute the battery charge
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
Equation | Condition |
---|---|
Pactual = P ηCHA | P ≥ 0 |
Pactual = P (2 - η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.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Type | Name | Default | Description |
---|---|---|---|
Real | etaCha | 0.9 | Efficiency during charging [1] |
Real | etaDis | 0.9 | Efficiency during discharging [1] |
Real | SOC_start | 0.1 | Initial state of charge [1] |
Energy | EMax | Maximum available charge [J] |
Type | Name | Description |
---|---|---|
input RealInput | P | [W] |
output RealOutput | SOC | State of charge |