Lemonergy · Studio block
Controlled discharger
Triggered discharge request with low-voltage/time cutoff, recorded charge and latched completion.
- Implementation ID
battery-controlled-discharger- Reviewed
- 2026-10-27
Behavior
A trigger starts a discharge-current request. Measured voltage cutoff or maximum active time ends the run and latches completion. Measured discharge current accumulates removed ampere-hours. Disable pauses actuation.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
voltage | input | V | Measured terminal voltage; scalar. |
current | input | A | Measured discharge current; scalar. |
trigger | input | true / false | Start trigger; scalar. |
enable | input | true / false | Enable; scalar. |
request | output | A | Discharge-current request; scalar. |
done | output | true / false | Complete; scalar. |
mode | output | 1 | Mode (0 idle, 1 discharge, 2 complete, 3 paused); scalar. |
charge | output | Ah | Removed charge (Ah); scalar. |
elapsed | output | s | Active discharge time (s); scalar. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Sample interval (s)sampleTimeS | s | 1 | Positive sample interval. Initialization has zero elapsed time; subsequent accepted samples update memory. |
Discharge request (A)currentA | A | 1 | Discharge request (A). This is an editable model input; the default belongs to the synthetic worked example. |
Discharge cutoff voltage (V)cutoffV | V | 3.2 | Discharge cutoff voltage (V). This is an editable model input; the default belongs to the synthetic worked example. |
Maximum discharge duration (s)maximumS | s | 3600 | Maximum discharge duration (s). This is an editable model input; the default belongs to the synthetic worked example. |
Equations and rules
removedAh = integral(measured discharge current dt) / 3600finish when terminal voltage <= cutoffV or active time >= maximumS
Worked example
Controlled discharger worked example
Use the defaults below with Measured terminal voltage = 3.8 V, Measured discharge current = 1 A, Start trigger = 1 true / false, Enable = 1 true / false. At 0 s, Discharge-current request is 1 A. Additional checks are listed below.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Discharge-current requestrequest | 0 | 1 | A | 1e-08 |
Completedone | 0 | false | true / false | 1e-08 |
Removed charge (Ah)charge | 0 | 0 | Ah | 1e-08 |
Active discharge time (s)elapsed | 0 | 0 | s | 1e-08 |
Explore the recorded outputs
Controlled discharger recorded example
Controlled discharger / Discharge-current request2 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
Controlled discharger worked example
Triggered discharge request with low-voltage/time cutoff, recorded charge and latched completion.
- Controlled discharger: A trigger starts a discharge-current request. Measured voltage cutoff or maximum active time ends the run and latches completion. Measured discharge current accumulates removed ampere-hours. Disable pauses actuation.
- Use the parameter values in the block reference.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
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.
- Battery Test Manual For Electric Vehicles, Revision 3
Jon P. Christopherson · Idaho National Laboratory · 2015
Technical reference · Performance characterization, pulse resistance/power, life testing and reference performance tests; historical 2015 edition.
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)