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

Explicit unit conversion interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Explicit unit conversionStudio blockin0out0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input1Temperature in Celsius; real scalar.
out0outputtemperatureTemperature in Kelvin; real scalar.

Parameters

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

Configuration fields
ParameterUnitDefaultMeaning and limits
Scale
params[0]
11Configured value for Scale.
Offset
params[1]
1273.15Configured value for Offset.

Equations and rules

  • y = scale × u + offset
  • Kelvin 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 →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Temperature in Kelvin
out0
0298.15temperature1e-09

Explore the recorded outputs

Explicit unit conversion recorded example

Explicit unit conversion
Explicit unit conversion against timeRecorded synthetic simulation values. Time in seconds; output in K.283.24250290.69620.25298.150.5305.60370.75313.05751KTime (s)
Explicit unit conversion: 298.15 K at 0 s

2 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.

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.

  1. 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.
Open Studio example after release

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.

  1. 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)