{
  "capability_id": "physics.fluid.colebrook",
  "tool_id": "colebrook",
  "engine": "colebrook",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T08:32:57.041Z",
  "engine_build": "2026-09-16",
  "test_count": 9,
  "passed": 9,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 1,
      "passed": 1
    },
    "boundary": {
      "total": 5,
      "passed": 5
    },
    "property": {
      "total": 3,
      "passed": 3
    }
  },
  "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/colebrook",
  "api": "https://www.calculatorx.com/api/v1/calc/colebrook",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.colebrook.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.colebrook.output.json",
  "assumptions": [
    "Turbulent circular full-flow pipe, Re ≥ 4000",
    "Incompressible; constant properties",
    "Not laminar 64/Re",
    "Not a Moody-chart lookup",
    "Does not compose Darcy head loss or Reynolds"
  ],
  "limitations": [
    "Turbulent pipes Re ≥ 4000 — not laminar f=64/Re",
    "Not a Moody-chart lookup",
    "Does not compose Darcy–Weisbach head loss"
  ],
  "boundary_conditions": [
    "Re < 4000 → VALUE_OUT_OF_RANGE",
    "rel_roughness > 0.05 → VALUE_OUT_OF_RANGE",
    "missing rel_roughness and missing eps_m+D_m → MISSING_REQUIRED_INPUT",
    "rel_roughness together with eps_m+D_m → MIXED_INPUT_ENCODING"
  ],
  "sources": [
    {
      "title": "Colebrook, C.F. (1939). Turbulent flow in pipes, with particular reference to the transition region between the smooth and rough pipe laws",
      "section": "Journal of the Institution of Civil Engineers, 11, 133–156",
      "supports": "1/√f = −2 log10(ε/D/3.7 + 2.51/(Re √f))",
      "kind": "standard"
    },
    {
      "title": "White, F.M. Fluid Mechanics — pipe flow friction",
      "section": "Colebrook–White equation",
      "supports": "Implicit turbulent-pipe friction factor; not laminar 64/Re",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:d9eae29ee96f8f982c9d408d79a6592f0f95df4fb4080138a201f8026c96821a",
  "tests": [
    {
      "id": "golden-colebrook",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Re": 100000,
        "rel_roughness": 0.0002
      },
      "expect": {
        "f": 0.01900543522195957,
        "Re": 100000,
        "rel_roughness": 0.0002,
        "model": "colebrook_white"
      },
      "expectWarning": null,
      "actual": {
        "f": 0.01900543522195957,
        "Re": 100000,
        "rel_roughness": 0.0002,
        "inv_sqrt_f": 7.253725059348281,
        "model": "colebrook_white"
      },
      "tol": 1e-10
    },
    {
      "id": "boundary-colebrook",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Re": 100000,
        "rel_roughness": 0.0002
      },
      "expect": {
        "f": 0.01900543522195957
      },
      "expectWarning": null,
      "actual": {
        "f": 0.01900543522195957,
        "Re": 100000,
        "rel_roughness": 0.0002,
        "inv_sqrt_f": 7.253725059348281,
        "model": "colebrook_white"
      },
      "tol": 1e-10
    },
    {
      "id": "boundary-colebrook-eps",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Re": 100000,
        "eps_m": 0.00002,
        "D_m": 0.1
      },
      "expect": {
        "f": 0.01900543522195957,
        "rel_roughness": 0.0002
      },
      "expectWarning": null,
      "actual": {
        "f": 0.01900543522195957,
        "Re": 100000,
        "rel_roughness": 0.0002,
        "inv_sqrt_f": 7.253725059348281,
        "model": "colebrook_white"
      },
      "tol": 1e-10
    },
    {
      "id": "boundary-colebrook-re",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Re": 2300,
        "rel_roughness": 0
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "Colebrook requires Re ≥ 4000 (turbulent pipes; not laminar 64/Re)"
    },
    {
      "id": "boundary-colebrook-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Re": 100000
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "rel_roughness or eps_m and D_m is required"
    },
    {
      "id": "boundary-colebrook-mixed",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Re": 100000,
        "rel_roughness": 0.0002,
        "eps_m": 0.00002,
        "D_m": 0.1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Use rel_roughness or eps_m+D_m, not both encodings"
    },
    {
      "id": "property-colebrook-residual",
      "ok": true,
      "kind": "property",
      "detail": "g≈0",
      "expect": 0,
      "actual": 0
    },
    {
      "id": "property-colebrook-eps",
      "ok": true,
      "kind": "property",
      "detail": "ε/D",
      "expect": 0.01900543522195957,
      "actual": 0.01900543522195957
    },
    {
      "id": "property-colebrook-model",
      "ok": true,
      "kind": "property",
      "detail": "colebrook_white",
      "expect": true,
      "actual": "colebrook_white"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 9,
      "total": 9,
      "golden": 1,
      "boundary": 5,
      "property": 3
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-16T08:17:21.133Z",
  "rendered_at": "2026-09-16T08:32:57.041Z",
  "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": "3e523ba459b82af86a656a663688e2321e8b4a9592f9c1c2ff0745ff4ee5f09f",
      "output_schema_sha256": "cd6d361ae837cd914f7c599c1f47a85cac544494a582e3e14d95dcd625ed27f8",
      "evidence_sha256": "12ae48a20cff32d33a30a05786460df3747ff39f71d6a0c0825173c9d62d4d57",
      "evidence_core_sha256": "12ae48a20cff32d33a30a05786460df3747ff39f71d6a0c0825173c9d62d4d57",
      "capability_sha256": "38c4a8877a0571812c7905c37d9256b7b3e800e0a30de14e51d4c56a3bcb9eb0",
      "engine_sha256": "0a1e24e92d5d1c2d39cf8577107541342377f1039590881b86fb08976a3138ef",
      "mcp_contract_sha256": "bf4dd5ff99d70ef6b0f8c0697525610cc133a250f1678b062d4b8df56a91fba0"
    },
    "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"
  }
}
