Overview of Python functions

runSpuis()

Reads the input files, runs SPUIS4.02, writes output files and plots the output.

SPUIS401()

Calls on different Python functions (see below) depending on the content of the supplied input file and returns the results of the SPUIS calculation.

bckwtr(id, ws, debiet, jfn, bm, dn_des, prof_des)

Calculates the minimum up- and downstream water levels for different flow regimes using backwater curves. Friction losses are not taken into account.

benwst(id, ws, debiet, bm, dn_des, prof_des)

Calculates the downstream water level at slices with a critical cross-section.

bovwst(id, ws, debiet, bm, dn_des, prof_des)

Calculates the upstream water level at slices with at critical cross-section.

brnoul(id1, id2, hw1, hw2, debiet, jfn, dn_des, prof_des)

Applies Bernoulli equations and calculates friction losses. Meant for accelerating flow.

brwopp(id, hw, dn_des, prof_des):

Calculates the width of the wetted area at a slice for a given water level.

chezyc(id, hw, dn_des, prof_des)

Calculates the Chézy coefficient per slice and water level using the Colebrook-White equation.

energh(id, hw, debiet, dn_des, prof_des)

Calculates the energyheight with respect to a reference level for each slice, water level and discharge.

froude(id, h, q, dn_des, prof_des)

Calculates the Froude number for each slice, water level and discharge.

grensd(debiet, id, dn_des, prof_des)

Calculates critical depth (at which Fr = 1) for each slice and discharge.

hydstr(id, hw, dn_des, prof_des)

Calculates the hydraulic radius for each slice and water level.

impuls(id1, id2, hw1, hw2, debiet, jfn, bm, dn_des, prof_des)

Applies momentum equations, meant for decelerating flow.

kracht(id, hw, dn_des, prof_des)

Calculates hydrostatic forces for each slice and water level.

minwst(id, ws, debiet, bm, dn_des, prof_des)

Defines minimum water depth for a slice to have a critical cross-section.

opperv(id, hw, dn_des, prof_des)

Calculates the cross-sectional area for each slice and water level.

reknnr(id, ws, debiet, bm, dn_des, prof_des)

Calculates the downstream water level when calculating in the downstream direction.

reknop(id, ws, debiet, bm, dn_des, prof_des)

Calculates the upstream water level when calculating in the upstream direction.

wrrgme(rg)

Defines the different flow regimes (subcritical, critical, supercritical).

wsprng(id1, id2, w1, w2, debiet, dn_des, prof_des)

Hydraulic jump equations, only valid for sections with a horizontal bottom.