Lemonergy · Studio block

Reset above threshold

Outputs zero above a threshold and passes values at or below it.

Implementation ID
native-wrap-zero
Reviewed
2026-10-27

Behavior

y = 0 when u > threshold; otherwise y = u. The worked example connects this operation to signals in Lemonergy Studio.

Interface

Reset above threshold interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Reset above thresholdStudio blockin0out0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input1Value; real scalar.
out0output1Output; real scalar.

Parameters

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

Configuration fields
ParameterUnitDefaultMeaning and limits
Threshold
params[0]
15Values greater than the threshold become zero; equality passes through.

Equations and rules

  • y = 0 when u > threshold; otherwise y = u

Worked example

Reset above threshold — worked example

Value = 6. Output at 0 s = 0.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Output
out0
0011e-08

Explore the recorded outputs

Reset above threshold recorded example

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

2 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

Reset above threshold — worked example

Outputs zero above a threshold and passes values at or below it.

  1. Reset above threshold: y = 0 when u > threshold; otherwise y = u. The worked example connects this operation to signals in Lemonergy Studio.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Input strictly greater than threshold becomes zero; equality and lower input pass through.
  • Shapes and element types are explicit. Values must be finite; automatic reshaping and unit conversion are not performed.

Reference basis

This software operation and its numerical conventions are defined by the 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)