Buildings.Electrical.DC.Storage.BaseClasses
Base models for battery package
Information
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).
Package Content
Name | Description |
---|---|
Charge | Model to compute the battery charge |
Buildings.Electrical.DC.Storage.BaseClasses.Charge
Model to compute the battery 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
Equation | Condition |
---|---|
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.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Efficiency | etaCha | 0.9 | Efficiency during charging [1] |
Efficiency | etaDis | 0.9 | Efficiency during discharging [1] |
Real | SOC_start | 0.1 | Initial state of charge [1] |
Energy | EMax | Maximum available charge [J] |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | P | [W] |
output RealOutput | SOC | State of charge |