{
  "node": {
    "id": "block:ac-current-source",
    "type": "Block",
    "label": "AC current source",
    "properties": {
      "id": "ac-current-source",
      "name": "AC current source",
      "kind": "studio",
      "summary": "Analytic sinusoidal current, positive from p to n",
      "behavior": "Conserving component solved simultaneously with the connected network. Analytic sinusoidal current, positive from p to n",
      "ports": [
        {
          "name": "p",
          "direction": "terminal",
          "unit": "V; A",
          "description": "electrical conserving connection; voltage across and current through the connected branch."
        },
        {
          "name": "n",
          "direction": "terminal",
          "unit": "V; A",
          "description": "electrical conserving connection; voltage across and current through the connected branch."
        },
        {
          "name": "current",
          "direction": "output",
          "unit": "A",
          "description": "Recorded current measurement from the conserving simulation."
        },
        {
          "name": "voltage",
          "direction": "output",
          "unit": "V",
          "description": "Recorded voltage measurement from the conserving simulation."
        },
        {
          "name": "power",
          "direction": "output",
          "unit": "W",
          "description": "Recorded power measurement from the conserving simulation."
        }
      ],
      "parameters": [
        {
          "key": "amplitudeA",
          "label": "Peak current",
          "unit": "A peak",
          "default": 1,
          "description": "Peak sinusoidal current before the current bias is added.",
          "min": 0,
          "max": 1000000
        },
        {
          "key": "frequencyHz",
          "label": "Frequency",
          "unit": "Hz",
          "default": 1,
          "description": "Number of sinusoidal cycles per second.",
          "min": 0,
          "max": 1000000
        },
        {
          "key": "phaseRad",
          "label": "Initial phase",
          "unit": "rad",
          "default": 0,
          "description": "Angular phase added to the sinusoid at time zero.",
          "min": -1000000,
          "max": 1000000
        },
        {
          "key": "biasA",
          "label": "Current bias",
          "unit": "A",
          "default": 0,
          "description": "Constant current added to the sinusoid.",
          "min": -1000000,
          "max": 1000000
        }
      ],
      "equations": [
        "I(t) = Ibias + Ipeak sin(2π f t + phase)"
      ],
      "example": {
        "title": "AC current source worked example",
        "text": "Editable first-party network. load: resistanceOhm=4. Checks below were verified in the native execution engine.",
        "url": "https://design.lemonergy.com/cosim.html?example=physical-ac-current-source",
        "label": "Open Studio example",
        "inputs": [
          {
            "port": "amplitudeA",
            "label": "Peak current",
            "value": 1,
            "unit": "A peak"
          },
          {
            "port": "frequencyHz",
            "label": "Frequency",
            "value": 1,
            "unit": "Hz"
          },
          {
            "port": "phaseRad",
            "label": "Initial phase",
            "value": 0,
            "unit": "rad"
          },
          {
            "port": "biasA",
            "label": "Current bias",
            "value": 0,
            "unit": "A"
          }
        ],
        "checks": [
          {
            "port": "target/current",
            "label": "current",
            "atS": 0.25000000000000006,
            "value": 1,
            "unit": "A",
            "tolerance": 9.999999999999997e-07
          },
          {
            "port": "target/voltage",
            "label": "voltage",
            "atS": 0.25000000000000006,
            "value": -4,
            "unit": "V",
            "tolerance": 4.0000000000000345e-06
          },
          {
            "port": "target/power",
            "label": "power",
            "atS": 0.25000000000000006,
            "value": -4,
            "unit": "W",
            "tolerance": 4.000000000000008e-06
          }
        ]
      },
      "limits": [
        "Analytic sinusoidal current, positive from p to n",
        "Demonstration parameters are not calibrated hardware data. Singular or incompatible ideal constraints and unsupported state ranges stop the run."
      ],
      "references": [
        "physical-circuit",
        "physical-power"
      ],
      "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",
      "caseIds": [
        "native-ac-current-source"
      ],
      "type": "ac-current-source",
      "implementationId": "ac-current-source",
      "url": "https://lemonergy.com/learn/glossary/blocks/ac-current-source/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/ac-current-source/",
      "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=physical-ac-current-source"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-ac-current-source/0",
      "type": "usesBlock",
      "source": "workflow:native-ac-current-source",
      "target": "block:ac-current-source",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "AC current source",
        "type": "ac-current-source",
        "role": "Conserving component solved simultaneously with the connected network. Analytic sinusoidal current, positive from p to n",
        "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:ac-current-source/reference:physical-circuit",
      "type": "cites",
      "source": "block:ac-current-source",
      "target": "reference:physical-circuit",
      "properties": {
        "sourceFile": "block-library.json",
        "scope": "Scientific or mathematical background; implementation scope is stated by the block contract"
      }
    },
    {
      "id": "edge:cites/block:ac-current-source/reference:physical-power",
      "type": "cites",
      "source": "block:ac-current-source",
      "target": "reference:physical-power",
      "properties": {
        "sourceFile": "block-library.json",
        "scope": "Scientific or mathematical background; implementation scope is stated by the block contract"
      }
    }
  ],
  "neighbors": [
    {
      "id": "workflow:native-ac-current-source",
      "type": "Workflow",
      "label": "AC current source worked example",
      "properties": {
        "id": "native-ac-current-source",
        "title": "AC current source worked example",
        "kind": "studio",
        "summary": "Analytic sinusoidal current, positive from p to n",
        "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": "Editable first-party network. load: resistanceOhm=4. Checks below were verified in the native execution engine.",
        "observe": "Inspect the output channels and checks on the block reference page.",
        "limits": "Analytic sinusoidal current, positive from p to n Demonstration parameters are not calibrated hardware data. Singular or incompatible ideal constraints and unsupported state ranges stop the run.",
        "url": "https://design.lemonergy.com/cosim.html?example=physical-ac-current-source",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    },
    {
      "id": "reference:physical-circuit",
      "type": "Reference",
      "label": "Kirchhoff's Rules",
      "properties": {
        "title": "Kirchhoff's Rules",
        "publisher": "OpenStax, Rice University",
        "url": "https://openstax.org/books/university-physics-volume-2/pages/10-3-kirchhoffs-rules",
        "type": "Primary educational or metrology reference",
        "scope": "Underlying physical law or reduced-model basis; Lemonergy implementation choices and limits are documented separately.",
        "accessed": "2026-10-27"
      }
    },
    {
      "id": "reference:physical-power",
      "type": "Reference",
      "label": "Electrical Energy and Power",
      "properties": {
        "title": "Electrical Energy and Power",
        "publisher": "OpenStax, Rice University",
        "url": "https://openstax.org/books/university-physics-volume-2/pages/9-5-electrical-energy-and-power",
        "type": "Primary educational or metrology reference",
        "scope": "Underlying physical law or reduced-model basis; Lemonergy implementation choices and limits are documented separately.",
        "accessed": "2026-10-27"
      }
    }
  ]
}
