{
  "capability_id": "physics.fluid.pipe_bend",
  "tool_id": "pipe-bend",
  "engine": "pipe-bend",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-17T14:46:34.519Z",
  "engine_build": "2026-09-17",
  "test_count": 16,
  "passed": 16,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 9,
      "passed": 9
    },
    "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/pipe-bend",
  "api": "https://www.calculatorx.com/api/v1/calc/pipe-bend",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.pipe_bend.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.pipe_bend.output.json",
  "assumptions": [
    "Circular-arc bend: h = K v² / (2g); K = 0.21 (θ/90)/√(R/D); Idelchik 90° B1 scaled linearly in θ; K is reported, not an input",
    "Require 0 < θ ≤ 180° and R/D ≥ 1; default g=9.80665 m/s²; default ρ=1000 kg/m³; incompressible",
    "Not minor-loss K given, not mitered R/D<1, not Darcy f, not orifice C_d, not Q=Av, not gradual contraction α"
  ],
  "limitations": [
    "Circular-arc bend: h = K v² / (2g); K = 0.21 (θ/90)/√(R/D); Idelchik 90° B1 scaled linearly in θ; K is reported, not an input",
    "Require 0 < θ ≤ 180° and R/D ≥ 1; default g=9.80665; default ρ=1000 for Δp; incompressible",
    "Not minor-loss K given, not mitered R/D<1, not Darcy f, not orifice C_d, not Q=Av, not gradual contraction α"
  ],
  "boundary_conditions": [
    "missing v_m_s, h, θ, or rd when required → MISSING_REQUIRED_INPUT",
    "v_m_s ≤ 0, h ≤ 0, θ ≤ 0, or rd ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "rd < 1 or θ > 180° → VALUE_OUT_OF_RANGE",
    "K, k, f/Re, Q, C_d, v1/v2, alpha_deg → MIXED_INPUT_ENCODING",
    "minor, mitered, darcy, or orifice as mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Length, speed, pressure, plane angle",
      "url": "https://www.iso.org/standard/31895.html",
      "supports": "h is a head; v is a speed; Δp is a pressure; θ is a plane angle",
      "kind": "standard"
    },
    {
      "title": "Idelchik — Handbook of Hydraulic Resistance",
      "section": "Circular-arc bends, B1 at 90°",
      "supports": "ζ_90 = 0.21 / √(R/D) for a circular-arc of circular section in the quadratic region; this page scales linearly with θ/90°",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:1d126b6c47b6a579fb15719ef325004c92359151293d5a62d37a69327ef4701e",
  "tests": [
    {
      "id": "golden-pb-h",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "v_m_s": 2,
        "theta_deg": 90,
        "rd": 2
      },
      "expect": {
        "h": 0.030284026461467467,
        "v": 2,
        "K": 0.14849242404917495,
        "rd": 2,
        "dP": 296.9848480983499,
        "mode": "head",
        "model": "circular_arc_bend"
      },
      "expectWarning": null,
      "actual": {
        "mode": "head",
        "h": 0.030284026461467467,
        "v": 2,
        "K": 0.14849242404917495,
        "theta": 1.5707963267948966,
        "theta_deg": 90,
        "rd": 2,
        "g": 9.80665,
        "rho": 1000,
        "dP": 296.9848480983499,
        "model": "circular_arc_bend"
      },
      "tol": 1e-12
    },
    {
      "id": "golden-pb-dP",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "pressure",
        "v_m_s": 2,
        "theta_deg": 90,
        "rd": 2
      },
      "expect": {
        "dP": 296.9848480983499,
        "model": "circular_arc_bend"
      },
      "expectWarning": null,
      "actual": {
        "mode": "pressure",
        "h": 0.030284026461467467,
        "v": 2,
        "K": 0.14849242404917495,
        "theta": 1.5707963267948966,
        "theta_deg": 90,
        "rd": 2,
        "g": 9.80665,
        "rho": 1000,
        "dP": 296.9848480983499,
        "model": "circular_arc_bend"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-pb-v",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "velocity",
        "h": 0.030284026461467467,
        "theta_deg": 90,
        "rd": 2
      },
      "expect": {
        "v": 2,
        "model": "circular_arc_bend"
      },
      "expectWarning": null,
      "actual": {
        "mode": "velocity",
        "h": 0.030284026461467467,
        "v": 2,
        "K": 0.14849242404917495,
        "theta": 1.5707963267948966,
        "theta_deg": 90,
        "rd": 2,
        "g": 9.80665,
        "rho": 1000,
        "dP": 296.9848480983499,
        "model": "circular_arc_bend"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-pb-theta",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "angle",
        "v_m_s": 2,
        "h": 0.030284026461467467,
        "rd": 2
      },
      "expect": {
        "theta_deg": 90,
        "model": "circular_arc_bend"
      },
      "expectWarning": null,
      "actual": {
        "mode": "angle",
        "h": 0.030284026461467467,
        "v": 2,
        "K": 0.14849242404917495,
        "theta": 1.5707963267948966,
        "theta_deg": 90,
        "rd": 2,
        "g": 9.80665,
        "rho": 1000,
        "dP": 296.9848480983499,
        "model": "circular_arc_bend"
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-pb-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "v_m_s": 2,
        "theta_deg": 90
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "rd is required"
    },
    {
      "id": "boundary-pb-K",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "v_m_s": 2,
        "theta_deg": 90,
        "rd": 2,
        "K": 0.15
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Pipe bend does not take minor-loss K. That is /calc/physics/minor-loss. K=0.21 (θ/90)/√(R/D) is reported"
    },
    {
      "id": "boundary-pb-Q",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "v_m_s": 2,
        "theta_deg": 90,
        "rd": 2,
        "Q": 1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Pipe bend does not take Q or A. That is /calc/physics/flow-rate. Give v_m_s, θ, and R/D"
    },
    {
      "id": "boundary-pb-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "v_m_s": 2,
        "theta_deg": 90,
        "rd": 2,
        "mode": "minor"
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be head|pressure|velocity|angle. Not minor-loss, mitered, Darcy, or Q=Av"
    },
    {
      "id": "boundary-pb-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "v_m_s": 0,
        "theta_deg": 90,
        "rd": 2
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "v_m_s must be greater than zero"
    },
    {
      "id": "boundary-pb-rd",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "v_m_s": 2,
        "theta_deg": 90,
        "rd": 0.5
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "R/D < 1 is mitered or sharp, not a circular-arc. That is not this page"
    },
    {
      "id": "boundary-pb-wide",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "v_m_s": 2,
        "theta_deg": 181,
        "rd": 2
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "Deflection > 180° is not a single circular-arc. That is not this page"
    },
    {
      "id": "property-pb-h",
      "ok": true,
      "kind": "property",
      "detail": "h=K v²/(2g)",
      "expect": 0.030284026461467467,
      "actual": 0.030284026461467467
    },
    {
      "id": "property-pb-K",
      "ok": true,
      "kind": "property",
      "detail": "K=0.21 (θ/90)/√(R/D)",
      "expect": 0.14849242404917495,
      "actual": 0.14849242404917495
    },
    {
      "id": "property-pb-roundtrip-v",
      "ok": true,
      "kind": "property",
      "detail": "v invert",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-pb-roundtrip-t",
      "ok": true,
      "kind": "property",
      "detail": "θ invert",
      "expect": 90,
      "actual": 90
    },
    {
      "id": "property-pb-model",
      "ok": true,
      "kind": "property",
      "detail": "circular_arc_bend",
      "expect": true,
      "actual": "circular_arc_bend"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 16,
      "total": 16,
      "golden": 2,
      "boundary": 9,
      "property": 5
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-17T13:51:07.147Z",
  "rendered_at": "2026-09-17T14:46:34.519Z",
  "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": "0a606d661a87c0430fd19f9ebfdf04cfaf9876fddb36b89502d46cc2be165fdc",
      "output_schema_sha256": "681ddc07cc28c0117dd7903081532861b726d1148827ae55f89b68e05db3c92c",
      "evidence_sha256": "946853b665ebeabbf3d226b801735323f41761c103a42d6d38beb6d0330b4e3a",
      "evidence_core_sha256": "946853b665ebeabbf3d226b801735323f41761c103a42d6d38beb6d0330b4e3a",
      "capability_sha256": "b475371c881156e2a990ec5e2b1d51859cdf0086161cb45d9a00af17d1acbbc9",
      "engine_sha256": "874f411844f83d688e44ba513ac5dfeedc8229a4d525047423a1adce688aecc0",
      "mcp_contract_sha256": "8e3f4d63fc73fac8f314b2f86fa538da1bbc4d670af5f11ee7a7d9cf66dca709"
    },
    "contract_checks": {
      "total": 3,
      "passed": 3,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
