{
  "capability_id": "physics.fluid.submerged_weir",
  "tool_id": "submerged-weir",
  "engine": "submerged-weir",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-18T13:24:50.104Z",
  "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/submerged-weir",
  "api": "https://www.calculatorx.com/api/v1/calc/submerged-weir",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.submerged_weir.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.submerged_weir.output.json",
  "assumptions": [
    "Rectangular thin-plate; drowned nappe",
    "SI g=9.80665 unless given",
    "Villemonte n=1.5 and exponent 0.385; n is not Manning n",
    "Default C_d=0.62; optional C_d in (0, 1]",
    "Not free-flow H only, not ogee Hd, not side weir, not Manning, not Q=Av"
  ],
  "limitations": [
    "Villemonte 1947 rectangular submerged weir: Qs = Qf [1−(H2/H1)^{1.5}]^{0.385}; Qf=(2/3) C_d L √(2g) H1^{3/2}; default C_d=0.62; n=1.5 is not Manning n",
    "Requires H1 and H2; H2/H1∈[0.20, 0.95]; H1>H2>0; C_d optional in (0, 1]; SI; rectangular thin-plate only",
    "Not free-flow thin-plate H only, not ogee Hd, not side weir B+Q1, not Manning n, not Q=Av, not V-notch"
  ],
  "boundary_conditions": [
    "missing L, H1, or H2/Q when required → MISSING_REQUIRED_INPUT",
    "H, Q, L, Cd, or g ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "H2 ≥ H1 or H2/H1 > 0.95 → VALUE_OUT_OF_RANGE",
    "H2/H1 < 0.20, free-flow H, Hd, B/Q1, n, A/v, b, θ → MIXED_INPUT_ENCODING",
    "unknown mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "ISO 1438 — Hydrometry — Open channel flow measurement using thin-plate weirs",
      "section": "Rectangular thin-plate weirs",
      "url": "https://www.iso.org/standard/41711.html",
      "supports": "Free-flow Qf from head over a sharp crest; this page multiplies Qf by Villemonte",
      "kind": "standard"
    },
    {
      "title": "Villemonte, J.R. Submerged-weir discharge studies",
      "section": "Engineering News-Record 139(26), 1947",
      "supports": "Qs/Qf = [1−(H2/H1)^n]^{0.385} with n=1.5 for rectangular sharp-crested weirs",
      "kind": "reference"
    },
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Volume flow rate",
      "url": "https://www.iso.org/standard/31895.html",
      "supports": "Q is volume flow; H1 and H2 are lengths (heads)",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:3fe97780f2eb5a2d76d375ec125899258ba6d9d6310b40258ea698c8c44e8339",
  "tests": [
    {
      "id": "property-sbw-Q",
      "ok": true,
      "kind": "property",
      "detail": "Villemonte Qs",
      "expect": 0.2542803045950632,
      "actual": 0.2542803045950632
    },
    {
      "id": "property-sbw-not-free",
      "ok": true,
      "kind": "property",
      "detail": "Qs≠Qf",
      "expect": 0.3007860206858024,
      "actual": 0.2542803045950632
    },
    {
      "id": "property-sbw-roundtrip-H2",
      "ok": true,
      "kind": "property",
      "detail": "H2 roundtrip",
      "expect": 0.15,
      "actual": 0.15000000000000002
    },
    {
      "id": "property-sbw-Cd",
      "ok": true,
      "kind": "property",
      "detail": "default Cd=0.62",
      "expect": 0.62,
      "actual": 0.62
    },
    {
      "id": "property-sbw-model",
      "ok": true,
      "kind": "property",
      "detail": "villemonte_rectangular",
      "expect": true,
      "actual": "villemonte_rectangular"
    }
  ],
  "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:11:24.388Z",
  "rendered_at": "2026-09-18T13:24:50.104Z",
  "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": "1f6b21a32f617329f54a31f47f7b19c3f3f66f6fa8ca9a82acc4395844f34ef4",
      "output_schema_sha256": "57d8a0bc73eb02ae72f8bbf3131dadcd56005659de9618fd8d80ad08ce44d0a8",
      "evidence_sha256": "4e1c35ae397aa787724453bddb0255976097f6b13662ba39be12e1162d66a721",
      "evidence_core_sha256": "4e1c35ae397aa787724453bddb0255976097f6b13662ba39be12e1162d66a721",
      "capability_sha256": "22aaa1036ca9ee85ddef18a6697f542cf295070771262550786bff3c57cde345",
      "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"
  }
}
