{
  "node": {
    "id": "block:native-interpolate-prelookup",
    "type": "Block",
    "label": "Interpolate from prelookup",
    "properties": {
      "id": "native-interpolate-prelookup",
      "name": "Interpolate from prelookup",
      "kind": "studio",
      "summary": "Interpolates a table using already computed cell indices and fractions.",
      "behavior": "y = weighted multilinear combination of the supplied cell corners. The worked example connects this operation to signals in Lemonergy Studio.",
      "ports": [
        {
          "name": "in0",
          "direction": "input",
          "unit": "1",
          "description": "Cell indices; u32 2 array.",
          "shape": [
            2
          ],
          "elementType": "u32"
        },
        {
          "name": "in1",
          "direction": "input",
          "unit": "1",
          "description": "Fractions; real 2 array.",
          "shape": [
            2
          ],
          "elementType": "real"
        },
        {
          "name": "out0",
          "direction": "output",
          "unit": "1",
          "description": "Value; real scalar.",
          "shape": [],
          "elementType": "real"
        }
      ],
      "parameters": [
        {
          "key": "params[0]",
          "label": "First axis size",
          "unit": "1",
          "default": 2,
          "description": "Configured finite numerical parameter."
        },
        {
          "key": "params[1]",
          "label": "Second axis size",
          "unit": "1",
          "default": 2,
          "description": "Configured finite numerical parameter."
        },
        {
          "key": "tables[0]",
          "label": "Table values",
          "unit": "1",
          "default": [
            0,
            1,
            4,
            5
          ],
          "description": "Column-major; first axis varies fastest."
        }
      ],
      "equations": [
        "y = weighted multilinear combination of the supplied cell corners"
      ],
      "example": {
        "title": "Interpolate from prelookup — worked example",
        "text": "Cell indices = [0,0]; Fractions = [0.5,0.5]. Value at 0 s = 2.5.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-native-interpolate-prelookup",
        "label": "Open Studio example",
        "inputs": [
          {
            "port": "in0",
            "label": "Cell indices",
            "value": [
              0,
              0
            ],
            "unit": "1"
          },
          {
            "port": "in1",
            "label": "Fractions",
            "value": [
              0.5,
              0.5
            ],
            "unit": "1"
          }
        ],
        "checks": [
          {
            "port": "out0",
            "label": "Value",
            "atS": 0,
            "value": 2.5,
            "unit": "1",
            "tolerance": 1e-08
          }
        ]
      },
      "limits": [
        "Shapes and element types are explicit. Values must be finite; automatic reshaping and unit conversion are not performed."
      ],
      "references": [
        "nist-dlmf-interpolation"
      ],
      "caseIds": [
        "native-native-interpolate-prelookup"
      ],
      "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-interpolate-prelookup",
          "url": "https://lemonergy.com/learn/glossary/api/traces/native-interpolate-prelookup.json?v=48da33dd4ca7",
          "title": "Interpolate from prelookup recorded example",
          "exampleId": "block-native-interpolate-prelookup",
          "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-interpolate-prelookup",
      "implementationId": "native-interpolate-prelookup",
      "url": "https://lemonergy.com/learn/glossary/blocks/native-interpolate-prelookup/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/native-interpolate-prelookup/",
      "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-interpolate-prelookup"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-native-interpolate-prelookup/0",
      "type": "usesBlock",
      "source": "workflow:native-native-interpolate-prelookup",
      "target": "block:native-interpolate-prelookup",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "Interpolate from prelookup",
        "type": "native-interpolate-prelookup",
        "role": "y = weighted multilinear combination of the supplied cell corners. The worked example connects this operation to signals in Lemonergy Studio.",
        "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-interpolate-prelookup/reference:nist-dlmf-interpolation",
      "type": "cites",
      "source": "block:native-interpolate-prelookup",
      "target": "reference:nist-dlmf-interpolation",
      "properties": {
        "sourceFile": "block-library.json",
        "scope": "Scientific or mathematical background; implementation scope is stated by the block contract"
      }
    }
  ],
  "neighbors": [
    {
      "id": "workflow:native-native-interpolate-prelookup",
      "type": "Workflow",
      "label": "Interpolate from prelookup — worked example",
      "properties": {
        "id": "native-native-interpolate-prelookup",
        "title": "Interpolate from prelookup — worked example",
        "kind": "studio",
        "summary": "Interpolates a table using already computed cell indices and fractions.",
        "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": "Cell indices = [0,0]; Fractions = [0.5,0.5]. Value at 0 s = 2.5.",
        "observe": "Inspect the output channels and checks on the block reference page.",
        "limits": "Shapes and element types are explicit. Values must be finite; automatic reshaping and unit conversion are not performed.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-native-interpolate-prelookup",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    },
    {
      "id": "reference:nist-dlmf-interpolation",
      "type": "Reference",
      "label": "NIST Digital Library of Mathematical Functions, §3.3 Interpolation",
      "properties": {
        "title": "NIST Digital Library of Mathematical Functions, §3.3 Interpolation",
        "publisher": "National Institute of Standards and Technology",
        "url": "https://dlmf.nist.gov/3.3",
        "type": "Mathematical reference",
        "scope": "Interpolation formulas, including linear interpolation equation 3.3.14.",
        "accessed": "2026-10-27"
      }
    }
  ]
}
