{
  "node": {
    "id": "block:vector-select",
    "type": "Block",
    "label": "Vector selector",
    "properties": {
      "id": "vector-select",
      "name": "Vector selector",
      "kind": "studio",
      "summary": "Selects a configured element from a real vector.",
      "behavior": "The zero-based element index is checked against the fixed vector dimension before execution.",
      "ports": [
        {
          "name": "vector",
          "direction": "input",
          "unit": "1",
          "description": "Vector; real signal.",
          "shape": [
            3
          ],
          "elementType": "real"
        },
        {
          "name": "element",
          "direction": "output",
          "unit": "1",
          "description": "Element 1; real signal.",
          "shape": [],
          "elementType": "real"
        }
      ],
      "parameters": [
        {
          "key": "n",
          "label": "Vector length",
          "unit": "1",
          "default": 3,
          "description": "Explicit n used by this worked model."
        },
        {
          "key": "index",
          "label": "Selected zero-based index",
          "unit": "1",
          "default": 1,
          "description": "Explicit index used by this worked model."
        },
        {
          "key": "quantity",
          "label": "Physical quantity",
          "unit": "1",
          "default": "dimensionless",
          "description": "Explicit quantity used by this worked model."
        }
      ],
      "equations": [
        "y = vector[index]"
      ],
      "example": {
        "title": "Connect scalar and vector blocks",
        "text": "A = 1; B = 2; C = 3. Result at 1 s = 24.",
        "url": "https://design.lemonergy.com/cosim.html?example=routing-vector-bridge",
        "label": "Open Studio example",
        "inputs": [
          {
            "port": "A",
            "label": "A",
            "value": 1,
            "unit": "1"
          },
          {
            "port": "B",
            "label": "B",
            "value": 2,
            "unit": "1"
          },
          {
            "port": "C",
            "label": "C",
            "value": 3,
            "unit": "1"
          }
        ],
        "checks": [
          {
            "port": "Result",
            "label": "Result",
            "atS": 1,
            "value": 24,
            "unit": "1",
            "tolerance": 1e-09
          }
        ]
      },
      "limits": [
        "The selected index is configured before the run; use other routing operations for dynamic selection."
      ],
      "references": [],
      "referenceNote": "This software operation is defined by its public contract and worked example; no external research result is claimed.",
      "caseIds": [
        "native-vector-select"
      ],
      "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",
      "type": "vector-select",
      "implementationId": "vector-select",
      "url": "https://lemonergy.com/learn/glossary/blocks/vector-select/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/vector-select/",
      "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=routing-vector-bridge"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-vector-select/0",
      "type": "usesBlock",
      "source": "workflow:native-vector-select",
      "target": "block:vector-select",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "Vector selector",
        "type": "vector-select",
        "role": "The zero-based element index is checked against the fixed vector dimension before execution.",
        "settings": [
          "Use the block reference for settings and connections.",
          "Bundled example verified on the production release of 28 October 2026."
        ]
      }
    }
  ],
  "outgoing": [],
  "neighbors": [
    {
      "id": "workflow:native-vector-select",
      "type": "Workflow",
      "label": "Connect scalar and vector blocks",
      "properties": {
        "id": "native-vector-select",
        "title": "Connect scalar and vector blocks",
        "kind": "studio",
        "summary": "Selects a configured element from a real vector.",
        "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": "A = 1; B = 2; C = 3. Result at 1 s = 24.",
        "observe": "Inspect the output channels and checks on the block reference page.",
        "limits": "The selected index is configured before the run; use other routing operations for dynamic selection.",
        "url": "https://design.lemonergy.com/cosim.html?example=routing-vector-bridge",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    }
  ]
}
