{
  "capability_id": "physics.fluid.pipe_period",
  "tool_id": "pipe-period",
  "engine": "pipe-period",
  "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/pipe-period",
  "api": "https://www.calculatorx.com/api/v1/calc/pipe-period",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.pipe_period.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.pipe_period.output.json",
  "assumptions": [
    "Pipe period T = 2L/c; c is a given celerity, not Korteweg–Hall from K, D, e, E",
    "Sudden-closure Joukowsky applies when valve time t < T; this page computes T, not Δp",
    "Not Joukowsky Δp=ρcΔv, not Darcy f, not minor-loss K, not Q=Av"
  ],
  "limitations": [
    "Pipe period T = 2L/c; c is a given celerity, not Korteweg–Hall from K, D, e, E",
    "Sudden-closure Joukowsky applies when valve time t < T; this page computes T, not Δp",
    "Not Joukowsky Δp=ρcΔv, not Darcy f, not minor-loss K, not Q=Av"
  ],
  "boundary_conditions": [
    "missing L, c, or T when required → MISSING_REQUIRED_INPUT",
    "L, c, or T ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "dP/dV/ρ, K/D/e/E, f/Re, n, A/Q, v → MIXED_INPUT_ENCODING",
    "joukowsky, hall, or darcy as mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Length, time, speed",
      "supports": "L is a length; T is a time; c is a speed",
      "kind": "standard"
    },
    {
      "title": "Wylie, E.B. and Streeter, V.L. Fluid Transients",
      "section": "Pipe period 2L/a",
      "supports": "T=2L/c is the round-trip time that distinguishes sudden from gradual closure",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:5caa9d568ab44761d7d2fc17815fe60a4359cac980c5881ffe6b64d22ab80e1b",
  "tests": [
    {
      "id": "golden-pp-T",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "L": 1000,
        "c": 1000
      },
      "expect": {
        "T": 2,
        "L": 1000,
        "c": 1000,
        "mode": "period",
        "model": "pipe_period"
      },
      "expectWarning": null,
      "actual": {
        "mode": "period",
        "T": 2,
        "L": 1000,
        "c": 1000,
        "model": "pipe_period"
      },
      "tol": 1e-12
    },
    {
      "id": "golden-pp-L",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "length",
        "T": 2,
        "c": 1000
      },
      "expect": {
        "L": 1000,
        "model": "pipe_period"
      },
      "expectWarning": null,
      "actual": {
        "mode": "length",
        "T": 2,
        "L": 1000,
        "c": 1000,
        "model": "pipe_period"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-pp-c",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "celerity",
        "T": 2,
        "L": 1000
      },
      "expect": {
        "c": 1000,
        "model": "pipe_period"
      },
      "expectWarning": null,
      "actual": {
        "mode": "celerity",
        "T": 2,
        "L": 1000,
        "c": 1000,
        "model": "pipe_period"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-pp-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "c is required"
    },
    {
      "id": "boundary-pp-dP",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000,
        "c": 1000,
        "dP": 1000000
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Pipe period does not take Joukowsky Δp, Δv, or ρ. That is /calc/physics/water-hammer"
    },
    {
      "id": "boundary-pp-K",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000,
        "c": 1000,
        "K": 2200000000
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Pipe period does not take K, D, e, or E. Give c; wave speed is /calc/physics/wave-celerity"
    },
    {
      "id": "boundary-pp-f",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000,
        "c": 1000,
        "f": 0.02
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Pipe period does not take Darcy f, Re, or minor-loss K"
    },
    {
      "id": "boundary-pp-A",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000,
        "c": 1000,
        "A": 1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Pipe period does not take Q=Av A/Q"
    },
    {
      "id": "boundary-pp-v",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000,
        "c": 1000,
        "v": 1
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Pipe period uses c, not v. That is /calc/physics/pitot-tube"
    },
    {
      "id": "boundary-pp-n",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000,
        "c": 1000,
        "n": 0.013
      },
      "expectError": "MIXED_INPUT_ENCODING",
      "code": "MIXED_INPUT_ENCODING",
      "error": "Pipe period does not take Manning n or Chezy C/R/S"
    },
    {
      "id": "boundary-pp-jouk",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000,
        "c": 1000,
        "mode": "joukowsky"
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be period|length|celerity. Not Joukowsky, Hall, Darcy, or Q=Av"
    },
    {
      "id": "boundary-pp-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "L": 1000,
        "c": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "c must be greater than zero"
    },
    {
      "id": "property-pp-T",
      "ok": true,
      "kind": "property",
      "detail": "T=2L/c",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-pp-roundtrip-L",
      "ok": true,
      "kind": "property",
      "detail": "L invert",
      "expect": 1000,
      "actual": 1000
    },
    {
      "id": "property-pp-roundtrip-c",
      "ok": true,
      "kind": "property",
      "detail": "c invert",
      "expect": 1000,
      "actual": 1000
    },
    {
      "id": "property-pp-double",
      "ok": true,
      "kind": "property",
      "detail": "T=2 at L=c=1000",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-pp-model",
      "ok": true,
      "kind": "property",
      "detail": "pipe_period",
      "expect": true,
      "actual": "pipe_period"
    }
  ],
  "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-17T10:03:09.659Z",
  "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": "05e862ab69bd0cb053abfca638facaeb7ab4364ecbe8f338e41661f730c84f84",
      "output_schema_sha256": "b2002570db2389a561efde18dfc6f856fd07b2b76bd4d8f5e1c0c691decb5f77",
      "evidence_sha256": "d7777979792897987fd1dd346d35bd925609c5dfaf74f67fab8503ff69380a91",
      "evidence_core_sha256": "d7777979792897987fd1dd346d35bd925609c5dfaf74f67fab8503ff69380a91",
      "capability_sha256": "30c591f1f06ffe5ce5713674b44922f562b19fd0f130e3b2c4671799f4306a74",
      "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"
  }
}
