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
| Name | Direction | Unit | Meaning |
|---|---|---|---|
bus | input | 1 | values; named bus with declared typed fields. |
vector | output | 1 | Vector; real signal. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Bus declarationbus | 1 | values | Explicit 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 →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
ProductProduct | 1 | 6 | 1 | 1e-09 |
Use in a workflow
Convert a typed bus to a vector
Converts real scalar bus leaves into a vector in declaration order.
- 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.
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)