Lemonergy · Studio block

Element selector

Selects column-major array elements by explicit zero-based indices, preserving their order and type.

Implementation ID
native-selector
Reviewed
2026-10-27

Behavior

output i = input[configured index i].

Interface

Element selector interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Element selectorStudio blockin0out0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input1Array; real 3 array.
out0output1Selected elements; real 2 array.

Parameters

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

Configuration fields
ParameterUnitDefaultMeaning and limits
First selected index
params[0]
12Configured value for First selected index.
Second selected index
params[1]
10Configured value for Second selected index.

Equations and rules

  • output i = input[configured index i]

Worked example

Element selector — worked example

Array = [2,4,6]. Selected elements at 0 s = [6,2].

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

Explore the recorded outputs

Element selector recorded example

Element selector [1]
Element selector [1] against timeRecorded synthetic simulation values. Time in seconds; output in —.5.505.750.2560.56.250.756.51—Time (s)
Element selector [1]: 6 — 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

Element selector — worked example

Selects column-major array elements by explicit zero-based indices, preserving their order and type.

  1. Element selector: output i = input[configured index i].
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Indices are configured before execution, zero-based and interpreted in column-major element order.

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)