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

Stop simulation interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Stop simulationStudio blockin0out0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input1Stop requested; bool scalar.
out0output1Stop accepted; bool scalar.

Parameters

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

Configuration fields
ParameterUnitDefaultMeaning and limits
Sample period
sampleTimeS
s0.1Positive 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 →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Stop accepted
out0
0011e-09

Explore the recorded outputs

Stop simulation recorded example

Stop simulation
Stop simulation against timeRecorded synthetic simulation values. Time in seconds; output in —.-0.50-0.250.2500.50.250.750.51—Time (s)
Stop simulation: 0 — at 0 s

11 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.

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.

  1. 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.
Open Studio example after release

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)