{
  "node": {
    "id": "block:battery-power-capability",
    "type": "Block",
    "label": "Pulse power capability",
    "properties": {
      "id": "battery-power-capability",
      "name": "Pulse power capability",
      "kind": "studio",
      "summary": "Quasi-static voltage/current/SOC envelope for an explicit prediction horizon.",
      "behavior": "Combines a constant open-circuit voltage, effective resistance, voltage/current limits and available charge over a prediction horizon. It returns separate charge and discharge current and terminal-power magnitudes.",
      "ports": [
        {
          "name": "ocv",
          "direction": "input",
          "unit": "V",
          "description": "Open-circuit voltage; scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "voltage"
        },
        {
          "name": "resistance",
          "direction": "input",
          "unit": "1",
          "description": "Effective pulse resistance (ohm); scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "dimensionless"
        },
        {
          "name": "soc",
          "direction": "input",
          "unit": "1 (fraction)",
          "description": "State of charge; scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "fraction"
        },
        {
          "name": "discharge",
          "direction": "output",
          "unit": "A",
          "description": "Discharge-current limit; scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "current"
        },
        {
          "name": "charge",
          "direction": "output",
          "unit": "A",
          "description": "Charge-current magnitude limit; scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "current"
        },
        {
          "name": "dischargePower",
          "direction": "output",
          "unit": "W",
          "description": "Discharge power; scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "power"
        },
        {
          "name": "chargePower",
          "direction": "output",
          "unit": "W",
          "description": "Charge power; scalar.",
          "shape": [],
          "elementType": "real",
          "quantity": "power"
        }
      ],
      "parameters": [
        {
          "key": "capacityAh",
          "label": "Charge capacity (Ah)",
          "unit": "Ah",
          "default": 2,
          "description": "Charge capacity (Ah). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "horizonS",
          "label": "Prediction horizon (s)",
          "unit": "s",
          "default": 60,
          "description": "Prediction horizon (s). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "minVoltageV",
          "label": "Minimum voltage (V)",
          "unit": "V",
          "default": 3,
          "description": "Minimum voltage (V). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "maxVoltageV",
          "label": "Maximum voltage (V)",
          "unit": "V",
          "default": 4.2,
          "description": "Maximum voltage (V). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "maxDischargeA",
          "label": "Maximum discharge current (A)",
          "unit": "A",
          "default": 5,
          "description": "Maximum discharge current (A). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "maxChargeA",
          "label": "Maximum charge current (A)",
          "unit": "A",
          "default": 3,
          "description": "Maximum charge current (A). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "minSoc",
          "label": "Minimum SOC (0–1)",
          "unit": "0–1",
          "default": 0.2,
          "description": "Minimum SOC (0–1). This is an editable model input; the default belongs to the synthetic worked example."
        },
        {
          "key": "maxSoc",
          "label": "Maximum SOC (0–1)",
          "unit": "0–1",
          "default": 0.8,
          "description": "Maximum SOC (0–1). This is an editable model input; the default belongs to the synthetic worked example."
        }
      ],
      "equations": [
        "Vterminal = OCV - I * R",
        "discharge charge-budget limit = 3600 * capacityAh * (SOC - minSOC) / horizonS",
        "Pdischarge = Idischarge * (OCV - Idischarge * R)"
      ],
      "example": {
        "title": "Pulse power capability worked example",
        "text": "Use the defaults below with Open-circuit voltage = 3.8 V, Effective pulse resistance (ohm) = 0.1 1, State of charge = 0.5 1 (fraction). At 0 s, Discharge-current limit is 5 A. Additional checks are listed below.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-battery-power-capability",
        "label": "Open Studio example",
        "checks": [
          {
            "port": "discharge",
            "atS": 0,
            "value": 5,
            "tolerance": 1e-08,
            "label": "Discharge-current limit",
            "unit": "A"
          },
          {
            "port": "charge",
            "atS": 0,
            "value": 3,
            "tolerance": 1e-08,
            "label": "Charge-current magnitude limit",
            "unit": "A"
          },
          {
            "port": "dischargePower",
            "atS": 0,
            "value": 16.5,
            "tolerance": 1e-08,
            "label": "Discharge power",
            "unit": "W"
          },
          {
            "port": "chargePower",
            "atS": 0,
            "value": 12.3,
            "tolerance": 1e-08,
            "label": "Charge power",
            "unit": "W"
          }
        ],
        "inputs": [
          {
            "port": "ocv",
            "label": "Open-circuit voltage",
            "value": 3.8,
            "unit": "V"
          },
          {
            "port": "resistance",
            "label": "Effective pulse resistance (ohm)",
            "value": 0.1,
            "unit": "1"
          },
          {
            "port": "soc",
            "label": "State of charge",
            "value": 0.5,
            "unit": "1 (fraction)"
          }
        ]
      },
      "limits": [
        "This is a quasi-static bound. It excludes polarization dynamics, temperature evolution and weakest-cell limits in a pack.",
        "The example verifies numerical behavior for synthetic parameters. Cell characterization and validation for an intended use are separate tasks."
      ],
      "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."
      },
      "references": [
        "plett-modeling"
      ],
      "evidence": [
        "docs/glossary/native-block-verification.json"
      ],
      "sourceRepository": "Lemonergy Studio public contract",
      "sourceRevision": "verification-2026-10-27",
      "caseIds": [
        "native-battery-power-capability"
      ],
      "exampleTraces": [
        {
          "id": "battery-power-capability",
          "url": "https://lemonergy.com/learn/glossary/api/traces/battery-power-capability.json?v=d263c9002090",
          "title": "Pulse power capability recorded example",
          "exampleId": "block-battery-power-capability",
          "source": "Executed synthetic Lemonergy Studio example",
          "recordedOn": "2026-10-28",
          "points": 2,
          "channels": 4,
          "omittedChannels": 0,
          "interpolation": "linear",
          "solver": {
            "method": "dormand-prince-45",
            "reason": "no-continuous-states"
          }
        }
      ],
      "type": "battery-power-capability",
      "implementationId": "battery-power-capability",
      "url": "https://lemonergy.com/learn/glossary/blocks/battery-power-capability/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/battery-power-capability/",
      "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-battery-power-capability"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-battery-power-capability/0",
      "type": "usesBlock",
      "source": "workflow:native-battery-power-capability",
      "target": "block:battery-power-capability",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "Pulse power capability",
        "type": "battery-power-capability",
        "role": "Combines a constant open-circuit voltage, effective resistance, voltage/current limits and available charge over a prediction horizon. It returns separate charge and discharge current and terminal-power magnitudes.",
        "settings": [
          "Use the parameter values in the block reference.",
          "Bundled example verified on the production release of 28 October 2026."
        ]
      }
    }
  ],
  "outgoing": [
    {
      "id": "edge:cites/block:battery-power-capability/reference:plett-modeling",
      "type": "cites",
      "source": "block:battery-power-capability",
      "target": "reference:plett-modeling",
      "properties": {
        "sourceFile": "block-library.json",
        "scope": "Scientific or mathematical background; implementation scope is stated by the block contract"
      }
    }
  ],
  "neighbors": [
    {
      "id": "workflow:native-battery-power-capability",
      "type": "Workflow",
      "label": "Pulse power capability worked example",
      "properties": {
        "id": "native-battery-power-capability",
        "title": "Pulse power capability worked example",
        "kind": "studio",
        "summary": "Quasi-static voltage/current/SOC envelope for an explicit prediction horizon.",
        "steps": [
          "Review the block inputs, units and model limits.",
          "Open the Studio example and run its bundled model.",
          "Compare the output channels with the numerical checks; change one input and run again."
        ],
        "example": "Use the defaults below with Open-circuit voltage = 3.8 V, Effective pulse resistance (ohm) = 0.1 1, State of charge = 0.5 1 (fraction). At 0 s, Discharge-current limit is 5 A. Additional checks are listed below.",
        "observe": "Inspect the outputs and numerical checks on the block reference page.",
        "limits": "This is a quasi-static bound. It excludes polarization dynamics, temperature evolution and weakest-cell limits in a pack. The example verifies numerical behavior for synthetic parameters. Cell characterization and validation for an intended use are separate tasks.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-battery-power-capability",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    },
    {
      "id": "reference:plett-modeling",
      "type": "Reference",
      "label": "Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs: Part 2. Modeling and identification",
      "properties": {
        "title": "Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs: Part 2. Modeling and identification",
        "publisher": "Journal of Power Sources",
        "url": "https://doi.org/10.1016/j.jpowsour.2004.02.032",
        "type": "Research article",
        "scope": "Battery charge balance, open-circuit voltage, ohmic loss, polarization dynamics and model identification; parameters require cell-specific data.",
        "year": 2004,
        "authors": [
          "Gregory L. Plett"
        ],
        "accessed": "2026-10-27"
      }
    }
  ]
}
