{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.ogee_spillway.input.json",
  "title": "Ogee spillway — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "flow",
        "head"
      ],
      "description": "flow (default) or head. Not thin-plate, not broad-crested, not sluice, not Manning, not Q=Av."
    },
    "L": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Crest length in m. Required. Alternatives: L_m, crest, crest_length. Do not send broad-crested b."
    },
    "H": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Upstream head above the crest in m. Required for flow. Envelope H/Hd∈[0.2, 1.33]. Alternatives: head, H_m. Do not send flume Ha or sluice y1."
    },
    "Hd": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Design head in m. Required. Alternatives: H_d, Hd_m, design_head. Thin-plate weirs have no Hd."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Volume flow in m³/s. Required for head invert. Alternatives: flow, Q_m3_s."
    },
    "P": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Optional spillway height in m. Envelope P/Hd≥1.7. Alternatives: P_m, height, spillway_height."
    }
  },
  "required": [
    "L",
    "Hd"
  ],
  "description": "USBR high-overflow ogee Q from crest L, head H, and design head Hd. Not thin-plate weir, not broad-crested weir, not sluice, not Manning, not Q=Av. (calculation_version 1.0.0)"
}
