{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.pipe_entrance.input.json",
  "title": "Pipe entrance — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "head",
        "pressure",
        "velocity"
      ],
      "description": "head (default), pressure, or velocity. Not catalog K, circular-arc, mitered, or Q=Av."
    },
    "kind": {
      "type": "string",
      "enum": [
        "flush",
        "reentrant",
        "rounded"
      ],
      "description": "Inlet geometry. flush (default, K=0.5), reentrant (K=0.8), or rounded (Swamee). Alternative: inlet."
    },
    "inlet": {
      "type": "string",
      "enum": [
        "flush",
        "reentrant",
        "rounded"
      ],
      "description": "Alias of kind."
    },
    "v_m_s": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Mean speed in the pipe in m/s. Required except velocity invert. Alternative: speed. Do not send query v (that is calculation_version)."
    },
    "speed": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Mean speed in m/s (REST alias of v_m_s)."
    },
    "ri_d": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Inlet fillet rᵢ/D. Required for rounded. Alternatives: fillet, r_inlet. Not circular-arc R/D (that is rd on pipe-bend)."
    },
    "h": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Head loss in m. Required for velocity invert. Alternatives: hm, h_m."
    },
    "h_m": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Head loss in m (query/UI). REST may send h."
    },
    "rho": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Density in kg/m³. Optional; default 1000."
    },
    "g": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gravity in m/s². Optional; default 9.80665."
    }
  },
  "description": "Geometric inlet h=K v²/(2g): flush K=0.5, reentrant K=0.8, rounded K=0.5/[1+36(rᵢ/D)^1.2]. Not catalog K, not circular-arc R/D, not mitered n, not Q=Av. (calculation_version 1.0.0)"
}
