{
  "capability_id": "physics.fluid.drowned_sluice",
  "tool_id": "drowned-sluice",
  "engine": "drowned-sluice",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-18T13:31:05.730Z",
  "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/drowned-sluice",
  "api": "https://www.calculatorx.com/api/v1/calc/drowned-sluice",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.drowned_sluice.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.drowned_sluice.output.json",
  "assumptions": [
    "Drowned undershot sluice; y2 required",
    "SI g=9.80665 unless given",
    "Swamee 1992 θ and (y1+15a) form; C_d is reported",
    "Drowned when y1 < 0.81 y2 (y2/a)^{0.72}",
    "Not free-flow sluice, not Villemonte weir, not orifice, not Manning, not Q=Av"
  ],
  "limitations": [
    "Swamee 1992 drowned undershot sluice: Q=C_d a b √(2g y1); C_d=θ·0.611[(y1−a)/(y1+15a)]^{0.072}; θ from y1, y2, a; C_d is reported",
    "Requires y2; drowned when y1 < 0.81 y2 (y2/a)^{0.72}; a/y1∈[0.05, 0.65]; y1>y2>a; SI",
    "Not free-flow sluice without y2, not Villemonte H1+H2 weir, not tank orifice C_d A √(2gH), not Manning n, not Q=Av"
  ],
  "boundary_conditions": [
    "missing a, b, y1, y2, or Q when required → MISSING_REQUIRED_INPUT",
    "a, b, y1, y2, Q, or g ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "a ≥ y1 or a/y1 outside [0.05, 0.65] → VALUE_OUT_OF_RANGE",
    "y2 free-flow, H1/H2, L/H, A/v, n, given Cd → MIXED_INPUT_ENCODING",
    "unknown mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "Swamee, P.K. Sluice-gate discharge equations",
      "section": "J. Irrig. Drain. Eng. 118(1), 1992",
      "supports": "Drowned Cd=θ·0.611[(y1−a)/(y1+15a)]^{0.072} with θ from y1, y2, a; free/drowned split y1 ≶ 0.81 y2 (y2/a)^{0.72}",
      "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, y1, and y2 are lengths",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:aac0921f3656e6e0fc3dcdd7b9cab303b3c5c9e1416427d9b5e08ca4147e5ae6",
  "tests": [
    {
      "id": "property-dsg-Q",
      "ok": true,
      "kind": "property",
      "detail": "Swamee drowned Q",
      "expect": 0.1396071654112376,
      "actual": 0.1396071654112376
    },
    {
      "id": "property-dsg-not-free",
      "ok": true,
      "kind": "property",
      "detail": "Q≠free sluice",
      "expect": 0.5325605844956777,
      "actual": 0.1396071654112376
    },
    {
      "id": "property-dsg-roundtrip-a",
      "ok": true,
      "kind": "property",
      "detail": "a roundtrip",
      "expect": 0.2,
      "actual": 0.2
    },
    {
      "id": "property-dsg-Cd",
      "ok": true,
      "kind": "property",
      "detail": "drowned Cd",
      "expect": 0.1576167535201993,
      "actual": 0.1576167535201993
    },
    {
      "id": "property-dsg-model",
      "ok": true,
      "kind": "property",
      "detail": "sluice_swamee_drowned",
      "expect": true,
      "actual": "sluice_swamee_drowned"
    }
  ],
  "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-18T13:24:31.951Z",
  "rendered_at": "2026-09-18T13:31:05.730Z",
  "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": "d496dff247db16ed9c0eb601dd7c693b0b1d7fe92911fe8a0f9b5d40f313dfbc",
      "output_schema_sha256": "84f6a9167e96b6c4f9ee1c068a260f637fd4adf641662a9b763048af4c2744c6",
      "evidence_sha256": "dfadc32abaeecc48441814594301b59a3d6e902bf9c81d93427233093b0e4c5d",
      "evidence_core_sha256": "dfadc32abaeecc48441814594301b59a3d6e902bf9c81d93427233093b0e4c5d",
      "capability_sha256": "64af12a409759662072b965d7e9b66ee052fd9ec3af58f7d0e8c1991ab0c158f",
      "engine_sha256": "2535bbd1590fe4c9f68b37feb1dc5313da9c24df1769e5b34117eb01dae0ca5b",
      "mcp_contract_sha256": "5bd8949b1ef44d482bc60e0e607f2c613c3cd29aa823f90c3a8844c5db5633ca"
    },
    "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"
  }
}
