{
  "node": {
    "id": "block:ideal_duration_hours",
    "type": "Block",
    "label": "ideal_duration_hours",
    "properties": {
      "id": "ideal_duration_hours",
      "name": "ideal_duration_hours",
      "kind": "core",
      "summary": "Calculate ideal full-capacity duration at constant C-rate.",
      "behavior": "C-rate must be finite and strictly positive. This is the ideal capacity/current relation without voltage limits or rate-dependent capacity.",
      "ports": [
        {
          "name": "return",
          "direction": "output",
          "unit": "h",
          "description": "Scalar float or NumPy array following broadcasting."
        }
      ],
      "parameters": [
        {
          "key": "c_rate",
          "label": "c rate",
          "unit": "1/h",
          "description": "Strictly positive rate."
        }
      ],
      "equations": [
        "t_h = 1 / C_rate_h^-1"
      ],
      "example": {
        "title": "Compare ideal duration",
        "text": "At 0.5C ideal full-capacity duration is 2 h; at 2C it is 0.5 h.",
        "url": "https://lemonergy.com/learn/fundamentals/capacity-and-c-rate/",
        "label": "Open the worked lesson"
      },
      "limits": [
        "This excludes CV taper, cutoff, rate-dependent capacity and rest."
      ],
      "evidence": [
        "src/battery_core/capacity.py"
      ],
      "caseIds": [
        "ideal-duration"
      ],
      "type": "ideal_duration_hours",
      "implementationId": "ideal_duration_hours",
      "url": "https://lemonergy.com/learn/glossary/blocks/ideal_duration_hours/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/ideal_duration_hours/",
      "sourceFile": "block-library.json",
      "sourceRepository": "battery-core",
      "sourceRevision": "main",
      "reviewed": "2026-10-27"
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/ideal-duration/0",
      "type": "usesBlock",
      "source": "workflow:ideal-duration",
      "target": "block:ideal_duration_hours",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "ideal_duration_hours",
        "type": "ideal_duration_hours",
        "role": "Core equation",
        "settings": [
          "Positive C-rate"
        ]
      }
    }
  ],
  "neighbors": [
    {
      "id": "workflow:ideal-duration",
      "type": "Workflow",
      "label": "Compare ideal duration",
      "properties": {
        "id": "ideal-duration",
        "title": "Compare ideal duration",
        "kind": "core",
        "summary": "Lemonergy Core evaluates this relation.",
        "steps": [
          "Open the lesson and inspect the equation.",
          "Change one input while holding the others fixed."
        ],
        "example": "At 0.5C ideal full-capacity duration is 2 h; at 2C it is 0.5 h.",
        "observe": "Compare the result with the equation and units.",
        "limits": "This excludes CV taper, cutoff, rate-dependent capacity and rest.",
        "url": "https://lemonergy.com/learn/fundamentals/capacity-and-c-rate/",
        "label": "Open the worked lesson",
        "evidence": [
          "src/battery_core/capacity.py"
        ]
      }
    }
  ]
}
