{
  "capability_id": "physics.fluid.trapezoid_specific_energy",
  "tool_id": "trapezoidal-specific-energy",
  "engine": "trapezoidal-specific-energy",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-18T23:14:09.774Z",
  "engine_build": "2026-09-18",
  "test_count": 5,
  "passed": 5,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 0,
      "passed": 0
    },
    "boundary": {
      "total": 0,
      "passed": 0
    },
    "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/trapezoidal-specific-energy",
  "api": "https://www.calculatorx.com/api/v1/calc/trapezoidal-specific-energy",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.trapezoid_specific_energy.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.trapezoid_specific_energy.output.json",
  "assumptions": [
    "Trapezoid specific energy: E=y+Q²/(2g A²) with A=(b+z y)y; SI; default g=9.80665; z>0 is run/rise",
    "Unknown is E (energy mode) or Q (discharge invert); v=Q/A is reported; not y invert (that is alternate depth)",
    "Not rectangular E=y+v²/(2g); not trapezoid yc; not trapezoid yn; not Manning A,R; not Q=Av"
  ],
  "limitations": [
    "Trapezoid specific energy: E=y+Q²/(2g A²) with A=(b+z y)y; SI; default g=9.80665; z>0 is run/rise",
    "Unknown is E (energy mode) or Q (discharge invert); v=Q/A is reported; not y invert (that is alternate depth)",
    "Not rectangular E=y+v²/(2g); not trapezoid yc; not trapezoid yn; not Manning A,R; not Q=Av"
  ],
  "boundary_conditions": [
    "missing y, Q, b, z, or E when required → MISSING_REQUIRED_INPUT",
    "y, Q, b, z, E, or g ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "E ≤ y → VALUE_OUT_OF_RANGE",
    "z=0, v, A, yc/q, n/S/yn, Fr/L, M, y_sub → MIXED_INPUT_ENCODING",
    "z>10 or y/b outside [0.01, 20] → VALUE_OUT_OF_RANGE",
    "depth, velocity, or depths as mode → MIXED_INPUT_ENCODING or INVALID_MODE"
  ],
  "sources": [
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Energy, length, speed",
      "url": "https://www.iso.org/standard/31895.html",
      "supports": "E and y are lengths; Q is volume flow; g is acceleration",
      "kind": "standard"
    },
    {
      "title": "Chow, V.T. Open-Channel Hydraulics",
      "section": "Specific energy in a trapezoidal section",
      "supports": "E = y + Q²/(2g A²) with A=(b+z y)y. Rectangular E=y+v²/(2g) is a different page.",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:edc9b908435d612a78f90c23d9c46cd001da21351fc46a711cb2af2dcfecf2b8",
  "tests": [
    {
      "id": "property-tse-E",
      "ok": true,
      "kind": "property",
      "detail": "E=y+Q²/(2gA²)",
      "expect": 1.0226603602883984,
      "actual": 1.0226603602883984
    },
    {
      "id": "property-tse-not-rect",
      "ok": true,
      "kind": "property",
      "detail": "E≠rectangular Q encoding",
      "expect": 1.0509858106488965,
      "actual": 1.0226603602883984
    },
    {
      "id": "property-tse-not-yv",
      "ok": true,
      "kind": "property",
      "detail": "E≠y+v²/(2g)",
      "expect": 1.2039432425955856,
      "actual": 1.0226603602883984
    },
    {
      "id": "property-tse-roundtrip-Q",
      "ok": true,
      "kind": "property",
      "detail": "Q roundtrip",
      "expect": 2,
      "actual": 1.9999999999999976
    },
    {
      "id": "property-tse-model",
      "ok": true,
      "kind": "property",
      "detail": "specific_energy_trapezoid",
      "expect": true,
      "actual": "specific_energy_trapezoid"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 5,
      "total": 5,
      "golden": 0,
      "boundary": 0,
      "property": 5
    },
    "contract_checks": {
      "passed": 1,
      "total": 1
    }
  },
  "evidence_core_generated_at": "2026-09-18T22:32:08.277Z",
  "rendered_at": "2026-09-18T23:14:09.774Z",
  "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": "82759d8a740a667c38e376fb92367ac4bd5b8d4d4971f58f56e6f67a88ec8013",
      "output_schema_sha256": "67caad0194ecb7b65170797f8edc5f955455b6899c7cfbced9588f827e740443",
      "evidence_sha256": "f450686d0110039b0900c80f242de006ca8fea80b6001d9f11972c3dade6c44a",
      "evidence_core_sha256": "f450686d0110039b0900c80f242de006ca8fea80b6001d9f11972c3dade6c44a",
      "capability_sha256": "9d2a24517913fd8e6e834ae2ff3d13f12d01cf4cb2cb11c6c4a6b4360a5257c9",
      "engine_sha256": "ec5f90dd051e61e84416b6eff7f761d72ed59985452a88ec6879efdbe4060d42",
      "mcp_contract_sha256": "342ea877fa003c6c958ee3fafb7b71055adb29a20af849e5b2978f768e87b93e"
    },
    "contract_checks": {
      "total": 1,
      "passed": 1,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
