Lemonergy · Studio block
Variant submodel
Selects one compatible submodel definition before compilation.
- Implementation ID
variant-subsystem- Reviewed
- 2026-10-27
Behavior
Only the selected compatible definition is expanded into the execution model. The authoring model retains every choice.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
u | input | 1 | Input; real signal. |
y | output | 1 | Output; real signal. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
selectedselected | 1 | 0 | Explicit selected in the worked model. |
choiceschoices | 1 | [{"definition": "double", "version": "1", "parameters": {}}, {"definition": "triple", "version": "1", "parameters": {}}] | Explicit choices in the worked model. |
Equations and rules
execution model = selected definition with its own configured parameters
Worked example
Variant submodel — executable model
A3-unit input enters the selected doubling model and produces6. Selecting the tripling model in a new run produces9.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
ResultResult | 0.2 | 6 | 1 | 1e-09 |
Use in a workflow
Variant submodel — executable model
Selects one compatible submodel definition before compilation.
- Variant submodel: Only the selected compatible definition is expanded into the execution model. The authoring model retains every choice.
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Selection is fixed before the run. Choices must have identical named interfaces; arbitrary symbolic activation expressions and runtime switching are not supported.
Reference basis
This compiler and software type contract is defined by the documented behavior and executable example; no external research result or full external API parity 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)