{
  "node": {
    "id": "block:native-unit-conversion",
    "type": "Block",
    "label": "Explicit unit conversion",
    "properties": {
      "id": "native-unit-conversion",
      "name": "Explicit unit conversion",
      "kind": "studio",
      "summary": "Applies output = scale × input + offset. The worked example converts an external Celsius number into a Kelvin temperature port.",
      "behavior": "y = scale × u + offset. Kelvin temperature = Celsius value + 273.15.",
      "ports": [
        {
          "name": "in0",
          "direction": "input",
          "unit": "1",
          "description": "Temperature in Celsius; real scalar.",
          "shape": [],
          "elementType": "real"
        },
        {
          "name": "out0",
          "direction": "output",
          "unit": "temperature",
          "description": "Temperature in Kelvin; real scalar.",
          "shape": [],
          "elementType": "real"
        }
      ],
      "parameters": [
        {
          "key": "params[0]",
          "label": "Scale",
          "unit": "1",
          "default": 1,
          "description": "Configured value for Scale."
        },
        {
          "key": "params[1]",
          "label": "Offset",
          "unit": "1",
          "default": 273.15,
          "description": "Configured value for Offset."
        }
      ],
      "equations": [
        "y = scale × u + offset",
        "Kelvin temperature = Celsius value + 273.15"
      ],
      "example": {
        "title": "Explicit unit conversion — worked example",
        "text": "Temperature in Celsius = 25. Temperature in Kelvin at 0 s = 298.15.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-native-unit-conversion",
        "label": "Open Studio example",
        "inputs": [
          {
            "port": "in0",
            "label": "Temperature in Celsius",
            "value": 25,
            "unit": "1"
          }
        ],
        "checks": [
          {
            "port": "out0",
            "label": "Temperature in Kelvin",
            "atS": 0,
            "value": 298.15,
            "unit": "temperature",
            "tolerance": 1e-09
          }
        ]
      },
      "limits": [
        "Scale and offset are explicit user parameters; no automatic dimensional inference or unit-system selection is performed."
      ],
      "references": [
        "bipm-si"
      ],
      "caseIds": [
        "native-native-unit-conversion"
      ],
      "availability": {
        "status": "released",
        "label": "Available in Lemonergy Studio",
        "detail": "The bundled example is available in the production release verified on 28 October 2026. The parameters and examples here are synthetic teaching fixtures, not a characterized cell or a validated operating limit."
      },
      "evidence": [
        "docs/glossary/native-block-verification.json"
      ],
      "sourceRepository": "Lemonergy Studio public contract",
      "sourceRevision": "verification-2026-10-27",
      "exampleTraces": [
        {
          "id": "native-unit-conversion",
          "url": "https://lemonergy.com/learn/glossary/api/traces/native-unit-conversion.json?v=59070e07c00b",
          "title": "Explicit unit conversion recorded example",
          "exampleId": "block-native-unit-conversion",
          "source": "Executed synthetic Lemonergy Studio example",
          "recordedOn": "2026-10-28",
          "points": 2,
          "channels": 1,
          "omittedChannels": 0,
          "interpolation": "linear",
          "solver": {
            "method": "dormand-prince-45",
            "reason": "no-continuous-states"
          }
        }
      ],
      "type": "native-unit-conversion",
      "implementationId": "native-unit-conversion",
      "url": "https://lemonergy.com/learn/glossary/blocks/native-unit-conversion/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/native-unit-conversion/",
      "sourceFile": "block-library.json",
      "reviewed": "2026-10-27",
      "releaseEvidence": {
        "environment": "production",
        "status": "verified",
        "revision": "e76cadfc203e15eb41f3478d8b1044a5b851953d",
        "verifiedOn": "2026-10-28",
        "exampleUrls": [
          "https://design.lemonergy.com/cosim.html?example=block-native-unit-conversion"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-native-unit-conversion/0",
      "type": "usesBlock",
      "source": "workflow:native-native-unit-conversion",
      "target": "block:native-unit-conversion",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "Explicit unit conversion",
        "type": "native-unit-conversion",
        "role": "y = scale × u + offset. Kelvin temperature = Celsius value + 273.15.",
        "settings": [
          "Use the block reference for settings and connections.",
          "Bundled example verified on the production release of 28 October 2026."
        ]
      }
    }
  ],
  "outgoing": [
    {
      "id": "edge:cites/block:native-unit-conversion/reference:bipm-si",
      "type": "cites",
      "source": "block:native-unit-conversion",
      "target": "reference:bipm-si",
      "properties": {
        "sourceFile": "block-library.json",
        "scope": "Scientific or mathematical background; implementation scope is stated by the block contract"
      }
    }
  ],
  "neighbors": [
    {
      "id": "workflow:native-native-unit-conversion",
      "type": "Workflow",
      "label": "Explicit unit conversion — worked example",
      "properties": {
        "id": "native-native-unit-conversion",
        "title": "Explicit unit conversion — worked example",
        "kind": "studio",
        "summary": "Applies output = scale × input + offset. The worked example converts an external Celsius number into a Kelvin temperature port.",
        "steps": [
          "Review the interface, units and model limits.",
          "Open the Studio example and run its bundled model.",
          "Compare outputs with the numerical checks; change one input and run again."
        ],
        "example": "Temperature in Celsius = 25. Temperature in Kelvin at 0 s = 298.15.",
        "observe": "Inspect the output channels and checks on the block reference page.",
        "limits": "Scale and offset are explicit user parameters; no automatic dimensional inference or unit-system selection is performed.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-native-unit-conversion",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    },
    {
      "id": "reference:bipm-si",
      "type": "Reference",
      "label": "The International System of Units (SI), 9th edition",
      "properties": {
        "title": "The International System of Units (SI), 9th edition",
        "publisher": "Bureau International des Poids et Mesures",
        "url": "https://doi.org/10.59161/AUEZ1291",
        "type": "Metrology reference",
        "scope": "Definitions of SI units and coherent derived units; 2026 revision.",
        "year": 2026,
        "accessed": "2026-10-27"
      }
    }
  ]
}
