{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.normal_depth.input.json",
  "title": "Normal depth — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "depth",
        "discharge"
      ],
      "description": "depth (default, solve yn) or discharge. Not Manning A,R; not yc; not E; not Chezy."
    },
    "b": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Rectangular surface width in m. Required. Alternatives: width, b_m, channel_width. Do not send Manning A or R. Do not send side-weir B."
    },
    "n": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "SI Manning n. Required. Envelope [0.008, 0.15]."
    },
    "S": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Bed slope (dimensionless). Required. Envelope [1e-6, 0.1]. Alternatives: slope, S0, Sf."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Volume flow in m³/s. Required for depth. Alternatives: flow, Q_m3_s."
    },
    "yn": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Normal depth in m. Required for discharge. Alternatives: y_n, depth, y_m, y. Do not send yc or y1."
    }
  },
  "required": [
    "b",
    "n",
    "S"
  ],
  "description": "Rectangular uniform-flow yn from SI Manning with A=b yn and R=b yn/(b+2 yn). Not Manning A,R; not critical depth yc; not specific energy E; not Chezy C; not Q=Av. (calculation_version 1.0.0)"
}
