{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.alternate_depth/1.0.0/input.json",
  "title": "Alternate depth — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "depths",
        "energy"
      ],
      "description": "depths (default, both y from E) or energy (invert E from one y). Not specific-energy depth|velocity. Not jump sequent."
    },
    "b": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Rectangular surface width in m. Required. Alternatives: width, b_m, channel_width. Do not send side-weir B."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Volume flow in m³/s. Required. Alternatives: flow, Q_m3_s."
    },
    "E": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Specific energy in m. Required for depths. Alternatives: energy, E_m. Do not send M."
    },
    "y": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "One flow depth in m. Required for energy. Alternatives: y_m, depth. Do not send y1, y2, yn, or yc."
    },
    "g": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gravity in m/s². Optional; default 9.80665. Alternatives: g_m_s2."
    }
  },
  "required": [
    "b",
    "Q"
  ],
  "description": "Rectangular both y from E, Q, b with E=y+Q²/(2gA²). Not specific energy E from y+v, not specific force M, not hydraulic jump y2, not critical depth yc as the product, not Manning n, not Q=Av. (calculation_version 1.0.0)"
}
