{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.iso_venturi.input.json",
  "title": "ISO 5167 Venturi tube — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "flow",
        "pressure",
        "coefficient"
      ],
      "description": "flow (default), pressure, or coefficient. Not venturi invert Cd, not orifice, not Q=Av."
    },
    "D1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Inlet diameter in m. Required. Envelope depends on kind. Alternative: D_inlet. Do not send orifice D+d."
    },
    "D2": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Throat diameter in m. Required unless beta. Alternative: D_throat. Do not mix with beta."
    },
    "beta": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "D2/D1. Alternative to D2. Alternative: diameter_ratio. Envelope depends on kind."
    },
    "Re_D": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Pipe Reynolds number on D1. Required. Envelope depends on kind. Alternatives: Re, ReD. Do not send ρ, μ, v."
    },
    "kind": {
      "type": "string",
      "enum": [
        "machined",
        "rough",
        "as_cast"
      ],
      "description": "machined (default, C=0.995), rough (C=0.985), or as_cast (C=0.984). Alternative: convergent."
    },
    "dP": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Inlet-to-throat 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": [
    "D1",
    "Re_D"
  ],
  "description": "ISO 5167-4 classical Venturi tube Q=C E A2 √(2Δp/ρ) with C from convergent type. Not given C_d=0.98, not ISA 1932, not RHG orifice, not Q=Av, not Darcy. (calculation_version 1.0.0)"
}
