Lemonergy · Studio block

Repeating sequence

Repeats a tabulated profile with exact simulation boundaries at every authored knot and wrap.

Implementation ID
native-repeating-sequence
Reviewed
2026-10-27

Behavior

profile time = t modulo repeat period. Linear: y(t) = (1−f)yₖ + f yₖ₊₁; hold: y(t) = yₖ.

Interface

Repeating sequence interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Repeating sequenceStudio blockout0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
out0output1Signal; real scalar.

Parameters

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

Configuration fields
ParameterUnitDefaultMeaning and limits
Interpolation (0 linear, 1 hold)
params[0]
10Configured value for Interpolation (0 linear, 1 hold).
Repeat period
params[1]
s1Configured value for Repeat period.
Time knots
times
s[0, 0.5, 1]Strictly increasing nonnegative times.
Signal samples
values
selected output quantity[0, 2, 0]One complete scalar or shaped signal per time row.

Equations and rules

  • profile time = t modulo repeat period
  • Linear: y(t) = (1−f)yₖ + f yₖ₊₁; hold: y(t) = yₖ

Worked example

Repeating sequence — worked example

Use the configured source parameters. Signal at 0 s = 0.

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

Explore the recorded outputs

Repeating sequence recorded example

Repeating sequence
Repeating sequence against timeRecorded synthetic simulation values. Time in seconds; output in —.-0.1600.420.2510.51.580.752.161—Time (s)
Repeating sequence: 0 — at 0 s

3 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

Repeating sequence — worked example

Repeats a tabulated profile with exact simulation boundaries at every authored knot and wrap.

  1. Repeating sequence: profile time = t modulo repeat period. Linear: y(t) = (1−f)yₖ + f yₖ₊₁; hold: y(t) = yₖ.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • The first knot must be at zero and the last no later than the positive repeat period. Repeating events are bounded to 100000 per source per run.

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.

  1. NIST Digital Library of Mathematical Functions, §3.3 Interpolation

    National Institute of Standards and Technology

    Technical reference · Interpolation formulas, including linear interpolation equation 3.3.14.

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)