Lemonergy · Studio block

Bus to vector

Converts real scalar bus leaves into a vector in declaration order.

Implementation ID
bus-to-vector
Reviewed
2026-10-27

Behavior

Nested bus leaves are visited in declaration order. Each field becomes one vector element.

Interface

Bus to vector interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Bus to vectorStudio blockbusvector
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
businput1values; named bus with declared typed fields.
vectoroutput1Vector; real signal.

Parameters

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

Configuration fields
ParameterUnitDefaultMeaning and limits
Bus declaration
bus
1valuesExplicit bus used by this worked model.

Equations and rules

  • vector[i] = declared scalar leaf i

Worked example

Convert a typed bus to a vector

A = 1; B = 2; C = 3. Product at 1 s = 6.

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

Use in a workflow

Convert a typed bus to a vector

Converts real scalar bus leaves into a vector in declaration order.

  1. Bus to vector: Nested bus leaves are visited in declaration order. Each field becomes one vector element.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Every leaf must be a real scalar with the same quantity; heterogeneous buses cannot be numerically flattened this way.

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)