Lemonergy · Studio block
Stop simulation
Finishes the run successfully at the first sample where the Boolean condition is true, preserving the trace and recording the stop reason.
- Implementation ID
native-stop-simulation- Reviewed
- 2026-10-27
Behavior
stop at first sampled condition = true; preserve the trace through that instant.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
in0 | input | 1 | Stop requested; bool scalar. |
out0 | output | 1 | Stop accepted; bool scalar. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Sample periodsampleTimeS | s | 0.1 | Positive interval between sample instants. Values are held between samples. Minimum 0 |
Equations and rules
stop at first sampled condition = true; preserve the trace through that instant
Worked example
Stop simulation — worked example
Stop requested = 0. Stop accepted at 0 s = 0.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Stop acceptedout0 | 0 | 0 | 1 | 1e-09 |
Explore the recorded outputs
Stop simulation recorded example
Stop simulation11 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
Stop simulation — worked example
Finishes the run successfully at the first sample where the Boolean condition is true, preserving the trace and recording the stop reason.
- Stop simulation: stop at first sampled condition = true; preserve the trace through that instant.
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Requests are evaluated on the configured sample grid; a condition between samples is acted on at the next sample.
Reference basis
This software operation is defined by its public contract and worked example; no external research result is claimed.
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)