{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.submerged_weir/1.0.0/input.json",
  "title": "Submerged weir — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "flow",
        "head"
      ],
      "description": "flow (default, Qs) or head (invert H2). Not weir rectangular|triangular."
    },
    "L": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Crest length in m. Required. Alternatives: L_m, crest. Not broad-crested b, not side-weir B."
    },
    "H1": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Upstream head above crest in m. Required. Alternatives: H_1, h1, upstream_head. Do not send free-flow H."
    },
    "H2": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Downstream head above crest in m. Required for flow. Alternatives: H_2, h2, downstream_head. Envelope H2/H1∈[0.20, 0.95]. Not ogee Hd, not Parshall Hb."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Submerged discharge Qs in m³/s. Required for head. Alternatives: flow, Q_m3_s, Qs."
    },
    "Cd": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Thin-plate C_d for Qf. Optional; default 0.62. Must be ≤ 1. Alternatives: C_d, cd."
    }
  },
  "required": [
    "L",
    "H1"
  ],
  "description": "Villemonte rectangular submerged weir: Qs=Qf [1−(H2/H1)^{1.5}]^{0.385} on thin-plate Qf. Not free-flow H only, not ogee Hd, not side weir B+Q1, not Manning n, not Q=Av. (calculation_version 1.0.0)"
}
