{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.sluice_gate/1.0.0/input.json",
  "title": "Sluice gate — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "flow",
        "opening",
        "head"
      ],
      "description": "flow (default), opening, or head. Not orifice, not thin-plate, not a flume, not Manning, not Q=Av."
    },
    "a": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Vertical gate opening in m. Required for flow and head. Envelope a/y1∈[0.05, 0.65] and a<y1. Alternatives: a_m, opening, gate_opening. Do not send orifice A or d."
    },
    "b": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gate width in m. Required. Alternatives: b_m, width, gate_width. Do not send flume W or weir crest L."
    },
    "y1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Upstream depth in m. Required for flow and opening. Alternatives: y_1, upstream_depth, y_m. Do not send weir H or flume Ha."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Volume flow in m³/s. Required for opening or head invert. Alternatives: flow, Q_m3_s."
    },
    "g": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gravity in m/s². Optional; default 9.80665. Alternative: g_m_s2."
    }
  },
  "required": [
    "b"
  ],
  "description": "Swamee 1992 free-flow undershot sluice Q from opening a, width b, and upstream depth y1. Not tank orifice, not thin-plate weir, not a flume, not Manning, not Q=Av. (calculation_version 1.0.0)"
}
