{
  "capability_id": "physics.fluid.specific_energy",
  "tool_id": "specific-energy",
  "engine": "specific-energy",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-17T08:49:50.940Z",
  "engine_build": "2026-09-17",
  "test_count": 17,
  "passed": 17,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 10,
      "passed": 10
    },
    "property": {
      "total": 5,
      "passed": 5
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/physics/specific-energy",
  "api": "https://www.calculatorx.com/api/v1/calc/specific-energy",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.specific_energy.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.specific_energy.output.json",
  "assumptions": [
    "Open-channel specific energy: E = y + v² / (2g); default g=9.80665 m/s²",
    "Invert y = E − v²/(2g) and v = √(2g(E−y)); require E > y",
    "Not a Froude wrap, not a hydraulic jump, not Manning, not Q=Av"
  ],
  "limitations": [
    "Open-channel specific energy: E = y + v² / (2g); default g=9.80665 m/s²",
    "Invert y = E − v²/(2g) and v = √(2g(E−y)); require E > y",
    "Not a Froude wrap, not a hydraulic jump, not Manning, not Q=Av"
  ],
  "boundary_conditions": [
    "missing y, v, or E when required → MISSING_REQUIRED_INPUT",
    "E ≤ y or E ≤ v²/(2g) → VALUE_OUT_OF_RANGE",
    "y, v, E, or g ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "Fr/L, y1/y2, n, A/Q → MIXED_INPUT_ENCODING",
    "froude, jump, or manning as mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Energy, length, speed",
      "supports": "E and y are lengths; v is speed; g is acceleration",
      "kind": "standard"
    },
    {
      "title": "Chow, V.T. Open-Channel Hydraulics",
      "section": "Specific energy",
      "supports": "E = y + v²/(2g) for a rectangular channel with hydrostatic pressure",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:3d8a44aacc588095049cf010035958932598abd380ff7bd5e847832d35449ddc",
  "tests": [
    {
      "id": "golden-se-E",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "y": 1,
        "v": 2
      },
      "expect": {
        "y": 1,
        "v": 2,
        "E": 1.2039432425955856,
        "mode": "energy",
        "model": "specific_energy"
      },
      "expectWarning": null,
      "actual": {
        "mode": "energy",
        "E": 1.2039432425955856,
        "y": 1,
        "v": 2,
        "g": 9.80665,
        "model": "specific_energy"
      },
      "tol": 1e-12
    },
    {
      "id": "golden-se-v",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "velocity",
        "E": 1.2039432425955856,
        "y": 1
      },
      "expect": {
        "v": 2,
        "model": "specific_energy"
      },
      "expectWarning": null,
      "actual": {
        "mode": "velocity",
        "E": 1.2039432425955856,
        "y": 1,
        "v": 1.9999999999999998,
        "g": 9.80665,
        "model": "specific_energy"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-se-y",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "depth",
        "E": 1.2039432425955856,
        "v": 2
      },
      "expect": {
        "y": 1,
        "model": "specific_energy"
      },
      "expectWarning": null,
      "actual": {
        "mode": "depth",
        "E": 1.2039432425955856,
        "y": 1,
        "v": 2,
        "g": 9.80665,
        "model": "specific_energy"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-se-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 1
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "v is required"
    },
    {
      "id": "boundary-se-Ey",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "velocity",
        "E": 1,
        "y": 1
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "Velocity invert needs E > y"
    },
    {
      "id": "boundary-se-Fr",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 1,
        "v": 2,
        "Fr": 0.64
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Specific energy does not take Froude Fr or L. That is /calc/physics/froude-number"
    },
    {
      "id": "boundary-se-n",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 1,
        "v": 2,
        "n": 0.013
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Specific energy does not take Manning n or Chezy C/R/S"
    },
    {
      "id": "boundary-se-A",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 1,
        "v": 2,
        "A": 1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Specific energy does not take Q=Av A/Q. Use y and v"
    },
    {
      "id": "boundary-se-y1",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 1,
        "v": 2,
        "y1": 1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Specific energy is not a hydraulic jump. Use y, not y1/y2. That is /calc/physics/hydraulic-jump"
    },
    {
      "id": "boundary-se-L",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 1,
        "v": 2,
        "L": 1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Specific energy does not take Froude Fr or L. That is /calc/physics/froude-number"
    },
    {
      "id": "boundary-se-froude",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 1,
        "v": 2,
        "mode": "froude"
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be energy|depth|velocity. Not Froude, hydraulic jump, Manning, or Q=Av"
    },
    {
      "id": "boundary-se-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 1,
        "v": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "v must be greater than zero"
    },
    {
      "id": "property-se-E",
      "ok": true,
      "kind": "property",
      "detail": "E=y+v²/(2g)",
      "expect": 1.2039432425955856,
      "actual": 1.2039432425955856
    },
    {
      "id": "property-se-roundtrip-y",
      "ok": true,
      "kind": "property",
      "detail": "y invert",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-se-roundtrip-v",
      "ok": true,
      "kind": "property",
      "detail": "v invert",
      "expect": 2,
      "actual": 1.9999999999999998
    },
    {
      "id": "property-se-gt",
      "ok": true,
      "kind": "property",
      "detail": "E>y",
      "expect": true,
      "actual": true
    },
    {
      "id": "property-se-model",
      "ok": true,
      "kind": "property",
      "detail": "specific_energy",
      "expect": true,
      "actual": "specific_energy"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 17,
      "total": 17,
      "golden": 2,
      "boundary": 10,
      "property": 5
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-17T08:22:37.002Z",
  "rendered_at": "2026-09-17T08:49:50.940Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.0",
    "artifacts": {
      "engine": "1.0.0",
      "page": "1.0.0",
      "capability": "1.0.0",
      "evidence": "1.0.0",
      "input_schema": "1.0.0",
      "output_schema": "1.0.0",
      "mcp_contract": "1.0.0"
    },
    "digests": {
      "input_schema_sha256": "99ebbe504852be356d8b50c68278b5b8319290c28246f89d3c685bff1f06b3e8",
      "output_schema_sha256": "b5c373af8cd3ad35d3f0c9733ef549cdd4447de617b080b2841b4838f24ec341",
      "evidence_sha256": "b741a11a90f3044e8893dbf229ceec93720fd260b7e88267fb454366ef1dbf7d",
      "evidence_core_sha256": "b741a11a90f3044e8893dbf229ceec93720fd260b7e88267fb454366ef1dbf7d",
      "capability_sha256": "c89ad2f37e6e17d77153fba92760cf63e467a2ef268584f9083294bec8649dac",
      "engine_sha256": "0c0851fab70abbeebfe07916fc4e23f4718babe41882681bdfec8e4f0768b97f",
      "mcp_contract_sha256": "e444fb05e9379f4f2492792d89493686e8dd71c0a104ae00acbe73364b370c5c"
    },
    "contract_checks": {
      "total": 3,
      "passed": 3,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
