{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.minor_loss.input.json",
  "title": "Minor loss — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "head_loss",
        "K",
        "velocity"
      ],
      "description": "head_loss (default), K, or velocity. Not Darcy, Hazen–Williams, orifice, or Q=Av."
    },
    "K": {
      "type": "number",
      "minimum": 0,
      "description": "Minor-loss coefficient. Required except K invert. Alias k."
    },
    "v": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Mean velocity in m/s. Required except velocity invert. Not Q from Q=Av."
    },
    "hm": {
      "type": "number",
      "minimum": 0,
      "description": "Minor-loss head in m. Required for K and velocity invert. Alternative: hf. Do not send with head_loss."
    },
    "rho": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Density in kg/m³. Optional; reports Δp = ρ g h_m."
    },
    "g": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gravity in m/s². Default 9.80665."
    }
  },
  "description": "Fitting minor loss h_m=K v²/(2g). Optional Δp=ρ g h_m. Invert K or v. Not Darcy, not Hazen–Williams, not orifice, not Q=Av, not equivalent length. (calculation_version 1.0.0)"
}
