{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.iso_orifice/1.0.0/input.json",
  "title": "ISO 5167 orifice plate — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "flow",
        "pressure",
        "coefficient"
      ],
      "description": "flow (default), pressure, or coefficient. Not tank H invert, not given Cd, not Q=Av."
    },
    "D": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Pipe diameter in m. Required. D in [0.05, 1.0]. Alternative: D_m, pipe_D. Do not send D1+D2."
    },
    "d": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Bore diameter in m. Required unless beta. d ≥ 0.0125 m. Alternatives: d_m, bore, D_bore. Do not mix with beta."
    },
    "beta": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "d/D in [0.10, 0.75]. Alternative to d. Alternative: diameter_ratio."
    },
    "Re_D": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Pipe Reynolds number on D. Required. ≥5000 (β≤0.56) or 16000 β² (β>0.56). Alternatives: Re, ReD. Do not send ρ, μ, v."
    },
    "tapping": {
      "type": "string",
      "enum": [
        "corner",
        "flange"
      ],
      "description": "corner (default) or flange. D-D/2 is out of scope. Alternatives: taps, tap."
    },
    "dP": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Upstream-to-vena differential pressure in Pa. Required for flow. Alternatives: deltaP, dP_Pa, dp."
    },
    "rho": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Density in kg/m³. Required for flow and pressure."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Volume flow in m³/s. Required for pressure invert. Alternative: flow, Q_m3_s."
    }
  },
  "required": [
    "D",
    "Re_D"
  ],
  "description": "ISO 5167-2 orifice plate Q=C E A2 √(2Δp/ρ) with Reader–Harris/Gallagher C from β, Re_D, and tapping. Not tank orifice C_d A √(2gH), not given C_d=0.61, not ISA 1932, not venturi C_d=0.98, not Q=Av, not Darcy. (calculation_version 1.0.0)"
}
