{
  "capability_id": "physics.fluid.valve_cv",
  "tool_id": "valve-flow-coefficient",
  "engine": "valve-flow-coefficient",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-17T06:35:12.148Z",
  "engine_build": "2026-09-17",
  "test_count": 17,
  "passed": 17,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 10,
      "passed": 10
    },
    "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/valve-flow-coefficient",
  "api": "https://www.calculatorx.com/api/v1/calc/valve-flow-coefficient",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.valve_cv.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.valve_cv.output.json",
  "assumptions": [
    "Incompressible liquid; Q_m³/h = Kv √(Δp_bar/SG); default SG=1",
    "Kv = 0.865 Cv (IEC 60534-1); frozen, not a US-gpm engine",
    "Not gas, not choked, not IEC 60534-2-1 xT/Y",
    "Not a venturi, not an orifice, not Q=Av, not Darcy, not minor-loss K"
  ],
  "limitations": [
    "Incompressible liquid valve: Q_m³/h = Kv √(Δp_bar/SG); Kv = 0.865 Cv (IEC 60534-1)",
    "SI Q in m³/s, Δp in Pa; default SG=1 (water); not gas, not choked",
    "Not a venturi, not an orifice, not Q=Av, not Darcy, not minor-loss K"
  ],
  "boundary_conditions": [
    "missing Kv/Cv, Δp, or Q when required → MISSING_REQUIRED_INPUT",
    "Kv, Cv, Δp, Q, or SG ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "Kv and Cv, SG and ρ, D1/D2, C_d, K, A, v, or Q with flow → MIXED_INPUT_ENCODING",
    "venturi, orifice, darcy, or Q=Av as mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "IEC 60534-1 — Industrial-process control valves — Flow capacity",
      "section": "Kv and the Kv–Cv relation",
      "url": "https://webstore.iec.ch/publication/2451",
      "supports": "Kv is m³/h of water at 1 bar; Kv = 0.865 Cv; this page is liquid incompressible only",
      "kind": "standard"
    },
    {
      "title": "ISA-75.01.01 — Flow Equations for Sizing Control Valves",
      "section": "Liquid sizing with Cv",
      "supports": "Incompressible liquid Q ∝ Cv √(ΔP/G); gas and choked corrections are out of scope here",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:d4789ab3e4028776421f6e45c57d69b7d91e268116dfb37f88d6b000b21bcec7",
  "tests": [
    {
      "id": "golden-vcv-q",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Kv": 10,
        "dP": 100000
      },
      "expect": {
        "Q": 0.002777777777777778,
        "Kv": 10,
        "Cv": 11.560693641618498,
        "SG": 1,
        "Q_m3_h": 10,
        "mode": "flow",
        "model": "valve_cv"
      },
      "expectWarning": null,
      "actual": {
        "mode": "flow",
        "Q": 0.002777777777777778,
        "Q_m3_h": 10,
        "dP": 100000,
        "SG": 1,
        "Kv": 10,
        "Cv": 11.560693641618498,
        "k": 0.865,
        "model": "valve_cv"
      },
      "tol": 1e-12
    },
    {
      "id": "golden-vcv-cv",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Cv": 11.560693641618498,
        "dP": 100000
      },
      "expect": {
        "Q": 0.002777777777777778,
        "Kv": 10,
        "model": "valve_cv"
      },
      "expectWarning": null,
      "actual": {
        "mode": "flow",
        "Q": 0.002777777777777778,
        "Q_m3_h": 10,
        "dP": 100000,
        "SG": 1,
        "Kv": 10,
        "Cv": 11.560693641618498,
        "k": 0.865,
        "model": "valve_cv"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-vcv-dp",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "pressure",
        "Kv": 10,
        "Q": 0.002777777777777778
      },
      "expect": {
        "dP": 100000,
        "model": "valve_cv"
      },
      "expectWarning": null,
      "actual": {
        "mode": "pressure",
        "Q": 0.002777777777777778,
        "Q_m3_h": 10,
        "dP": 100000,
        "SG": 1,
        "Kv": 10,
        "Cv": 11.560693641618498,
        "k": 0.865,
        "model": "valve_cv"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-vcv-kv",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "Kv",
        "Q": 0.002777777777777778,
        "dP": 100000
      },
      "expect": {
        "Kv": 10,
        "model": "valve_cv"
      },
      "expectWarning": null,
      "actual": {
        "mode": "Kv",
        "Q": 0.002777777777777778,
        "Q_m3_h": 10,
        "dP": 100000,
        "SG": 1,
        "Kv": 10,
        "Cv": 11.560693641618498,
        "k": 0.865,
        "model": "valve_cv"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-vcv-sg",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Kv": 10,
        "dP": 100000,
        "SG": 4
      },
      "expect": {
        "Q": 0.001388888888888889,
        "SG": 4,
        "model": "valve_cv"
      },
      "expectWarning": null,
      "actual": {
        "mode": "flow",
        "Q": 0.001388888888888889,
        "Q_m3_h": 5,
        "dP": 100000,
        "SG": 4,
        "Kv": 10,
        "Cv": 11.560693641618498,
        "k": 0.865,
        "model": "valve_cv"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-vcv-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "dP": 100000
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Need Kv or Cv"
    },
    {
      "id": "boundary-vcv-kv0",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Kv": 0,
        "dP": 100000
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "Kv must be greater than zero"
    },
    {
      "id": "boundary-vcv-both",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Kv": 10,
        "Cv": 11.560693641618498,
        "dP": 100000
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Give Kv or Cv, not both. Kv = 0.865 Cv"
    },
    {
      "id": "boundary-vcv-d1",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Kv": 10,
        "dP": 100000,
        "D1": 0.1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Valve Cv/Kv does not take venturi D1/D2 or orifice d. That is /calc/physics/venturi or /calc/physics/orifice-discharge"
    },
    {
      "id": "boundary-vcv-qav",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Kv": 10,
        "dP": 100000,
        "A": 0.002
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Valve Cv/Kv does not take Q=Av A or v"
    },
    {
      "id": "boundary-vcv-venturi",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Kv": 10,
        "dP": 100000,
        "mode": "venturi"
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be flow|pressure|Kv|Cv. Not venturi, orifice, Darcy, or Q=Av"
    },
    {
      "id": "boundary-vcv-k",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Kv": 10,
        "dP": 100000,
        "K": 0.5
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Valve Cv/Kv does not take minor-loss K. Give Kv or Cv. That is /calc/physics/minor-loss"
    },
    {
      "id": "property-vcv-q",
      "ok": true,
      "kind": "property",
      "detail": "Kv √(Δp_bar)/3600",
      "expect": 0.002777777777777778,
      "actual": 0.002777777777777778
    },
    {
      "id": "property-vcv-cv",
      "ok": true,
      "kind": "property",
      "detail": "Kv=0.865 Cv",
      "expect": 11.560693641618498,
      "actual": 11.560693641618498
    },
    {
      "id": "property-vcv-roundtrip-dp",
      "ok": true,
      "kind": "property",
      "detail": "Δp invert",
      "expect": 100000,
      "actual": 100000
    },
    {
      "id": "property-vcv-sg",
      "ok": true,
      "kind": "property",
      "detail": "Q ∝ 1/√SG",
      "expect": 0.5,
      "actual": 0.5
    },
    {
      "id": "property-vcv-model",
      "ok": true,
      "kind": "property",
      "detail": "valve_cv",
      "expect": true,
      "actual": "valve_cv"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 17,
      "total": 17,
      "golden": 2,
      "boundary": 10,
      "property": 5
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-17T05:39:40.082Z",
  "rendered_at": "2026-09-17T06:35:12.148Z",
  "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": "d38cd4dee167c35753ba3e0e80283228a6156ce20f1427cfb683c53a4380dcf4",
      "output_schema_sha256": "c10b35f24095413db98c2410feefd666b46121f52b69ec7e99fa3ae235b5a7f2",
      "evidence_sha256": "edcf4454d1e6479529918ab1a370ecd4091aa12af5f956ab4ae081e2c99cb0ef",
      "evidence_core_sha256": "edcf4454d1e6479529918ab1a370ecd4091aa12af5f956ab4ae081e2c99cb0ef",
      "capability_sha256": "f1bdbcb8b1960961b0a2765e7345a250c86158d99a5dc46f240bf0116078a61b",
      "engine_sha256": "577dd02827ddc989c9ec83548106b0de2da132cdaad4c2e72f4dc05cde6f3e07",
      "mcp_contract_sha256": "a0951a99ea7017485ae852239b46888380ab942a7571f6a90cc299bd18753be2"
    },
    "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"
  }
}
