You are on page 1of 5

5

PSEUDOCODE

1. Start

2. Display This software will determine the state of flow of a channel by the viscosity and gravity effect

3. Display Which channel shape cross section would you like to choose? Enter rec for rectangular, tri
for triangular or tra for trapezoidal channel section

4. Read Channelshape

5. If (Channelshape = rec)

5.1. Display Enter the water discharge, Q in cubic meter per second

5.2. Read Discharge

5.3. Display Enter the depth of flow, y in meter

5.4. Read Flowdepth

5.5. Display Enter the bottom width, B in meter

5.6. Read Bottomwidth

5.7. Calculate area, A by using the formula:

Area = Flowdepth x Bottomwidth

5.8. Calculate velocity, V by using the formula:

Velocity = Discharge / Area

5.9. Display Area, Velocity

5.10. Calculate top width,T by using the formula:

Topwidth = Bottomwidth

5.11. Calculate hydraulic depth, D by using the formula:

Hydraulicdepth = Area / Topwidth

5.12. Calculate wetted perimeter, P by using the formula:

Wettedperimeter = Bottomwidth + (2 x Flowdepth)

5.13. Calculate hydraulic radius, R by using the formula:

Hydraulicradius = Area / Wettedperimeter

5.14. Calculate Reynolds number by using the formula:

Reynold = (Velocity x Hydraulicradius) / 0.000001004

5.15. Display Reynold


6

5.16. If (Reynold < 500)

5.16.1. Display The flow is laminar by viscosity effect

5.17. Else if (500 < Reynold < 12500)

5.17.1. Display The flow is transitional by viscosity effect

5.18. Else if (Reynold > 12500)

5.18.1. Display The flow is turbulent by viscosity effect

5.19. Calculate Froudes number by using the formula:

Froude = Velocity / (9.81 x Hydraulicdepth)

5.20. Display Froude

5.21. If (Froude < 1)

5.21.1. Display The flow is in subcritical state by gravity effect

5.22. If (Froude = 1)

5.22.1. Display The flow is in critical state by gravity effect

5.23. If (Froude > 1)

5.23.1. Display The flow is in supercritical state by gravity effect

6. Else if (Channelshape = tri)

6.1. Display Enter the water discharge, Q in cubic meter per second

6.2. Read Discharge

6.3. Display Enter the depth of flow, y in meter

6.4. Read Flowdepth

6.5. Display Enter the side slope, in degree

6.6. Read Sideslope

6.7. Calculate side slope specification, z by using the formula:

Slopespec = 1 / (Tan Sideslope)

6.8. Calculate area, A by using the formula:

Area = Slopespec x (Flowdepth x Flowdepth)

6.9. Calculate velocity, V by using the formula:

Velocity = Discharge / Area


7

6.10. Display Area, Velocity

6.11. Calculate top width,T by using the formula:

Topwidth = 2 x Slopespec x Flowdepth

6.12. Calculate hydraulic depth, D by using the formula:

Hydraulicdepth = Area / Topwidth

6.13. Calculate wetted perimeter, P by using the formula:

Wettedperimeter = 2 x Flowdepth x 1 + (Slopespec x Slopespec)

6.14. Calculate hydraulic radius, R by using the formula:

Hydraulicradius = Area / Wettedperimeter

6.15. Calculate Reynolds number by using the formula:

Reynold = (Velocity x Hydraulicradius) / 0.000001004

6.16. Display Reynold

6.17. If (Reynold < 500)

6.17.1. Display The flow is laminar by viscosity effect

6.18. Else if (500 < Reynold < 12500)

6.18.1. Display The flow is transitional by viscosity effect

6.19. Else if (Reynold > 12500)

6.19.1. Display The flow is turbulent by viscosity effect

6.20. Calculate Froudes number by using the formula:

Froude = Velocity / (9.81 x Hydraulicdepth)

6.21. Display Froude

6.22. If (Froude < 1)

6.22.1. Display The flow is in subcritical state by gravity effect

6.23. If (Froude = 1)

6.23.1. Display The flow is in critical state by gravity effect

6.24. If (Froude > 1)

6.24.1. Display The flow is in supercritical state by gravity effect

7. Else if (Channelshape = tra)


8

7.1. Display Enter the water discharge, Q in cubic meter per second

7.2. Read Discharge

7.3. Display Enter the depth of flow, y in meter

7.4. Read Flowdepth

7.5. Display Enter the bottom width, B in meter

7.6. Read Bottomwidth

7.7. Display Enter the side slope, in degree

7.8. Read Sideslope

7.9. Calculate side slope specification, z by using the formula:

Slopespec = 1 / (Tan Sideslope)

7.10. Calculate area, A by using the formula:

Area = (Bottomwidth x Flowdepth) + (Slopespec x (Flowdepth x Flowdepth))

7.11. Calculate velocity, V by using the formula:

Velocity = Discharge / Area

7.12. Display Area, Velocity

7.13. Calculate top width,T by using the formula:

Topwidth = Bottomwidth + (2 x Slopespec x Flowdepth)

7.14. Calculate hydraulic depth, D by using the formula:

Hydraulicdepth = Area / Topwidth

7.15. Calculate wetted perimeter, P by using the formula:

Wettedperimeter = Bottomwidth + (2 x Flowdepth x 1 + (Slopespec x Slopespec)

7.16. Calculate hydraulic radius, R by using the formula:

Hydraulicradius = Area / Wettedperimeter

7.17. Calculate Reynolds number by using the formula:

Reynold = (Velocity x Hydraulicradius) / 0.000001004

7.18. Display Reynold

7.19. If (Reynold < 500)

7.19.1. Display The flow is laminar by viscosity effect


9

7.20. Else if (500 < Reynold < 12500)

7.20.1. Display The flow is transitional by viscosity effect

7.21. Else if (Reynold > 12500)

7.21.1. Display The flow is turbulent by viscosity effect

7.22. Calculate Froudes number by using the formula:

Froude = Velocity / (9.81 x Hydraulicdepth)

7.23. Display Froude

7.24. If (Froude < 1)

7.24.1. Display The flow is in subcritical state by gravity effect

7.25. If (Froude = 1)

7.25.1. Display The flow is in critical state by gravity effect

7.26. If (Froude > 1)

7.26.1. Display The flow is in supercritical state by gravity effect

8. Display Enter 0 to stop and enter 1 to continue

9. Read stop

10. End

You might also like