modelBattery
Re-chargeable battery with internal resistor
Extends from ElectroMechanicalDrives.BaseClasses.Battery (Partial re-chargeable battery with internal resistor).
Information
This linear battery model is based on a linear capacitor which can be charged and discharged.
The battery cell is parameterized by the upper and lower operationg voltage limit and the total
energy content ECell which is accessible for V0cell ≤ vCell ≤ V1Cell.
By default the battery starts fully charged. The battery internal resistance RCell is considered.
By default an assert is triggered with the battery is overcharged oder undercharged.
These asserts can be avoided by setting the parameters allowOvercharge
and allowUndercharge to true.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | ns (from Battery) | 1 | Number of series cells |
| Integer | np (from Battery) | 1 | Number of parallel cells |
| Modelica.Units.SI.Voltage | V1Cell (from Battery) | 4.2 | Maximum cell voltage > V0Cell |
| Modelica.Units.SI.Voltage | V0Cell (from Battery) | 2.5 | Minimum cell voltage < V1Cell |
| Modelica.Units.SI.Voltage | V1 (from Battery) | V1Cell*ns | Maximum battery voltage > V0 |
| Modelica.Units.SI.Voltage | V0 (from Battery) | V0Cell*ns | Maximum battery voltage < V1 |
| Boolean | allowOvercharge (from Battery) | false | Allows overcharging without error |
| Boolean | allowUndercharge (from Battery) | false | Allows undercharging without error |
| Modelica.Units.SI.Energy | ECell (from Battery) | Total cell energy between V0Cell and V1Cell | |
| Modelica.Units.SI.Capacitance | CCell (from Battery) | 2*ECell/(V1Cell^2 - V0Cell^2) | Total charge of battery |
| Modelica.Units.SI.Resistance | RCell (from Battery) | Cell resistance | |
| Modelica.Units.SI.Voltage | ViniCell (from Battery) | V1Cell | Initial cell voltage |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | pin_p (from Battery) | Positive pin | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | pin_n (from Battery) | Negative pin |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Voltage | v (from Battery) | pin_p.v - pin_n.v | Battery voltage |
| Modelica.Units.SI.Voltage | vCell (from Battery) | v/ns | Cell voltage |
| Modelica.Units.SI.Current | i (from Battery) | capacitor.i | Battery current |
| Modelica.Units.SI.Current | iCell (from Battery) | i/np | Cell current |
| Modelica.Units.SI.Power | power (from Battery) | v*i | Battery power |
| Modelica.Units.SI.Power | powerCell (from Battery) | power/ns/np | Cell power |
| Modelica.Units.SI.Energy | energy (from Battery) | Energy | |
| Modelica.Units.SI.Energy | energyCell (from Battery) | Cell energy | |
| Modelica.Electrical.Analog.Basic.Capacitor | capacitor (from Battery) | ||
| Modelica.Electrical.Analog.Basic.Resistor | resistor (from Battery) |