{
  "capability_id": "physics.fluid.wave_celerity",
  "tool_id": "wave-celerity",
  "engine": "wave-celerity",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-17T12:57:09.948Z",
  "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/wave-celerity",
  "api": "https://www.calculatorx.com/api/v1/calc/wave-celerity",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.wave_celerity.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.wave_celerity.output.json",
  "assumptions": [
    "Korteweg–Hall wave celerity: c = √[(K/ρ)/(1+(K D)/(E e))]; default ρ=1000 kg/m³; thin wall; ψ=1",
    "K is fluid bulk modulus, E is wall Young’s modulus; not Joukowsky Δp=ρcΔv",
    "Not Darcy f, not minor-loss K, not Q=Av, not Y=(F/A)/(ΔL/L0)"
  ],
  "limitations": [
    "Korteweg–Hall wave celerity: c = √[(K/ρ)/(1+(K D)/(E e))]; default ρ=1000 kg/m³; thin wall; ψ=1",
    "K is fluid bulk modulus, E is wall Young’s modulus; not Joukowsky Δp=ρcΔv",
    "Not Darcy f, not minor-loss K, not Q=Av, not Y=(F/A)/(ΔL/L0)"
  ],
  "boundary_conditions": [
    "missing K, D, e, E, or c when required → MISSING_REQUIRED_INPUT",
    "K, D, e, E, c, or ρ ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "c ≥ √(K/ρ) on E invert, or c ≥ √(E e/(ρ D)) on K invert → VALUE_OUT_OF_RANGE",
    "dP/dV, f/Re, K_loss, n, A/Q, v, L, ψ → MIXED_INPUT_ENCODING",
    "joukowsky, darcy, or minor as mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Pressure, density, speed, modulus",
      "supports": "K and E are moduli; ρ is a density; c is a speed; D and e are lengths",
      "kind": "standard"
    },
    {
      "title": "Wylie, E.B. and Streeter, V.L. Fluid Transients",
      "section": "Wave speed in a liquid-filled elastic pipe",
      "supports": "c = √[(K/ρ)/(1+(K/E)(D/e))] for a thin-wall line with restraint factor 1",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:dfcffb8e60b5a388665e4e0f26e0d90f8eeb99ee7b25e345de0f1e39e98710af",
  "tests": [
    {
      "id": "golden-wc-c",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000
      },
      "expect": {
        "c": 1023.5326314383179,
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "rho": 1000,
        "mode": "celerity",
        "model": "korteweg_hall"
      },
      "expectWarning": null,
      "actual": {
        "mode": "celerity",
        "c": 1023.5326314383179,
        "rho": 1000,
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "model": "korteweg_hall"
      },
      "tol": 1e-12
    },
    {
      "id": "golden-wc-K",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "bulk",
        "c": 1023.5326314383179,
        "D": 1,
        "e": 0.01,
        "E": 200000000000
      },
      "expect": {
        "K": 2200000000,
        "model": "korteweg_hall"
      },
      "expectWarning": null,
      "actual": {
        "mode": "bulk",
        "c": 1023.5326314383179,
        "rho": 1000,
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "model": "korteweg_hall"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-wc-E",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "youngs",
        "c": 1023.5326314383179,
        "K": 2200000000,
        "D": 1,
        "e": 0.01
      },
      "expect": {
        "E": 200000000000,
        "model": "korteweg_hall"
      },
      "expectWarning": null,
      "actual": {
        "mode": "youngs",
        "c": 1023.5326314383179,
        "rho": 1000,
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 199999999999.99997,
        "model": "korteweg_hall"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-wc-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "e is required"
    },
    {
      "id": "boundary-wc-dP",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "dP": 1000000
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Wave celerity does not take Joukowsky Δp or Δv. That is /calc/physics/water-hammer"
    },
    {
      "id": "boundary-wc-f",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "f": 0.02
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Wave celerity does not take Darcy f, Re, or roughness. That is /calc/physics/darcy-weisbach or /calc/physics/colebrook"
    },
    {
      "id": "boundary-wc-Kloss",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "K_loss": 0.5
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Wave celerity K is bulk modulus, not minor-loss K. That is /calc/physics/minor-loss"
    },
    {
      "id": "boundary-wc-A",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "A": 1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Wave celerity does not take Q=Av A/Q"
    },
    {
      "id": "boundary-wc-v",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "v": 1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Wave celerity uses c, not v. That is /calc/physics/pitot-tube"
    },
    {
      "id": "boundary-wc-n",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "n": 0.013
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Wave celerity does not take Manning n or Chezy C/R/S"
    },
    {
      "id": "boundary-wc-jouk",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 200000000000,
        "mode": "joukowsky"
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be celerity|bulk|youngs. Not Joukowsky, Darcy, minor-loss, or Q=Av"
    },
    {
      "id": "boundary-wc-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "K": 2200000000,
        "D": 1,
        "e": 0.01,
        "E": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "E must be greater than zero"
    },
    {
      "id": "property-wc-c",
      "ok": true,
      "kind": "property",
      "detail": "Hall c",
      "expect": 1023.5326314383179,
      "actual": 1023.5326314383179
    },
    {
      "id": "property-wc-roundtrip-K",
      "ok": true,
      "kind": "property",
      "detail": "K invert",
      "expect": 2200000000,
      "actual": 2200000000
    },
    {
      "id": "property-wc-roundtrip-E",
      "ok": true,
      "kind": "property",
      "detail": "E invert",
      "expect": 200000000000,
      "actual": 199999999999.99997
    },
    {
      "id": "property-wc-rho",
      "ok": true,
      "kind": "property",
      "detail": "ρ default 1000",
      "expect": 1000,
      "actual": 1000
    },
    {
      "id": "property-wc-model",
      "ok": true,
      "kind": "property",
      "detail": "korteweg_hall",
      "expect": true,
      "actual": "korteweg_hall"
    }
  ],
  "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-17T09:45:11.688Z",
  "rendered_at": "2026-09-17T12:57:09.948Z",
  "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": "170f5f6153b30b6c2ac8890c7d6a80a829c63648e01a33577749fcbdb3e956e1",
      "output_schema_sha256": "bf10f686d6e3d6fcf12c21db54d403315ed02b988a7d91539fd42536bf19218a",
      "evidence_sha256": "45f12a1abfdf029a1605dfe16fd7f9ec3252ca0c41a2843c52986c0f7eb832eb",
      "evidence_core_sha256": "45f12a1abfdf029a1605dfe16fd7f9ec3252ca0c41a2843c52986c0f7eb832eb",
      "capability_sha256": "0a658c1f63a3290d8f1b7d070b791dfa717978c421cd669023663713e5085816",
      "engine_sha256": "3a274e9526e8ef09a42dd9a5a2173db0d5ed2458a9b92192df103930b4e43523",
      "mcp_contract_sha256": "c77a372e41c0e20baf484d40ec69bc5e915f0921b6c896f8723c29434c676171"
    },
    "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"
  }
}
