Lemonergy · Studio block
Electrical reference
Define the zero-voltage potential of an electrical island.
- Implementation ID
electrical-reference- Reviewed
- 2026-10-27
Behavior
Connect its p terminal to the intended reference net. Every disconnected electrical island needs a reference to give the conserving network a determinate voltage datum.
Interface
Parameters
No configurable parameters for this component.
Equations and rules
V_reference = 0
Worked example
Build CC–CV charging
An illustrative 100 Ah battery with a 420 V ceiling can use a 32 A cap. At the ceiling, current falls as OCV rises.
Open the Studio example →Use in a workflow
Build CC–CV charging
Native current and voltage regulation act against an explicit battery.
- Electrical reference: Sets zero potential
- Connect p to reference net
Connect SOC and voltage
The battery integrates charge and combines OCV with resistance.
- Electrical reference: Sets zero potential
- Connect p to reference net
Relate current and voltage
Conserving components solve constitutive relations and node balance.
- Electrical reference: Sets zero potential
- Connect p to reference net
Observe an RC time constant
An RC circuit uses source, resistor, capacitor and reference blocks.
- Electrical reference: Sets zero potential
- Connect p to reference net
Model signed grid exchange
Explicit battery and converter exchange average power.
- Electrical reference: Sets zero potential
- Connect p to reference net
Connected concepts
- CC-CV charging
- Charger
- Charging curve
- Constant current
- Constant voltage
- Cutoff voltage
- Taper current
- Closed-circuit voltage
- Coulomb counting
- Coulombic efficiency
- Internal resistance
- IR drop
- OCV–SOC curve
- Open-circuit voltage
- State of charge
- Current sensor
- Kirchhoff’s laws
- Ohm
- Ohm’s law
- Volt
- Voltage
- Voltage sensing
- Capacitor
- Equivalent circuit model
- RC pair
- Reduced-order model
- Grid-to-vehicle
- Vehicle-to-everything
- Vehicle-to-grid
Limits and interpretation
- The battery uses linear OCV and fixed resistance. It does not automatically add aging, thermal dynamics or balancing.
- Internal model SOC is not an estimate of an unknown physical battery. OCV is linear and resistance fixed.
- This excludes AC waveforms, synchronization, communications and certification.
- The RC example includes a capacitor: transient current varies and source voltage is not always resistor voltage.
- This generic circuit does not identify cell parameters from measurements.
Implementation sources
This reference follows Lemonergy implementation sources. Scientific articles support the linked concepts separately.
Repository: battery-design · Revision: ef9802329b75bc15bb96885f8ed5d49425106696
js/charging-control.jsjs/charging-scenarios.jsdocs/CHARGING_BLOCKS_SPEC.mdjs/physical-network.jsjs/studio-examples.js
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)