modelBaseStackWithSensors
Partial stack with sensors
Extends from Modelica.Electrical.Batteries.Icons.BatteryIcon (Icon for cells and stacks), Modelica.Electrical.Analog.Interfaces.TwoPin (Component with two electrical pins).
Information
This is a stack of Ns x Np cell[Np=1, Ns=1] with measurement, arranged in a matrix.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| BaseStackData | stackData | ||
| Boolean | useAllParallelConnections | true | = true, if all parallel connections are used |
| Real[stackData.Ns,stackData.Np] | SOC0 | fill(0.1, stackData.Ns, stackData.Np) | Initial SOC |
| Boolean | useHeatPort | false | =true, if HeatPort is enabled |
| SI.Temperature | T | 293.15 | Fixed device temperature if useHeatPort = false |
| Advanced | |||
| Real | SOCtolerance | 1e-9 | SOC tolerance for detection of depleted or overcharged cell |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p (from TwoPin) | Positive electrical pin | |
| NegativePin | n (from TwoPin) | Negative electrical pin | |
| Modelica.Electrical.Batteries.Interfaces.StackBus | stackBus | Stack bus | |
| Modelica.Electrical.Batteries.Interfaces.CellBus | batteryBus | Battery bus (average / sum over all cells) | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[stackData.Ns,stackData.Np] | heatPort | 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 | p.i | Current into the stack |
| SI.Power | power | v*i | Power to the stack |
| Real | SOC | socTotal.y | Overall State of charge |
| Modelica.Electrical.Batteries.BaseClasses.BaseCellWithSensors[stackData.Ns,stackData.Np] | cell | Matrix of cells | |
| Modelica.Electrical.Analog.Sensors.MultiSensor | multiSensor | ||
| Modelica.Blocks.Sources.RealExpression | socTotal | ||
| Modelica.Blocks.Sources.RealExpression | lossesTotal | ||
| Modelica.Blocks.Sources.RealExpression | temperatureTotal |