Lemonergy · Studio block
Explicit unit conversion
Applies output = scale × input + offset. The worked example converts an external Celsius number into a Kelvin temperature port.
- Implementation ID
native-unit-conversion- Reviewed
- 2026-10-27
Behavior
y = scale × u + offset. Kelvin temperature = Celsius value + 273.15.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
in0 | input | 1 | Temperature in Celsius; real scalar. |
out0 | output | temperature | Temperature in Kelvin; real scalar. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Scaleparams[0] | 1 | 1 | Configured value for Scale. |
Offsetparams[1] | 1 | 273.15 | Configured value for Offset. |
Equations and rules
y = scale × u + offsetKelvin temperature = Celsius value + 273.15
Worked example
Explicit unit conversion — worked example
Temperature in Celsius = 25. Temperature in Kelvin at 0 s = 298.15.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Temperature in Kelvinout0 | 0 | 298.15 | temperature | 1e-09 |
Explore the recorded outputs
Explicit unit conversion recorded example
Explicit unit conversion2 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
Download the recorded samples (JSON) · Open this Studio example after release
Use in a workflow
Explicit unit conversion — worked example
Applies output = scale × input + offset. The worked example converts an external Celsius number into a Kelvin temperature port.
- Explicit unit conversion: y = scale × u + offset. Kelvin temperature = Celsius value + 273.15.
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Scale and offset are explicit user parameters; no automatic dimensional inference or unit-system selection is performed.
Scientific and mathematical references
These sources explain the scientific and mathematical background. The behavior, interface and limits above define the Lemonergy implementation; a citation does not imply every model option in the source is implemented.
- The International System of Units (SI), 9th edition
Bureau International des Poids et Mesures · 2026
Technical reference · Definitions of SI units and coherent derived units; 2026 revision.
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)