Package with models for DC electrical storage
This package contains models that represent different energy storages for DC power.
Extends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
Battery | Simple model of a battery |
Examples | Package with example models |
BaseClasses | Base models for battery package |
Simple model of a battery
Simple model of a battery.
This model takes as an input the power that should be stored in the battery (if P > 0) or that should be extracted from the battery. The model uses a fictitious conductance (see Buildings.Electrical.DC.Loads.Conductor) G such that P = u i and i = u G, where u is the voltage difference across the pins and i is the current at the positive pin.
The output connector SOC
is the state of charge of the battery.
This model does not enforce that the state of charge is between zero and one.
However, each time the state of charge crosses zero or one, a warning will
be written to the simulation log file.
The model also does not limit the current through the battery. The user should
provide a control so that only a reasonable amount of power is exchanged,
and that the state of charge remains between zero and one.
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] | |
Voltage | V_nominal | Nominal voltage (V_nominal >= 0) [V] |
Type | Name | Description |
---|---|---|
input RealInput | P | Power stored in battery (if positive), or extracted from battery (if negative) [W] |
output RealOutput | SOC | State of charge [1] |
Terminal_p | terminal | Generalized terminal |