{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.trapezoid_alternate_depth/1.0.0/input.json",
  "title": "Trapezoidal 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 trapezoid energy|discharge. Not rectangular pair. Not jump sequent."
    },
    "b": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Bottom width in m. Required. Alternatives: width, b_m, channel_width. Do not send side-weir B."
    },
    "z": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Side slope run/rise (z>0). Required. Alternatives: z_side, side_slope, m. z=0 is rectangular /calc/physics/alternate-depth. Do not send a bank angle."
    },
    "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",
    "z",
    "Q"
  ],
  "description": "Trapezoid both y from E, Q, b, z with E=y+Q²/(2gA²), A=(b+z y)y. Not rectangular alternate depth, not trapezoid E, not trapezoid yc, not trapezoid yn, not Manning n, not Q=Av. (calculation_version 1.0.0)"
}
