For an extended discussion of the Dynamic Wave equations is referred to textbooks on hydraulic modelling and hydrology
(Chow and Chanson).
The most important equation used is to calculate for each iteration step the dynamic flow as a function of water level and slope in water surface (Manning equation):
In which Aact is the wetted surface, calculated from the ChannelBottomWidth, ChannelForm and Hin (water level), R is the wet perimeter, calculated from ChannelBottomWidth, ChannelForm and Hin, and Sf is the slope in water surface, so the waterlevel upstream minus waterlevel downstream cell.
The volume of water in each cell is updated for the outflow of that cell and the inflow from above cells. Based on the new volume, a new water level H is calculated.
This set of equations is evaluated through the entire channel network, for iteration steps which are equal to TimeStepsInSeconds/NrOfTimeSlices.
The approach taken for structures is a generic approach, which defines outflow from or overflow over the structure using the formula
Boundary conditions for the dynamic wave should be modelled as fixed water levels. In the situation of a fixed water level, within the dynamic section the points with fixed water levels should overwrite the results of the water level before using them in the next timestep.
Example:
initial
FixedWaterLevel = Level.map;
FixedPoints = Points.map;
Hin = InitialWaterLevel;
dynamic
…
DynWaveQ, DynWaveH = dynamicwaveq,dynamicwaveh(LDD,Qin, Hin, ………);
Hin = if(FixedPoints then FixedWaterLevel else DynWaveH);
…