{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.fluid.critical_slope/1.0.0/input.json",
  "title": "Critical slope — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "slope",
        "discharge"
      ],
      "description": "slope (default, solve Sc) or discharge. Not Manning A,R; not yn; not yc as the unknown."
    },
    "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]."
    },
    "Q": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Volume flow in m³/s. Required for slope. Alternatives: flow, Q_m3_s."
    },
    "Sc": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Critical bed slope (dimensionless). Required for discharge. Alternatives: S_c, S_crit, critical_slope. Do not send bed slope S."
    },
    "g": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Gravity in m/s². Optional; default 9.80665. Alternatives: g_m_s2."
    }
  },
  "required": [
    "b",
    "n"
  ],
  "description": "Rectangular Sc such that yn=yc. SI Manning at y=yc. Not Manning A,R; not normal-depth yn invert; not critical-depth yc as the product; not Chezy C; not Q=Av. (calculation_version 1.0.0)"
}
