Lemonergy · Studio block

Rate transition

Samples a whole input at its declared period and holds the complete value between instants on the deterministic simulation clock.

Implementation ID
native-rate-transition
Reviewed
2026-10-27

Behavior

y(t) = u(tₖ), tₖ ≤ t < tₖ₊₁.

Interface

Rate transition interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Rate transitionStudio blockin0out0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input1Input; real 3 array.
out0output1Held output; real 3 array.

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

  • y(t) = u(tₖ), tₖ ≤ t < tₖ₊₁

Worked example

Rate transition — worked example

Input = [2,4,6]. Held output at 0 s = [2,4,6].

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Held output
out0
0[2, 4, 6]11e-09

Explore the recorded outputs

Rate transition recorded example

Rate transition [1]
Rate transition [1] against timeRecorded synthetic simulation values. Time in seconds; output in —.1.501.750.2520.52.250.752.51—Time (s)
Rate transition [1]: 2 — 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

Rate transition — worked example

Samples a whole input at its declared period and holds the complete value between instants on the deterministic simulation clock.

  1. Rate transition: y(t) = u(tₖ), tₖ ≤ t < tₖ₊₁.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Deterministic single simulation clock and a configured output sample grid; no asynchronous task scheduling or thread-race guarantee.

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)