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
| Name | Direction | Unit | Meaning |
|---|---|---|---|
out0 | output | 1 | Signal; real scalar. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Interpolation (0 linear, 1 hold)params[0] | 1 | 0 | Configured value for Interpolation (0 linear, 1 hold). |
Repeat periodparams[1] | s | 1 | Configured value for Repeat period. |
Time knotstimes | s | [0, 0.5, 1] | Strictly increasing nonnegative times. |
Signal samplesvalues | selected output quantity | [0, 2, 0] | One complete scalar or shaped signal per time row. |
Equations and rules
profile time = t modulo repeat periodLinear: 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 →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Signalout0 | 0 | 0 | 1 | 1e-08 |
Explore the recorded outputs
Repeating sequence recorded example
Repeating sequence3 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
Repeating sequence — worked example
Repeats a tabulated profile with exact simulation boundaries at every authored knot and wrap.
- 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.
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.
- 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)