{
  "node": {
    "id": "block:resistor",
    "type": "Block",
    "label": "Resistor",
    "properties": {
      "id": "resistor",
      "name": "Resistor",
      "kind": "studio",
      "summary": "An ideal linear resistance in a conserving electrical circuit.",
      "behavior": "Terminal voltage drives branch current through the configured resistance. Voltage is p minus n; positive current enters p.",
      "ports": [
        {
          "name": "p",
          "direction": "conserving",
          "unit": "V, A",
          "description": "Electrical terminal: potential and charge-conserving current."
        },
        {
          "name": "n",
          "direction": "conserving",
          "unit": "V, A",
          "description": "Electrical terminal: potential and charge-conserving current."
        },
        {
          "name": "voltage",
          "direction": "output",
          "unit": "V",
          "description": "Observed result from the solved component or sampled controller."
        },
        {
          "name": "current",
          "direction": "output",
          "unit": "A",
          "description": "Observed result from the solved component or sampled controller."
        },
        {
          "name": "power",
          "direction": "output",
          "unit": "W",
          "description": "Observed result from the solved component or sampled controller."
        }
      ],
      "parameters": [
        {
          "key": "resistanceOhm",
          "label": "Resistance Ohm",
          "unit": "ohm",
          "default": 1,
          "min": 1e-09,
          "max": 1000000000000,
          "description": "Configured model parameter; the default is an initial editor value, not an operating recommendation."
        }
      ],
      "equations": [
        "I = (V_p - V_n) / R"
      ],
      "example": {
        "title": "Relate current and voltage",
        "text": "A 1 V drop across 2 Ω implies 0.5 A.",
        "url": "https://design.lemonergy.com/cosim.html?example=physical-rc",
        "label": "Open the electrical circuit"
      },
      "limits": [
        "The RC example includes a capacitor: transient current varies and source voltage is not always resistor voltage.",
        "This generic circuit does not identify cell parameters from measurements."
      ],
      "evidence": [
        "js/physical-network.js",
        "js/studio-examples.js"
      ],
      "caseIds": [
        "ohm-circuit",
        "rc-response"
      ],
      "type": "resistor",
      "implementationId": "resistor",
      "url": "https://lemonergy.com/learn/glossary/blocks/resistor/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/resistor/",
      "sourceFile": "block-library.json",
      "sourceRepository": "battery-design",
      "sourceRevision": "ef9802329b75bc15bb96885f8ed5d49425106696",
      "reviewed": "2026-10-27"
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/ohm-circuit/1",
      "type": "usesBlock",
      "source": "workflow:ohm-circuit",
      "target": "block:resistor",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 1,
        "name": "Resistor",
        "type": "resistor",
        "role": "Relates current and voltage",
        "settings": [
          "resistanceOhm"
        ]
      }
    },
    {
      "id": "edge:usesBlock/rc-response/1",
      "type": "usesBlock",
      "source": "workflow:rc-response",
      "target": "block:resistor",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 1,
        "name": "Resistor",
        "type": "resistor",
        "role": "Sets resistance",
        "settings": [
          "resistanceOhm"
        ]
      }
    }
  ],
  "neighbors": [
    {
      "id": "workflow:ohm-circuit",
      "type": "Workflow",
      "label": "Relate current and voltage",
      "properties": {
        "id": "ohm-circuit",
        "title": "Relate current and voltage",
        "kind": "studio",
        "summary": "Conserving components solve constitutive relations and node balance.",
        "steps": [
          "Inspect source and resistor in the RC example.",
          "Compare branch current with resistor voltage."
        ],
        "example": "A 1 V drop across 2 Ω implies 0.5 A.",
        "observe": "Topology sets individual element voltages.",
        "limits": "The RC example includes a capacitor: transient current varies and source voltage is not always resistor voltage.",
        "url": "https://design.lemonergy.com/cosim.html?example=physical-rc",
        "label": "Open the electrical circuit",
        "evidence": [
          "js/physical-network.js",
          "js/studio-examples.js"
        ]
      }
    },
    {
      "id": "workflow:rc-response",
      "type": "Workflow",
      "label": "Observe an RC time constant",
      "properties": {
        "id": "rc-response",
        "title": "Observe an RC time constant",
        "kind": "studio",
        "summary": "An RC circuit uses source, resistor, capacitor and reference blocks.",
        "steps": [
          "Keep R = 1 Ω and C = 1 F.",
          "Inspect capacitor voltage after one and two time constants."
        ],
        "example": "From zero initial voltage with a 1 V step, ideal capacitor voltage is about 0.632 V at 1 s and 0.865 V at 2 s.",
        "observe": "Doubling resistance or capacitance doubles the time constant.",
        "limits": "This generic circuit does not identify cell parameters from measurements.",
        "url": "https://design.lemonergy.com/cosim.html?example=physical-rc",
        "label": "Open the RC example",
        "evidence": [
          "js/physical-network.js",
          "js/studio-examples.js"
        ]
      }
    }
  ]
}
