{
  "capability_id": "physics.fluid.darcy_weisbach",
  "tool_id": "darcy-weisbach",
  "engine": "darcy-weisbach",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T11:29:50.771Z",
  "engine_build": "2026-09-16",
  "test_count": 11,
  "passed": 11,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 1,
      "passed": 1
    },
    "boundary": {
      "total": 5,
      "passed": 5
    },
    "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/darcy-weisbach",
  "api": "https://www.calculatorx.com/api/v1/calc/darcy-weisbach",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.darcy_weisbach.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.darcy_weisbach.output.json",
  "assumptions": [
    "Incompressible",
    "Constant Darcy friction factor",
    "Circular full-flow pipe",
    "g = 9.80665 m/s² unless given",
    "Does not solve Colebrook for f",
    "Not Hazen–Williams or minor-loss K"
  ],
  "limitations": [
    "Incompressible; constant Darcy friction factor; circular pipe",
    "Does not solve Colebrook for f",
    "Not Hazen–Williams, not minor-loss K v²/2g",
    "Not volumetric flow Q=Av"
  ],
  "boundary_conditions": [
    "missing f, L, v, D, or rho → MISSING_REQUIRED_INPUT",
    "L, v, D, or rho ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "f < 0 → VALUE_OUT_OF_RANGE",
    "g given and g ≤ 0 → VALUE_MUST_BE_POSITIVE"
  ],
  "sources": [
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Pressure and hydraulic head",
      "supports": "Δp = ρ g hf for a hydrostatic/hydraulic head",
      "kind": "standard"
    },
    {
      "title": "White, F.M. Fluid Mechanics — pipe flow",
      "section": "Darcy–Weisbach equation",
      "supports": "hf = f L v² / (2 g D) for circular pipes",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:655d4f1d3377c1b4af69e54ceeb465a0ba9e08330df9033b2d627bd8c40bf9df",
  "tests": [
    {
      "id": "golden-dw",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "f": 0.02,
        "L": 10,
        "v": 2,
        "D": 0.1,
        "rho": 1000
      },
      "expect": {
        "dP_Pa": 4000,
        "hf_m": 0.4078864851911713,
        "model": "darcy_weisbach"
      },
      "expectWarning": null,
      "actual": {
        "hf_m": 0.4078864851911713,
        "dP_Pa": 4000,
        "f": 0.02,
        "L": 10,
        "v": 2,
        "D": 0.1,
        "rho": 1000,
        "g": 9.80665,
        "model": "darcy_weisbach"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dw-zero-f",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "f": 0,
        "L": 10,
        "v": 2,
        "D": 0.1,
        "rho": 1000
      },
      "expect": {
        "dP_Pa": 0,
        "hf_m": 0
      },
      "expectWarning": null,
      "actual": {
        "hf_m": 0,
        "dP_Pa": 0,
        "f": 0,
        "L": 10,
        "v": 2,
        "D": 0.1,
        "rho": 1000,
        "g": 9.80665,
        "model": "darcy_weisbach"
      },
      "tol": 1e-18
    },
    {
      "id": "boundary-dw-g",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "f": 0.02,
        "L": 10,
        "v": 2,
        "D": 0.1,
        "rho": 1000,
        "g": 10
      },
      "expect": {
        "hf_m": 0.4,
        "dP_Pa": 4000
      },
      "expectWarning": null,
      "actual": {
        "hf_m": 0.4,
        "dP_Pa": 4000,
        "f": 0.02,
        "L": 10,
        "v": 2,
        "D": 0.1,
        "rho": 1000,
        "g": 10,
        "model": "darcy_weisbach"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dw-f",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "f": -0.01,
        "L": 10,
        "v": 2,
        "D": 0.1,
        "rho": 1000
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "f must be ≥ 0"
    },
    {
      "id": "boundary-dw-d",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "f": 0.02,
        "L": 10,
        "v": 2,
        "D": 0,
        "rho": 1000
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "D must be greater than zero"
    },
    {
      "id": "boundary-dw-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "f": 0.02,
        "L": 10,
        "v": 2,
        "D": 0.1
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "rho is required"
    },
    {
      "id": "property-dw-dp",
      "ok": true,
      "kind": "property",
      "detail": "4000 Pa",
      "expect": 4000,
      "actual": 4000
    },
    {
      "id": "property-dw-hf",
      "ok": true,
      "kind": "property",
      "detail": "Δp/(ρg)",
      "expect": 0.4078864851911713,
      "actual": 0.4078864851911713
    },
    {
      "id": "property-dw-identity",
      "ok": true,
      "kind": "property",
      "detail": "Δp=ρghf",
      "expect": 4000,
      "actual": 4000
    },
    {
      "id": "property-dw-zero",
      "ok": true,
      "kind": "property",
      "detail": "f=0",
      "expect": 0,
      "actual": 0
    },
    {
      "id": "property-dw-model",
      "ok": true,
      "kind": "property",
      "detail": "darcy_weisbach",
      "expect": true,
      "actual": "darcy_weisbach"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 11,
      "total": 11,
      "golden": 1,
      "boundary": 5,
      "property": 5
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-16T10:36:28.830Z",
  "rendered_at": "2026-09-16T11:29:50.771Z",
  "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": "87a5120e0303b9bef2ee820592411248e0e9ab8fcca99ecc1fd7b70c07a3939c",
      "output_schema_sha256": "facaec23d012cbdcfe4ff878408123158e08e664d0f509ad52d2624349669601",
      "evidence_sha256": "79efc007b574d58cd5dc0138e834aecaf95e7b659dc53e6a297204a3202bc277",
      "evidence_core_sha256": "79efc007b574d58cd5dc0138e834aecaf95e7b659dc53e6a297204a3202bc277",
      "capability_sha256": "e8c7ff5c0e50e1e15477a29256944b9a4bcbe7ed8dd05acd9d7a1cbe4da1ba4f",
      "engine_sha256": "962b388bf6ab964c25534c158f4effd05da87b7802057b995c26b059ee2f2a06",
      "mcp_contract_sha256": "eaab9a259f55e96fcf88ca76f89a5314de080a19cf54b6d1e4c6633c4574abcf"
    },
    "contract_checks": {
      "total": 4,
      "passed": 4,
      "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"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
