Lemonergy · Studio block

Passive cell supervision interface

Commanded cell current sink and terminal measurements; an abstract simulated interface, no hardware I/O driver.

Implementation ID
passive-supervision-interface
Reviewed
2026-10-27

Behavior

Commanded cell current sink and terminal measurements; an abstract simulated interface, no hardware I/O driver. The terminal current participates directly in Kirchhoff current balance and changes the connected battery state. Measurements are solved with the physical network.

Interface

Passive cell supervision interface interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Passive cell supervision interfaceStudio blockdischargevoltagecurrentpowerpn
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
pterminalV / AElectrical conserving connection. Across variables are shared at a node; through flows balance.
nterminalV / AElectrical conserving connection. Across variables are shared at a node; through flows balance.
dischargeinputAOptional typed command; otherwise the configured default is used. For balancing, currentN addresses the corresponding circuit.
voltageoutputVObserved voltage.
currentoutputAObserved current.
poweroutputWObserved power.

Parameters

Defaults are initial model values. Select values for your own model and operating conditions.

Configuration fields
ParameterUnitDefaultMeaning and limits
Default discharge current
dischargeCurrentA
A0Default discharge current. Numerical bounds are model-validation limits, not physical operating ratings.
Minimum 0; Maximum 1000000

Equations and rules

  • I = max(0, dischargeRequest)
  • P = terminalVoltage*I

Worked example

Passive cell supervision interface worked example

The bundled model draws 0.2 A from a 4 V cell with 0.1 Ω resistance. Terminal voltage is 3.98 V and interface power is 0.796 W. For its 1 Ah cell, SOC decreases by 0.2/3600 after one second.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Interface current
current
10.2A1e-06
Terminal voltage
voltage
13.98V1e-06
Interface power
power
10.796W1e-06

Use in a workflow

Passive cell supervision interface worked example

Commanded cell current sink and terminal measurements; an abstract simulated interface, no hardware I/O driver.

  1. Passive cell supervision interface: Commanded cell current sink and terminal measurements; an abstract simulated interface, no hardware I/O driver. The terminal current participates directly in Kirchhoff current balance and changes the connected battery state. Measurements are solved with the physical network.
    • Use the parameter values in the block reference.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • This is a simulated electrical interface without a target-hardware driver. SOC and temperature pass-throughs, diagnostic mode flags and hardware-specific communication are outside this interface.

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.

  1. Getting Started with the BQ76925

    Texas Instruments · 2019

    Technical reference · A concrete BMS analog front-end example: cell voltage, current, temperature measurement and MCU integration.

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)