{
  "capability_id": "physics.fluid.pipe_cross",
  "tool_id": "pipe-cross",
  "engine": "pipe-cross",
  "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-cross",
  "api": "https://www.calculatorx.com/api/v1/calc/pipe-cross",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.pipe_cross.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.pipe_cross.output.json",
  "assumptions": [
    "Equal-area sharp 90° four-way cross: h = K v_c² / (2g); K referenced to common-channel speed; two opposite laterals are equal; K is reported, not an input",
    "Dividing: branch K=(1+q)², run K=0.4(1−q)². Combining: branch K=1+q²−4(1−2q)²/(2−q), run K=1+q²−q²/[1+q(0.75+0.25q)²]. Branch q≤0.5; default g=9.80665 m/s²; default ρ=1000 kg/m³",
    "Not a 90° tee, not a non-90° wye, 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 90° four-way cross: h = K v_c² / (2g); K referenced to common-channel speed; two opposite laterals are equal; K is reported, not an input",
    "Dividing: branch K=(1+q)², run K=0.4(1−q)². Combining: branch K=1+q²−4(1−2q)²/(2−q), run K=1+q²−q²/[1+q(0.75+0.25q)²]. Branch q≤0.5; default g=9.80665; default ρ=1000 for Δp",
    "Not a 90° tee, not a non-90° wye, 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, or q_ratio when required → MISSING_REQUIRED_INPUT",
    "v_m_s ≤ 0 or h ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "q_ratio > 1, branch q>0.5, or K≤0 on velocity invert → VALUE_OUT_OF_RANGE",
    "K, rd, n_miters, θ, α, f, Q, A, v1/v2, ri_d, q_opp, n_legs → MIXED_INPUT_ENCODING",
    "flush, circular, perpendicular, colliding, 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": "Diagram 7-21 welded equal-area 90° cross; dividing through 7-20 No.1; combining recovery 0.75+0.25q",
      "supports": "Dividing branch K=(1+q)² referenced to v_c; dividing run K=0.4(1−q)²; combining run uses the welded-cross recovery term. Not a 90° tee, not catalog K, not a wye",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:e6825a635217ce5b6215bb34d54e012d45d2012bc810e01c6d884fd28922308f",
  "tests": [
    {
      "id": "property-cross-h",
      "ok": true,
      "kind": "property",
      "detail": "h=K v_c²/(2g) dividing branch",
      "expect": 0.4588722958400677,
      "actual": 0.4588722958400677
    },
    {
      "id": "property-cross-K",
      "ok": true,
      "kind": "property",
      "detail": "K=(1+q)²",
      "expect": 2.25,
      "actual": 2.25
    },
    {
      "id": "property-cross-roundtrip-v",
      "ok": true,
      "kind": "property",
      "detail": "v invert",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-cross-run",
      "ok": true,
      "kind": "property",
      "detail": "dividing run K=0.4(1−q)²",
      "expect": 0.1,
      "actual": 0.1
    },
    {
      "id": "property-cross-comb",
      "ok": true,
      "kind": "property",
      "detail": "combining run Idelchik welded-cross",
      "expect": 1.0692090395480225,
      "actual": 1.0692090395480225
    },
    {
      "id": "property-cross-model",
      "ok": true,
      "kind": "property",
      "detail": "equal_area_cross",
      "expect": true,
      "actual": "equal_area_cross"
    }
  ],
  "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:32:28.651Z",
  "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": "e09751c8657bf28592452d5c79cc9837052f643e13a3ab812859d276cc9fd736",
      "output_schema_sha256": "55b6d41a7aff16b41155d013448caca5c0c9854e5ea875eca171a36b56b01ada",
      "evidence_sha256": "2d10a6938c091447f60b9706f9c661c5e399fb8603e22fe9ea5f791e44270f48",
      "evidence_core_sha256": "2d10a6938c091447f60b9706f9c661c5e399fb8603e22fe9ea5f791e44270f48",
      "capability_sha256": "e82afd7a0f60d45dcd5cc48408f0ff535de81062a8035abeafcedc1afafdd4fc",
      "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"
  }
}
