{
  "capability_id": "physics.fluid.pipe_wye",
  "tool_id": "pipe-wye",
  "engine": "pipe-wye",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-17T23:36:55.415Z",
  "engine_build": "2026-09-17",
  "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/pipe-wye",
  "api": "https://www.calculatorx.com/api/v1/calc/pipe-wye",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.pipe_wye.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.pipe_wye.output.json",
  "assumptions": [
    "Equal-area sharp wye: h = K v_c² / (2g); K referenced to common-channel speed; α ∈ (0, 90°); K is reported, not an input",
    "Branch K=1+q²−2q cos α. Dividing run K=0.4(1−q)². Combining run K=1−q²−2q(1−q)cos α. q=Q_path/Q_c in [0,1]; default g=9.80665 m/s²; default ρ=1000 kg/m³",
    "Not a 90° tee, not catalog minor-loss K given, not circular-arc R/D, not mitered n, not pipe-entrance geometry, not pipe-exit K=1, not Q=Av"
  ],
  "limitations": [
    "Equal-area sharp wye: h = K v_c² / (2g); K referenced to common-channel speed; α ∈ (0, 90°); K is reported, not an input",
    "Branch K=1+q²−2q cos α. Dividing run K=0.4(1−q)². Combining run K=1−q²−2q(1−q)cos α. q=Q_path/Q_c in [0,1]; default g=9.80665; default ρ=1000 for Δp",
    "Not a 90° tee, not catalog minor-loss K given, not circular-arc R/D, not mitered n, not pipe-entrance geometry, not pipe-exit K=1, not Q=Av"
  ],
  "boundary_conditions": [
    "missing v_m_s, h, q_ratio, or alpha_deg when required → MISSING_REQUIRED_INPUT",
    "v_m_s ≤ 0 or h ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "q_ratio > 1, α ∉ (0, 90), or K=0 on velocity invert → VALUE_OUT_OF_RANGE",
    "K, rd, n_miters, θ, f, Q, A, v1/v2, ri_d, α=90° → MIXED_INPUT_ENCODING",
    "flush, circular, or unknown kind/path/mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Length, speed, pressure",
      "url": "https://www.iso.org/standard/31895.html",
      "supports": "h is a head; v is a speed; Δp is a pressure",
      "kind": "standard"
    },
    {
      "title": "Idelchik — Handbook of Hydraulic Resistance",
      "section": "Diagrams 7-21 / 7-29 (dividing branch) and 7-1 (combining); 7-20 No.1 dividing run; equal-area wye",
      "supports": "Branch K=1+q²−2q cos α; dividing run K=0.4(1−q)²; combining run K=1−q²−2q(1−q)cos α; K referenced to v_c. Not a 90° tee, not catalog K, not a bend",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:eb3bfb4c8eb0d8ff824203a1aafad6284047a2332244097284f2f88d7abaf668",
  "tests": [
    {
      "id": "property-wye-h",
      "ok": true,
      "kind": "property",
      "detail": "h=K v_c²/(2g) dividing branch",
      "expect": 0.11071940342797029,
      "actual": 0.11071940342797029
    },
    {
      "id": "property-wye-K",
      "ok": true,
      "kind": "property",
      "detail": "K=1+q²−2q cos α",
      "expect": 0.5428932188134524,
      "actual": 0.5428932188134524
    },
    {
      "id": "property-wye-roundtrip-v",
      "ok": true,
      "kind": "property",
      "detail": "v invert",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-wye-run",
      "ok": true,
      "kind": "property",
      "detail": "dividing run K=0.4(1−q)²",
      "expect": 0.1,
      "actual": 0.1
    },
    {
      "id": "property-wye-comb",
      "ok": true,
      "kind": "property",
      "detail": "combining run K=1−q²−2q(1−q)cos α",
      "expect": 0.3964466094067262,
      "actual": 0.3964466094067262
    },
    {
      "id": "property-wye-model",
      "ok": true,
      "kind": "property",
      "detail": "equal_area_wye",
      "expect": true,
      "actual": "equal_area_wye"
    }
  ],
  "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-17T22:06:58.051Z",
  "rendered_at": "2026-09-17T23:36:55.415Z",
  "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": "e9eeadaff4dcae28fd88a8b7d595639bb3d9cd6ff8eba7bf63e2f9db2ce621bb",
      "output_schema_sha256": "f2c63780fb2cf7059dcc3ae3f0f0f392d09da8d392126a9caab953afc1d8bf67",
      "evidence_sha256": "6c38ed444f7cb7084a7a4a53e679b6bc7fd1f7dac1c1895bdc1d548cb9b43f78",
      "evidence_core_sha256": "6c38ed444f7cb7084a7a4a53e679b6bc7fd1f7dac1c1895bdc1d548cb9b43f78",
      "capability_sha256": "b7ce06efc727203d20807732df672f52ee163f604cad0f2d528f7ecffdce1186",
      "engine_sha256": "b7c3aca91b2557e4d6100a71a568bf182a40a247b6a6255250ffed7abdd5b222",
      "mcp_contract_sha256": "ce21ef7f0cc0110d86305c8a48f9a38634c8eef898205199708cf93562a6eab3"
    },
    "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"
  }
}
