Lemonergy · Studio block

Vector selector

Selects a configured element from a real vector.

Implementation ID
vector-select
Reviewed
2026-10-27

Behavior

The zero-based element index is checked against the fixed vector dimension before execution.

Interface

Vector selector interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Vector selectorStudio blockvectorelement
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
vectorinput1Vector; real signal.
elementoutput1Element 1; real signal.

Parameters

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

Configuration fields
ParameterUnitDefaultMeaning and limits
Vector length
n
13Explicit n used by this worked model.
Selected zero-based index
index
11Explicit index used by this worked model.
Physical quantity
quantity
1dimensionlessExplicit quantity used by this worked model.

Equations and rules

  • y = vector[index]

Worked example

Connect scalar and vector blocks

A = 1; B = 2; C = 3. Result at 1 s = 24.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Result
Result
12411e-09

Use in a workflow

Connect scalar and vector blocks

Selects a configured element from a real vector.

  1. Vector selector: The zero-based element index is checked against the fixed vector dimension before execution.
    • 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 selected index is configured before the run; use other routing operations for dynamic selection.

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)