{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.pump/1.0.0/input.json",
  "title": "Pump power — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "power",
        "affinity"
      ],
      "description": "power (default, P_h=ρgQH) or affinity laws. Not orifice, weir, Manning, Darcy, NPSH, or Q=Av."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Volume flow in m³/s. Power mode. With H computes P; with P computes H."
    },
    "H": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Pump head in m. Power mode. Alternative: dP. Do not send both."
    },
    "dP": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Pressure rise in Pa. Power-mode alternative to H. Do not send both."
    },
    "P": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Shaft power in W. Inverts H or Q, or with Q and H solves η."
    },
    "eta": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1,
      "description": "Overall pump efficiency. Default 1. Must be in (0, 1]. Not used in affinity."
    },
    "rho": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Density in kg/m³. Default 1000. Power mode."
    },
    "g": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gravity in m/s². Default 9.80665. Power mode."
    },
    "Q1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Known flow in m³/s. Affinity."
    },
    "H1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Known head in m. Affinity."
    },
    "P1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Known shaft power in W. Affinity optional; scales P2∝N³D³."
    },
    "N1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Known rotational speed. Same unit as N2."
    },
    "N2": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Scaled rotational speed. Give with N1."
    },
    "D1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Known impeller diameter. Same unit as D2."
    },
    "D2": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Scaled impeller diameter. Give with D1."
    }
  },
  "description": "Pump hydraulic and shaft power P_h=ρgQH, P=P_h/η, plus affinity Q∝ND, H∝N²D², P∝N³D³. Not an orifice, not a weir, not Q=Av, not Darcy, not NPSH. (calculation_version 1.0.0)"
}
