{
  "capability_id": "physics.fluid.side_weir",
  "tool_id": "side-weir",
  "engine": "side-weir",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-18T03:31:40.490Z",
  "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/side-weir",
  "api": "https://www.calculatorx.com/api/v1/calc/side-weir",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.side_weir.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.side_weir.output.json",
  "assumptions": [
    "Borghei 1999 sharp-crested side weir: Q=(2/3) C_d L √(2g) (y1−p)^{3/2}; C_d=0.71−0.41 Fr₁−0.22(p/y1); SI B, L, y1, p, Q1, Q; C_d is reported",
    "Rectangular channel; subcritical Fr₁∈[0.1, 0.9]; p/y1∈[0.1, 0.9]; y1>p; free lateral overflow; De Marchi-type C_d, not a given frontal C_d",
    "Not thin-plate frontal weir, not ogee Hd, not sluice a b √(2g y1), not Manning n, not Q=Av, not submerged y2"
  ],
  "limitations": [
    "Borghei 1999 sharp-crested side weir: Q=(2/3) C_d L √(2g) (y1−p)^{3/2}; C_d=0.71−0.41 Fr₁−0.22(p/y1); SI B, L, y1, p, Q1, Q; C_d is reported",
    "Rectangular channel; subcritical Fr₁∈[0.1, 0.9]; p/y1∈[0.1, 0.9]; y1>p; free lateral overflow; De Marchi-type C_d, not a given frontal C_d",
    "Not thin-plate frontal weir, not ogee Hd, not sluice a b √(2g y1), not Manning n, not Q=Av, not submerged y2"
  ],
  "boundary_conditions": [
    "missing B, y1, p, Q1, L, or Q when required → MISSING_REQUIRED_INPUT",
    "Cd, weir H, ogee P/Hd, sluice a/b, Manning n/R/S, Q=Av v, orifice A/d, flume Ha/L_f → MIXED_INPUT_ENCODING",
    "Fr₁ outside [0.1, 0.9], p/y1 outside [0.1, 0.9], or y1≤p → VALUE_OUT_OF_RANGE",
    "mode=rectangular|ogee|sluice or unknown mode → MIXED_INPUT_ENCODING or INVALID_MODE"
  ],
  "sources": [
    {
      "title": "Borghei, Jalili & Ghodsian — Discharge Coefficient for Sharp-Crested Side Weir in Subcritical Flow",
      "section": "Journal of Hydraulic Engineering, 1999",
      "supports": "C_d = 0.71 − 0.41 Fr₁ − 0.22 (p/y1) for rectangular sharp-crested side weirs in subcritical flow",
      "kind": "reference"
    },
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Volume flow rate",
      "url": "https://www.iso.org/standard/31895.html",
      "supports": "Q is volume flow; B, L, y1, and p are lengths",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:4d3386b2f78034e7682cf96ff38e245328769d684996717fc634c240c9594a70",
  "tests": [
    {
      "id": "property-sdw-q",
      "ok": true,
      "kind": "property",
      "detail": "B=1 L=2 y1=0.5 p=0.2 Q1=0.4 Q",
      "expect": 0.4597901972544156,
      "actual": 0.4597901972544156
    },
    {
      "id": "property-sdw-cd",
      "ok": true,
      "kind": "property",
      "detail": "Borghei C_d",
      "expect": 0.47387495211341363,
      "actual": 0.47387495211341363
    },
    {
      "id": "property-sdw-not-weir",
      "ok": true,
      "kind": "property",
      "detail": "Q≠frontal C_d=0.62",
      "expect": 0.6015720413716048,
      "actual": 0.4597901972544156
    },
    {
      "id": "property-sdw-roundtrip-L",
      "ok": true,
      "kind": "property",
      "detail": "L invert",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-sdw-model",
      "ok": true,
      "kind": "property",
      "detail": "side_weir_borghei",
      "expect": true,
      "actual": "side_weir_borghei"
    }
  ],
  "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-18T03:25:46.310Z",
  "rendered_at": "2026-09-18T03:31:40.490Z",
  "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": "029d0480ebbc750a983b5fc05500bfadb6e4148f3688b42f8e01a7114fdffeb5",
      "output_schema_sha256": "51594d0e6c8fa928d2a11ecf5efa96036a11d18ce05ffdfdf1e9fd58af76e7e5",
      "evidence_sha256": "1e419f9eb6c16727a7418a85e0ef459646c258f7f418fa62331f5b662c10eb9b",
      "evidence_core_sha256": "1e419f9eb6c16727a7418a85e0ef459646c258f7f418fa62331f5b662c10eb9b",
      "capability_sha256": "5b66dff24c51f813b10bb92a8e637fb9ff10385486579f4389aa07e5f9b85687",
      "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"
  }
}
