You are here

Relation between QC(i) and horizontal flows

Hello, QC(i) is the model variable that contains the flow through the downstream edge of a segment ('i' is segment number) How is this related to the horizontal flows at different depths in a segment? Does QC(i) sum the flows (horizontal or vertical) over all depths? Thanks in advance, Ravi
Forums: 

Hi Ravi, QC(i) is the sum of horizontal flows (all active layers) through the downstream edge of segment i. chris

Thanks, Chris. I) Is there a way I can check that? - I have the QC(i) variable output for every time step for the DeGray example and I want to compare it to the sum of horizontal flows as a check of my code. But I don't know which layers are active at each time step. II) What does a negative value and a -9999 value represent for QC(i) physically? Is there a variable that stores the flow in each layer? III) what is the computational variable that stores elevation data for each timestep? Thanks, Ravi P.

Hi Ravi, I) To check QC(I), you will have to go into the source code (QC is calculated in module w2_36_win.f90) and modify the code and/or use a debugger. II) A negative value for QC means a reverse flow. I don't know what -9999 is about. Also, I don't think there's a variable that stores the flow in each layer. You'll have to multiply the horizontal velocity U by the width and height of the layer. III) ELWS(i) stores the water surface elevation for each segment. chris