Lemonergy · Studio block
Parallel cell group
Generated series/parallel cell hierarchy with individual SOC, RC and temperature states, KCL current sharing and optional thermal links. Causal pack-current boundary.
- Implementation ID
battery-parallel-group- Reviewed
- 2026-10-27
Behavior
Builds an explicit series/parallel hierarchy with a separate SOC, two RC voltages and temperature for every cell. Subtree voltage/resistance reduction and Kirchhoff current sharing determine each cell current. Optional thermal links exchange equal and opposite heat. Per-cell overrides introduce controlled variation.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
current | input | A | Signed pack current; scalar. |
ambient | input | K | Cell ambient temperatures; 2 channels at the default configuration. |
externalHeat | input | W | External cell heat inputs; 2 channels at the default configuration. |
voltage | output | V | Pack terminal voltage; scalar. |
cellVoltage | output | V | Individual cell voltages; 2 channels at the default configuration. |
cellCurrent | output | A | Individual cell currents; 2 channels at the default configuration. |
cellSoc | output | 1 (fraction) | Individual cell SOC; 2 channels at the default configuration. |
cellTemperature | output | K | Individual cell temperatures; 2 channels at the default configuration. |
cellHeat | output | W | Individual cell heat generation; 2 channels at the default configuration. |
nodeVoltage | output | V | Hierarchy node voltages; 3 channels at the default configuration. |
nodeCurrent | output | A | Hierarchy node currents; 3 channels at the default configuration. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Parallel cells in each groupparallelCells | 1 | 2 | Parallel cells in each group. This is an editable model input; the default belongs to the synthetic worked example. |
Cell parameters [Ah, Ω, Ω, F, Ω, F, J/K, W/K, SOC, K, V offset]cellProfile | See field order | [5, 0.02, 0.02, 500, 0.01, 2000, 100, 1, 0.8, 298.15, 0] | Ordered fields: capacity (Ah), R0 (Ω), R1 (Ω), C1 (F), R2 (Ω), C2 (F), heat capacity (J/K), ambient conductance (W/K), initial SOC, initial temperature (K), OCV offset (V). |
Open-circuit voltage table [SOC fraction, V]ocvTable | See field order | [[0, 3.7], [1, 3.7]] | Open-circuit voltage table [SOC fraction, V]. Rows are ordered coordinate/value pairs; the first column must be strictly increasing. |
Overrides [cell index, parameter index, value]cellOverrides | See field order | [] | Rows contain zero-based cell index, zero-based cell-profile parameter index and replacement value. Empty means every cell uses the base profile. |
Thermal links [cell index, cell index, W/K]thermalEdges | See field order | [] | Rows contain two distinct zero-based cell indices and conductance (W/K). Each edge exchanges equal and opposite heat. Empty means no cell-to-cell links. |
Equations and rules
series: current is shared; voltages addparallel: terminal voltage is shared; branch currents sum to imposed currentIcell = (Ecell - Vparallel) / RcellQij = Gij*(Ti-Tj); Qji = -Qij
Worked example
Parallel cell group worked example
Use the defaults below with Signed pack current = 4 A, Cell ambient temperatures = [298.15, 298.15] K, External cell heat inputs = [0, 0] W. At 0 s, Pack terminal voltage is 3.66 V. Additional checks are listed below.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Pack terminal voltagevoltage | 0 | 3.66 | V | 1e-08 |
Individual cell currentscellCurrent | 0 | [2, 2] | A | 1e-08 |
Individual cell SOCcellSoc | 0 | [0.8, 0.8] | 1 (fraction) | 1e-08 |
Individual cell SOCcellSoc | 10 | [0.798888888888889, 0.798888888888889] | 1 (fraction) | 1e-08 |
Explore the recorded outputs
Parallel cell group recorded example
Parallel cell group / Pack terminal voltage103 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
Download the recorded samples (JSON) · Open this Studio example after release
Unequal parallel cells
Parallel cell group / Pack terminal voltage103 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
Download the recorded samples (JSON) · Open this Studio example after release
Heat exchange between cells
Parallel cell group / Pack terminal voltage103 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
Download the recorded samples (JSON) · Open this Studio example after release
Use in a workflow
Parallel cell group worked example
Generated series/parallel cell hierarchy with individual SOC, RC and temperature states, KCL current sharing and optional thermal links. Causal pack-current boundary.
- Parallel cell group: Builds an explicit series/parallel hierarchy with a separate SOC, two RC voltages and temperature for every cell. Subtree voltage/resistance reduction and Kirchhoff current sharing determine each cell current. Optional thermal links exchange equal and opposite heat. Per-cell overrides introduce controlled variation.
- Use the parameter values in the block reference.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Bounded to 256 cells with the supported series/parallel construction. External pack current is imposed causally; no arbitrary geometry, conserving terminal adapter or topology reconfiguration. Each cell parameter set still needs characterization.
- The example verifies numerical behavior for synthetic parameters. Cell characterization and validation for an intended use are separate tasks.
Scientific and mathematical references
These sources explain the scientific and mathematical background. The behavior, interface and limits above define the Lemonergy implementation; a citation does not imply every model option in the source is implemented.
- A General Energy Balance for Battery Systems
Dawn Bernardi, Ellen Pawlikowski, John Newman · Journal of The Electrochemical Society · 1985
Technical reference · Battery energy balance and irreversible and reversible heat contributions. Reduced thermal models require explicit assumptions and current-sign conventions.
- Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs: Part 2. Modeling and identification
Gregory L. Plett · Journal of Power Sources · 2004
Technical reference · Battery charge balance, open-circuit voltage, ohmic loss, polarization dynamics and model identification; parameters require cell-specific data.
Implementation sources
This reference follows the public interface and locally verified numerical checks for an upcoming release.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)