Post Reply 
Pipe Flow - Open Channel Flow
01-10-2017, 11:27 PM
Post: #7
RE: Pipe Flow - Open Channel Flow
The reason I used a BREAK(2) was because I wanted the program to print an error message and show the message on the terminal screen, when the flow rate exceeds the capacity of the pipe for open channel flow. If I used a single BREAK, the program execution exited the FOR loop, but continued with the code below the FOR loop. I wanted to skip the rest of the code block in the IF Q>0.00001 statement, so right or wrong, I used a BREAK(2).

The following problem would trigger an error message where the flow rate exceeds the capacity of the pipe. The trigger is when the when DEPTH1 in the loop reaches DIAM.

UNITS = 1
Pipe Diameter (DIAM) = 500 mm
DEPTH = 0 (Thus solve for depth)
Slope S= 0.009
Manning N = 0.013
Flowrate Q = 2 m^3/s

Now that I think about, the second break in the BREAK(2) statement might be exiting the BEGIN/END code of the main program. That would explain why angle mode was not being restored to the original values.


Attached File(s)
.zip  PIPE2Break.zip (Size: 2.99 KB / Downloads: 9)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Pipe Flow - Open Channel Flow - Gene222 - 12-17-2016, 08:09 PM
RE: Pipe Flow - Open Channel Flow - Dieter - 12-18-2016, 06:17 PM
RE: Pipe Flow - Open Channel Flow - Han - 01-10-2017, 05:47 PM
RE: Pipe Flow - Open Channel Flow - Gene222 - 01-10-2017 11:27 PM



User(s) browsing this thread: 1 Guest(s)