Inputs
Every field a model of an open channel takes, as the engine's schema gives it: what it is, its unit and convention, and its limits.
A model is a JSON document, the same one the studio’s forms build, its AI writes and an agent sends with create_model. Its section has an id, stable and unique in the model (the results name by it the element each check depends on), and a name, shown on the canvas and in the report. Every model states its contract_version, today 8. Units are SI: m, m², m³/s and m/s; the slope is a ratio, m/m.
These are its fields, from the engine’s own schema: what the studio’s forms are built from, and what get_tool_schema gives an agent.
sectiongroup · required
pointslist · required · 3–500 items
The cross-section from one end to the other, both ends higher than the bed. Each bank is the highest point between the bed and that end, and the water rises to the lower one; between the levees every point under its surface flows, as HEC-RAS takes it (a second thalweg, a pool behind a bar), and an end the water stands above rises as a vertical wall.
Each item:
xnumber · required
Horizontal position (m), never smaller than the previous point's.
znumber · required
Elevation (m).
roughnesslist · required
Manning's n of each segment: roughness[i] goes from points[i] to points[i + 1], so one fewer than the points.
bank_stationsgroup · optional
Optional: the main channel's banks, where the section is divided into the main channel and its overbanks (HEC-RAS). Empty, Rischio proposes them: walking out from the bed, where the ground stops rising steeper than 5H:1V; the answer shows where it put them.
leftnumber · required
x of the left bank station (m), a point of the section.
rightnumber · required
x of the right bank station (m), a point of the section right of the left one.
leveesgroup · optional
The section's levees, one on each side (HEC-RAS): the ground behind one carries no water until the water tops it.
left_leveenumber · optional
x of the vertex the left levee stands on (m), between the left end and the bed; on a vertical wall, its top. Empty, the left side's highest point; none, no levee.
right_leveenumber · optional
x of the vertex the right levee stands on (m), between the bed and the right end; on a vertical wall, its top. Empty, the right side's highest point; none, no levee.
bed_slopenumber · required · > 0
Longitudinal slope of the bed (m/m): 0.002 is 0.2 %.
dischargenumber · required · > 0
Discharge Q (m³/s).
designgroup · optional
The designer's limits: the freeboard the water must leave below the lower bank. Empty, the water within the banks judges alone.
limitsnumber · optional
Optional: the designer's limits, by the check's id: freeboard, the least depth (m) the water at its normal depth must stay below the lower bank. Empty, the water within the banks is the only verdict.