{
  "capability_id": "physics.fluid.sluice_gate",
  "tool_id": "sluice-gate",
  "engine": "sluice-gate",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-18T03:31:40.489Z",
  "engine_build": "2026-09-18",
  "test_count": 6,
  "passed": 6,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 0,
      "passed": 0
    },
    "boundary": {
      "total": 0,
      "passed": 0
    },
    "property": {
      "total": 6,
      "passed": 6
    }
  },
  "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/sluice-gate",
  "api": "https://www.calculatorx.com/api/v1/calc/sluice-gate",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.sluice_gate.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.sluice_gate.output.json",
  "assumptions": [
    "Swamee 1992 free-flow undershot sluice: Q = C_d a b √(2g y1); C_d = 0.611 [(y1−a)/y1]^{0.072}; SI a, b, y1, Q; C_d is reported, not an input",
    "Gate opening a is not orifice area A; y1 is upstream depth, not weir H; a/y1∈[0.05, 0.65]; y1 > a; free flow only",
    "Not thin-plate weir, not tank orifice C_d A √(2gH), not a flume, not Manning n, not Q=Av, not submerged y2"
  ],
  "limitations": [
    "Swamee 1992 free-flow undershot sluice: Q = C_d a b √(2g y1); C_d = 0.611 [(y1−a)/y1]^{0.072}; SI a, b, y1, Q; C_d is reported, not an input",
    "Gate opening a is not orifice area A; y1 is upstream depth, not weir H; a/y1∈[0.05, 0.65]; y1 > a; free flow only",
    "Not thin-plate weir, not tank orifice C_d A √(2gH), not a flume, not Manning n, not Q=Av, not submerged y2"
  ],
  "boundary_conditions": [
    "missing a, b, y1, or Q when required → MISSING_REQUIRED_INPUT",
    "Cd, orifice A/d/D/H, weir L, flume W/Ha/L_f, Manning n/R/S, Q=Av v, y2 → MIXED_INPUT_ENCODING",
    "a ≥ y1 or a/y1 outside [0.05, 0.65] → VALUE_OUT_OF_RANGE",
    "mode=orifice|weir|parshall|cutthroat or unknown mode → MIXED_INPUT_ENCODING or INVALID_MODE"
  ],
  "sources": [
    {
      "title": "Swamee, P.K. — Sluice-Gate Discharge Equations",
      "section": "Free-flow undershot C_d",
      "supports": "C_d = 0.611 [(y1−a)/y1]^{0.072}; Q = C_d a b √(2g y1); not a given orifice C_d=0.61",
      "kind": "reference"
    },
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Volume flow rate",
      "url": "https://www.iso.org/standard/31895.html",
      "supports": "Q is volume flow; a, b, and y1 are lengths",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:82af311d7761a9c504462c218b0b97a291013bc5a88177ac7d068a2456b68d6a",
  "tests": [
    {
      "id": "property-slg-q",
      "ok": true,
      "kind": "property",
      "detail": "a=0.2 b=1 y1=1 Swamee Q",
      "expect": 0.5325605844956777,
      "actual": 0.5325605844956777
    },
    {
      "id": "property-slg-cd",
      "ok": true,
      "kind": "property",
      "detail": "C_d from a/y1",
      "expect": 0.6012619061046544,
      "actual": 0.6012619061046544
    },
    {
      "id": "property-slg-not-orifice",
      "ok": true,
      "kind": "property",
      "detail": "Q≠0.61 A √(2gy1)",
      "expect": 0.5403002472699785,
      "actual": 0.5325605844956777
    },
    {
      "id": "property-slg-roundtrip-a",
      "ok": true,
      "kind": "property",
      "detail": "a invert",
      "expect": 0.2,
      "actual": 0.20000000000000007
    },
    {
      "id": "property-slg-roundtrip-y1",
      "ok": true,
      "kind": "property",
      "detail": "y1 invert",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-slg-model",
      "ok": true,
      "kind": "property",
      "detail": "sluice_swamee_free",
      "expect": true,
      "actual": "sluice_swamee_free"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 6,
      "total": 6,
      "golden": 0,
      "boundary": 0,
      "property": 6
    },
    "contract_checks": {
      "passed": 1,
      "total": 1
    }
  },
  "evidence_core_generated_at": "2026-09-18T03:05:43.139Z",
  "rendered_at": "2026-09-18T03:31:40.489Z",
  "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": "d993969a4b3acc364286d780d544a7db26b4b305e6798a650b191be83ab5e457",
      "output_schema_sha256": "1909de81f8f197e73e2d1c6744a28fb0f9ac23b9faec82ccebd6a0cf168ccb40",
      "evidence_sha256": "05bce0ad723262ad199be4c54a4cdda481ebdb0c3ba43254b829a5a087024296",
      "evidence_core_sha256": "05bce0ad723262ad199be4c54a4cdda481ebdb0c3ba43254b829a5a087024296",
      "capability_sha256": "6b457e86491f2e87942419be1dcbda5b730b1ac185c888c6fcac69189538bcc2",
      "engine_sha256": "508f56605e377c007570b9a5409949c9a9bcfe63675202647cfa02343c5ab8fa",
      "mcp_contract_sha256": "0a8134e5ddebb7539b7325e6f2585459d045c25de5501ee99502a98417a10b18"
    },
    "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"
  }
}
