modelCellStack
Battery with open-circuit voltage dependent on state of charge, self-discharge and inner resistance
Extends from Modelica.Electrical.Batteries.BaseClasses.BaseCellStack (Battery with open-circuit voltage dependent on state of charge, self-discharge and inner resistance).
Information
The battery is modeled by open-circuit voltage (OCV) dependent on state of charge (SOC), self-discharge and inner resistance, as implemented in partial BaseCellStack.
This model can be used for a single cell Ns = Np = 1 as well as a stack built from identical cells.
For details, see concept and parameterization.
Note
Parameter record array rcData contained in parameter record cellData is neglected.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Ns (from BaseCellStack) | 1 | Number of serial connected cells |
| Integer | Np (from BaseCellStack) | 1 | Number of parallel connected cells |
| ParameterRecords.CellData | cellData (from BaseCellStack) | Cell parameters | |
| Boolean | useHeatPort (from PartialConditionalHeatPort) | false | =true, if HeatPort is enabled |
| SI.Temperature | T (from PartialConditionalHeatPort) | 293.15 | Fixed device temperature if useHeatPort = false |
| Advanced | |||
| Real | SOCtolerance (from BaseCellStack) | 1e-9 | Tolerance to detect depleted of overcharged battery |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p (from TwoPin) | Positive electrical pin | |
| NegativePin | n (from TwoPin) | Negative electrical pin | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from PartialConditionalHeatPort) | Optional port to which dissipated losses are transported in form of heat |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | displaySOC (from BatteryIcon) | SOC for display | |
| SI.Voltage | v (from TwoPin) | Voltage drop of the two pins (= p.v - n.v) | |
| SI.Current | i (from BaseCellStack) | p.i | Current into the battery |
| SI.Power | power (from BaseCellStack) | v*i | Power to the battery |
| Real | SOC (from BaseCellStack) | limIntegrator.y | State of charge |
| Modelica.Electrical.Analog.Sensors.CurrentSensor | currentSensor (from BaseCellStack) | ||
| Blocks.Continuous.LimIntegrator | limIntegrator (from BaseCellStack) | ||
| Modelica.Blocks.Tables.CombiTable1Ds | ocv_soc (from BaseCellStack) | ||
| Modelica.Blocks.Math.Gain | gainV (from BaseCellStack) | ||
| Modelica.Electrical.Analog.Sources.SignalVoltage | ocv (from BaseCellStack) | ||
| Modelica.Electrical.Analog.Basic.Conductor | selfDischarge (from BaseCellStack) | ||
| Modelica.Electrical.Analog.Basic.Resistor | r0 (from BaseCellStack) | ||
| Modelica.Thermal.HeatTransfer.Sources.FixedTemperature | fixedTemperature (from PartialConditionalHeatPort) |