{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.broad_crested_weir.input.json",
  "title": "Broad-crested weir — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "flow",
        "head"
      ],
      "description": "flow (default) or head. Not thin-plate rectangular/triangular, not Manning, not orifice, not Q=Av."
    },
    "b": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Crest span in m. Required. Alternatives: width, b_m, crest_width. Do not send thin-plate L or crest."
    },
    "H": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Upstream head above the crest in m. Required for flow. Alternatives: head, H_m. Not energy head."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Volume flow in m³/s. Required for head invert. Alternatives: flow, Q_m3_s."
    },
    "Cd": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Discharge coefficient in (0, 1]. Optional, default 0.85. Alternatives: C_d, cd. Not Francis 3.33."
    },
    "g": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gravity in m/s². Optional, default 9.80665. Alternative: g_m_s2."
    },
    "L_c": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Streamwise crest length in m. Optional ISO 3846 envelope H/L_c in [0.08, 0.50]. Alternatives: Lc, L_crest, crest_length. Not thin-plate L."
    },
    "P": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Weir height in m. Optional envelope H/P ≤ 1.5. Alternatives: P_m, weir_height. Not Manning wetted perimeter."
    }
  },
  "required": [
    "b"
  ],
  "description": "Rectangular broad-crested weir Q=C_d (2/3)^{3/2} b √g H^{3/2}, default C_d=0.85. Not thin-plate weir, not Manning, not Q=Av, not orifice, not Francis 3.33. (calculation_version 1.0.0)"
}
