Está en la página 1de 82

Canales

Channels

Aplicaciones, chequeo y deducciones


Applications, checking and deductions

Canales circulares Canales circulares, condiciones críticas


Circular channels Circular channels, critical conditions

Canales semicirculares Canales semicirculares, condiciones críticas


Semicircular channels Semicircular channels, critical conditions

Canales rectangulares Canales rectangulares, condiciones críticas


Rectangular channels Rectangular channels, critical conditions

En la hoja " Resumen de canales" se muestra la aplicación de estas funciones, a través de ejemplos
In sheet "1. Resumen de canales" is shwon the application of this function by means of examples
Carlos J. Cruz. Rev. 09/09/2012
Canal circular Canal semicircular
Input Input
Q= 0.5 m3/s Q= 0.5 m3/s
D= 0.6 m D= 0.602 m
N= 0.011 - N= 0.011 -
S= 0.02 m/m S= 0.02 m/m

Output Output

Height H= Channel_Circular_Height_Q_D_N_S(Q, D, N, S) Height h= Channel_SemiCircular_Height_Q_D_N_S(Q;D; N;S)


H= #VALUE! m h= #VALUE! m

Area A= Channel_Circular_Area_Q_D_N_S(Q, D, N, S) Area A= Channel_SemiCircular_Area_Q_D_N_S(Q; D; N; S)


A= #VALUE! m² A= #VALUE! m²

TopWidth T= Channel_Circular_Top_Width_Q_D_N_S(Q; D; N; S) Top width T= Channel_SemiCircular_Top_Width_Q_D_N_S(Q; D;N; S)


#VALUE! T= #VALUE! m

Froude Fr = Channel_Circular_Froude_Q_D_N_S(Q, D, N, S) Froude Fr = Channel_SemiCircular_Froude_Q_D_N_S(Q; D; N; S)


Fr = #VALUE! - FR = #VALUE! -

WettedPerimeter P= Channel_Circular_Wetted_Perimeter_Q_D_N_S(Q;D;N;S) WettedPerimeter P= Channel_SemiCircular_Wetted_Perimeter_Q_D_N_S


P= #VALUE! P= #VALUE! m

Hydraulic radius Rh = Channel_Circular_Hydraulic_Radius_Q_D_N_S(Q; D; N;S) Hydraulic radius Rh = Channel_SemiCircular_Hydraulic_Radius_Q_D_N_S(Q; D; N; S)


Rh = #VALUE! m Rh = #VALUE! m

Velocity v= Channel_Circular_Velocity_Q_D_N_S(Q; D;N; S) Velocity v= Channel_SemiCircular_Velocity_Q_D_N_S(Q; D; N; S)


v= #VALUE! m/s v= #VALUE! m/s

Energy E= Channel_Circular_Energy_Q_D_N_S(Q, D, N, S) Energy E= Channel_SemiCircular_Energy_Q_D_N_S(Q; D; N; S)


E= #VALUE! m E= #VALUE! m

HtoD_ratio HtoD = Channel_Circular_H_to_D_ratio_Q_D_N_S(Q; D; N; S) H to D ratio HtoD = Channel_SemiCircular_H_to_D_ratio_Q_D_N_S(Q; D; N; S)


HtoD = #VALUE! - HtoD = #VALUE! -

1. Rsumen de canales
2.- Canales circulares. Aplicaciones, chequeo y deducciones
Circular channel. Applications, checking and deduction cjc. Rev. 21.07.2012

Input
Q= 0.5 m3/s
D= 0.6 m
N= 0.011 -
S= 0.02 m/m Checking against Hcanales

Output

Heigth H= Channel_Circular_Height_Q_D_N_S(Q, D, n, S)
H= #VALUE! m

Area A= Channel_Circular_Area_Q_D_N_S(Q, D, n, S)
A= #VALUE! m²

TopWidth T= Channel_Circular_Top_Width_Q_D_N_S(Q; D; n; S)
#VALUE!

Froude Fr = Channel_Circular_Froude_Q_D_N_S(Q, D, n, S)
Fr = #VALUE! -

WettedPerimeter P= Channel_Circular_Wetted_Perimeter_Q_D_N_S(Q;D;n;S)
P= #VALUE!

Hydraulic radius Rh = Channel_Circular_Hydraulic_Radius_Q_D_N_S(Q; D; n;S)


Rh = #VALUE! m

Velocity v= Channel_Circular_Velocity_Q_D_N_S(Q; D;n; S)


v= #VALUE!

Energy E= Channel_Circular_Energy_Q_D_N_S(Q, D, n, S)
E= #VALUE! m

HtoD_ratio HtoD = Channel_Circular_H_to_D_ratio_Q_D_N_S(Q; D; n; S)


HtoD = #VALUE! -

Dedución de las relaciones para canales circulares


Deduction of circular channels relations

2.- Canal circular


3.- Canal circular, condiciones críticas. Aplicaciones, chequeo y deducción Chequeo con Hcanales
Circular channel, critical conditions. Applications, checking and deduction cjc. Rev. 21.07.2012 Checking against Hcanales

Input
Q= 0.5 m3/s
D= 0.602 m

Output

Critical_Heigth Hc = Channel_Circular_Critical_Height_Q_D(Q; D)
Hc = #VALUE!

Critical_Area Ac = Channel_Circular_Critical_Area_Q_D(Q; D)
Ac = #VALUE! m²

Critical_T Tc = Channel_Circular_Critical_Top_Width_Q_D(Q; D)
Tc = #VALUE!

Critical_Froude Fr_c = Channel_Circular_Critical_Froude_Q_D(Q; D)


Fr_c = #VALUE!

Critical_P Pc = Channel_Circular_Critical_Wetted_Perimeter_Q_D(Q; D)
Pc = #VALUE!

Critical_Rh Rh_c = Channel_Circular_Critical_Hydraulic_Radius_Q_D(Q; D)


Rh_c = #VALUE!

Critical_velocity vc = Channel_Circular_Critical_Velocity_Q_D(Q; D)
vc = #VALUE!

Critical_Energy Ec = Channel_Circular_Critical_Energy_Q_D(Q; D)
Ec = #VALUE!

Critical_HtoD HtoDc = Channel_Circular_Critical_H_to_D_ratio_Q_D(Q; D)


HtoDc = #VALUE!

fc = Channel_Circular_Critical_Angle_fi_Q_D
fc = #VALUE! rad

N= 0.011
Sc = Channe_Circular__Critical_Slope_Q_D_N
Sc = #VALUE! m/m
Sc = #VALUE! %

3.- Canal circular-critico


Nota. Hcanales, no entrega solución para Q = 0.5 m³/s y D = 0.6 m. Note. Hcanales, does not give a solution for Q = 0.5 m³/s and D = 0.6 m.
Indica: El tirante es mayor que el diámetro It indicates, the value "T" is greater than the diameter.
Sin embargo, el valor del tirante es Tc = #VALUE! valor menor que el diámetro but, the "T" value is Tc = #VALUE! m
and the diameter is D= 0.6 m
Thus, Tc < D and therefore the case has a solution

Input
Q= 0.5 m3/s
D= 0.6 m

Output

C1_Critical_Area Ac = Channel_Circular_Critical_Area_Q_D(Q; D)
Ac = #VALUE! m²

C2_Critical_Energy Ec = Channel_Circular_Critical_Energy_Q_D(Q; D)
Ec = #VALUE!

C3_Critical_Froude Frc = Channel_Circular_Critical_Froude_Q_D(Q; D)


Frc = #VALUE!

C4_Critical_Heigth Hc = Channel_Circular_Critical_Height_Q_D(Q; D)
Hc = #VALUE!

C5_Critical_HtoD HtoDc = Channel_Circular_Critical_H_to_D_ratio_Q_D(Q; D)


HtoDc = #VALUE!

C6_Critical_Rh Rhc = Channel_Circular_Critical_Hydraulic_Radius_Q_D(Q; D)


Rhc = #VALUE!

C7_Critical_T Tc = Channel_Circular_Critical_Top_Width_Q_D(Q; D)
Tc = #VALUE!

C8_Critical_velocity vc = Channel_Circular_Critical_Velocity_Q_D(Q; D)
vc = #VALUE!

C9_Critical_P Pc = Channel_Circular_Critical_Wetted_Perimeter_Q_D(Q; D)
Pc = #VALUE!

Pendiente crítica
Sc = Channel_Circular_Critical_Slope_Q_D_N
Q= 0.5
D= 0.6
N= 0.011
Sc = #VALUE! -

Dedución de las relaciones para el flujo crítico en canales circulares

El Froude se define como

v y con
Fr=

√(g⋅
A
T ) A=
D
4
2

[ 1
( π −ϕ ) + ⋅seno( 2⋅ϕ )
2 ] Fr 2 =
64 Q 2 sin( ϕ )
⋅ ⋅
g d5
[
π −ϕ +
sin( 2⋅ϕ )
2
3

]
2 v2 2
Fr = Q T
A Fr 2 = ⋅
g⋅
T( ) ( [ d2
4
⋅ π −ϕ+
sin( 2⋅ϕ )
2
3

])
g Fr^2 = (64/g) * (Q^2/d^5) * seno(f) / (pi()-f+(1/2*seno(2*f)))^3

2 Relación aplicada en el código


Q 1
Fr 2 = ⋅ Q
2
T Fr^2 = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))
A2 A Fr 2 =
( )
g⋅
T d6

64 [
π−ϕ+
2

sin(2⋅ϕ ) g
]
3
Como se busca el ángulo crítico, la ecuación se resuelve para el caso "Fr = 1"

Q2 T Q 2
d⋅sin( ϕ) Se parte el cálculo con un valor muy pequeño del ángulo fi y se itera hasta que el flujo
Fr 2 = 3⋅ Fr 2 = ⋅
A g 3 g
d6
64
π−ϕ+
[
sin(2⋅ϕ)
2 ] 3.- Canal circular-critico
2
Fr 2 =
Q T Q2 d⋅sin( ϕ)
⋅ Fr 2 = ⋅ calculado "Qcalc" toma un valor suficientemente cercano al valor de "Q"
A3 g 3 g
d6
64[π−ϕ+
sin(2⋅ϕ)
2 ]

3.- Canal circular-critico


3a.- Pendiente crítica y angulo crítico de canal circular. Deducción
Critical slope and angle for a circular channel. Deduction cjc. Rev. 21.07.2012

f
Nivel del fluido 2 1
A⋅R h3⋅S 2⋅N

Area de flujo Perímetro mojado


Flow area A= Wetted perimeter

π ϕ P=D⋅( π −ϕ )
A = ⋅D 2 − ⋅D 2 +2⋅( 1/ 2⋅r⋅seno ( ϕ )⋅r⋅cos ( ϕ ) ) Radio hidráulico
4 4
Hydraulic radius
π ϕ D D A
A = ⋅D 2 − ⋅D 2 +( ⋅seno( ϕ )⋅ ⋅cos ( ϕ )) Rh =
4 4 2 2 P
2

[
2
π ϕ D 1 D 1
A = ⋅D 2 − ⋅D 2 + ( ⋅2⋅seno (ϕ )⋅cos (ϕ )) ( π −ϕ ) +
4 4 4 2 4 2
Rh =
2 2 D⋅( π−
D D 1
A = ( π−ϕ )+ ( ⋅seno (2⋅ϕ ))
4 4 2 Rh =
D
4 [
( π−ϕ ) + ⋅
1
2
( π−ϕ
D2
A=
4 [ 1
( π −ϕ ) + ⋅seno( 2⋅ϕ )
2 ] Rh =
D
4 [ 1
( π −ϕ ) + ⋅
2

Flujo de acuerdo a Manning


Flow according Manning
2 1
A Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
Q= ⋅Rh 3⋅S 2
N
2
D
[1
( π −ϕ ) + ⋅seno (2⋅ϕ ) ]
Q=
4 2
N

D
4
1
{ [
( π −ϕ ) + ⋅seno (2⋅ϕ ) ⋅( π −ϕ )−1
2 ] }
[( π −ϕ ) +
1
2
⋅seno ( 2⋅ϕ ) ⋅¿ ]
¿
2 1

2 3 2
¿ 3
( π− ϕ ) ⋅S

Q=
D
10
8
3 [( π − ϕ )+
1
2
⋅seno ( 2⋅ϕ )
] ⋅¿
3
N
2
¿
[( π −ϕ ) +
1
2
⋅seno ( 2⋅ϕ ) ⋅¿ ]
¿
2 1

2 3 2
¿ 3
( π− ϕ ) ⋅S

Q=
D
10
8
3 [ ( π − ϕ )+
1
2
⋅seno ( 2⋅ϕ ) ]
⋅¿
3
N
2
¿

[( π − ϕ) +
1
2
⋅seno ( 2⋅ϕ ) ]
⋅¿
¿
2 1

2 3 2
¿3
( π − ϕ) ⋅S ⋅N − 1
8 −10
Q= D 3
⋅2 3
⋅[ ( π − ϕ) +
1
2
⋅seno ( 2⋅ϕ ) ]
¿

8 −10 5 2 1

[ 1
]

3 3 3
Q=D ⋅2 ⋅ ( π −ϕ ) + ⋅seno (2⋅ϕ) ⋅( π −ϕ ) ⋅S 2⋅N −1
3
2
Relación aplicada en el código
Relation applied in the code
Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

2
Determinación del número de
Froude Fr = Fr(Q,D,fi) A=
D
4
1
[
( π −ϕ ) + ⋅seno( 2⋅ϕ )
2 ]
v 2
Fr= Fr 2 =
Q
√ g⋅Lc D2
3

Fr=
Q 1 ( [ 4
1
⋅ ( π −ϕ )+ ⋅seno( 2⋅ϕ )
2 ])
A √ g⋅Lc
T =D⋅seno( ϕ )
2
v
Fr 2 = Q2
g⋅Lc Fr =2
3

D2
Fr 2 =
Q
A
2
1
2 g⋅Lc
( [ 4
1
⋅ ( π −ϕ )+ ⋅seno( 2⋅ϕ )
2 ])
2
A Q s
Lc = Fr 2 = 3

D5
T

Fr 2 =
Q T
2 64 [ 1
⋅ ( π −ϕ ) + ⋅seno ( 2⋅ϕ )
2 ]
A 2 g⋅A 2
seno ( ϕ )
64 Q
Q T 2 Fr 2 = ⋅
g D5
Fr 2 =
A3 g [ 1
( π− ϕ )+ ⋅seno( 2⋅ϕ )
2 ]
La programación en este caso consiste en dos etapas:
1.- Determinación del ángulo crítico "fic" para que se produzca flujo crítico, mediante un procedimiento iterativo.
2.- Conocido el ángulo crítico "fic", se calcula en forma directa la pendiente crítica S c.

The programe is realized in two steps


1.- Determination of the critical angle "fic" to obtain critical flow, by iteration
2.- For the known critical angle, the critical slope S c is calculated directly

Determinación del ángulo "f" para Froude crítico


Determination of the angle "f" for critical Froude

Q= 0.5
D= 0.602
fc = Channel_Circular_Critical_Angle_fi_Q_D
fc = #VALUE! rad

Se comprueba que con este ángulo, el número de Froude es la unidad


It is checked, that for this angle the Froude number is the unity.
Fr^2= (64/g) * (Q^2 / D^5) * seno(f) / ( (Pi - f) + 0.5 * seno(2*f) )^3
g= 9.80665
p= 3.14159265
fc = #VALUE!
Fr^2= #VALUE!
Fr = #VALUE!

Determinación de la pendiente para obtener Froude Crítico


Determination of the slope for critical Froude
Sc = S(Q, D, N)

Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

8 −10 5 2 1

[ 1
]

Q=D ⋅2 3 3
⋅ ( π −ϕ ) + ⋅seno ( 2⋅ϕ ) 3⋅( π −ϕ ) 3⋅S 2⋅N −1
2
8 −10 5 2 1

[ 1
]

Q=D ⋅2 3 3
⋅ ( π −ϕ ) + ⋅seno ( 2⋅ϕ ) 3⋅( π −ϕ ) 3⋅S 2⋅N −1
2
1
2 Q
S = 8 −10 2
5

[ ]

1
D ⋅2 3 3
⋅ ( π− ϕ ) + ⋅seno( 2⋅ϕ ) 3⋅( π −ϕ ) 3⋅N−1
2
2
Q
S= 16 −20 4
10

[ 1
]

3 3 3 ⋅( π−ϕ ) 3⋅N −2
D ⋅2 ⋅ ( π−ϕ ) + ⋅seno ( 2⋅ϕ )
2
S= Q^2 / (D^(16/3) * 2^(-20/3) * ((PI - fi) + 0.5 * seno(2*fi))^(10/3)*(Pi - fi)^(-4/3)*N^(-2
Q= 0.5
D= 0.602
Pi = 3.14159265
fc = #VALUE!
N= 0.011
S= #VALUE! Pendiente para el Froude crítico
Slope for critical Froude

Angulo para lapendiente crítica


Angle for critical slope
f= Channel_Circular_Critical_Angle_fi_Q_D
f= #VALUE! rad

Pendiente crítica
Critical slope
Sc = Channel_Circular_Critical_Slope_Q_D_N
Sc = #VALUE! -
Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
Datos de entrada
2 1 Input data
Q= A⋅Rh ⋅S 2⋅N −1
3
Q= 0.5 m3/s Ac =
D= 0.6 m Rh_c =
2 1
A⋅R h3⋅S 2⋅N−1 =Q Pendiente
Slope
1 2 S= Q^2 * A^(-2) * Rh^(-4/3) * N^2

2 3 Q= 0.5 m3/s
S =Q⋅A−1⋅R h ⋅N A= #VALUE! m²
4 Rh = #VALUE! m

S=Q ⋅A ⋅R h ⋅N 2
2 −2 3 N= 0.011
S= #VALUE! m/m
S= #VALUE! %

Variables calculadas
Perímetro mojado Calculated variables
Wetted perimeter C1_Critical_A Ac = Channel_Circular_Critical_Area_Q_D(Q;
Ac = #VALUE! m²
P=D⋅( π −ϕ )
Radio hidráulico C2_Critical_E Ec = Channel_Circular_Critical_Energy_Q_D(
Hydraulic radius Ec = #VALUE!

A C3_Critical_F Fr_c = Channel_Circular_Critical_Froude_Q_D(


Rh =
P Fr_c = #VALUE!
2

Rh =
D
4 [ 1
( π −ϕ ) + ⋅seno( 2⋅ϕ )
2 ] C4_Critical_H Hc =
Hc =
Channel_Circular_Critical_Height_Q_D(Q
#VALUE!
D⋅( π−ϕ )
C5_Critical_H HtoDc = Channel_Circular_Critical_H_to_D_ratio_

Rh =
D
4 [ 1
( π−ϕ ) + ⋅seno ( 2⋅ϕ )
2 ] HtoDc = #VALUE!

( π−ϕ ) C6_Critical_R Rh_c = Channel_Circular_Critical_Hydraulic_Rad


Rh_c = #VALUE!
Rh =
D
4 [ 1
( π −ϕ ) + ⋅seno( 2⋅ϕ ) ⋅( π−ϕ )−1
2 ] C7_Critical_T Tc = Channel_Circular_Critical_Top_Width_Q
Tc = #VALUE!

C8_Critical_ve vc = Channel_Circular_Critical_Velocity_Q_D
vc = #VALUE!

C9_Critical_P Pc = Channel_Circular_Critical_Wetted_Perim
Pc = #VALUE!

2 1

]
seno (2⋅ϕ ) ⋅( π −ϕ )
−1 3
} ⋅S 2

]
ϕ ) ⋅¿

( 2⋅ϕ )
] ⋅¿
ϕ ) ⋅]
¿

( 2⋅ϕ ) ]
⋅¿

2⋅ϕ ) ]
⋅¿

⋅N − 1

⋅seno ( 2⋅ϕ ) ⋅¿ ]
2 1
3 2
⋅S ⋅N −1

/ 2)^(5/3) * (Pi - fi)^(-2/3)

1
+ ⋅seno( 2⋅ϕ )
2 ]
2
Q T
3

g
1
−ϕ )+ ⋅seno( 2⋅ϕ )
2 ])
Q2 D⋅seno ( ϕ )
3

g
1
−ϕ )+ ⋅seno( 2⋅ϕ )
2 ])
2
Q seno( ϕ )
3

g
1
ϕ ) + ⋅seno ( 2⋅ϕ )
2 ]
seno ( ϕ )
3
1
π− ϕ )+ ⋅seno( 2⋅ϕ )
2 ]

rocedimiento iterativo.
f
Nivel del fluido

/ 2)^(5/3) * (Pi - fi)^(-2/3)

2 1

3 2
⋅S ⋅N −1

1
2
⋅S ⋅N −1
fi))^(10/3)*(Pi - fi)^(-4/3)*N^(-2))

ude crítico
#VALUE! m²
#VALUE!

r_Critical_Area_Q_D(Q; D)

r_Critical_Energy_Q_D(Q; D)

r_Critical_Froude_Q_D(Q; D)

r_Critical_Height_Q_D(Q; D)

r_Critical_H_to_D_ratio_Q_D(Q; D)

r_Critical_Hydraulic_Radius_Q_D(Q; D)

r_Critical_Top_Width_Q_D(Q; D)

r_Critical_Velocity_Q_D(Q; D)

r_Critical_Wetted_Perimeter_Q_D(Q; D)
Semi-circular channel. Applications and deduction cjc. Rev. 21.07.2012

Input
Q= 0.5 m3/s
D= 0.602 m
n= 0.011 -
S= 0.02 m/m

Output

Heigth hn = Channel_SemiCircular_Height_Q_D_N_S(Q;D; n;S)


hn = #VALUE! m

Area A= Channel_SemiCircular_Area_Q_D_N_S(Q; D; n; S)
A= #VALUE! m²

Top width T= Channel_SemiCircular_Top_Width_Q_D_N_S(Q; D;n; S)


T= #VALUE! m

Froude Fr = Channel_SemiCircular_Froude_Q_D_N_S(Q; D; n; S)
FR = #VALUE! -

WettedPerimeter P= Channel_SemiCircular_Wetted_Perimeter_Q_D_N_S
P= #VALUE! m

Hydraulic radius Rh = Channel_SemiCircular_Hydraulic_Radius_Q_D_N_S(Q; D; n; S)


Rh = #VALUE! m

Velocity v= Channel_SemiCircular_Velocity_Q_D_N_S(Q; D; n; S)
v= #VALUE! m/s

Energy E= Channel_SemiCircular_Energy_Q_D_N_S(Q; D; n; S)
E= #VALUE! m

H to D ratio HtoD = Channel_SemiCircular_H_to_D_ratio_Q_D_N_S(Q; D; n; S)


HtoD = #VALUE! -

4- Canal semicircular
5.- Canal semicircular. Aplicaciones y deducción
Semicircular channel, critical conditions cjc. Rev. 21.07.2012

Input
Q= 0.5 m3/s
D= 0.602 m
N 0.011 -
S= 0.02 -

Output

Critical_velocity vc = Channel_SemiCircular_Critical_Velocity_Q_D_N_S H
vc = #VALUE! m/s

Critical_Heigth Hc = Channel_SemiCircular_Critical_Height_Q_D_N_S
Hc = #VALUE! m

Critical_Energy Ec = Channel_SemiCircular_Critical_Energy_Q_D_N_S
Ec = #VALUE! m

Critical Hydraulic Rad. Rhc = Channel_SemiCircular_Critical_Hydraulic_Radius_Q_D_N_S


Rhc = #VALUE! m

El Froude se define como

v Q2 π
−3
Fr=

√( g⋅
A
T )
Fr =2
g 8 [
⋅ ⋅D 2 + D⋅f ] ⋅D
v
Fr=

√ ( AT )
g⋅

2 Fr^2 = (Q^2/g)*( D^2*Pi/8 + D*f)^(-3)*D


v
Fr 2 =
( TA )
g⋅

2
Q 1
Fr 2 = ⋅
A2 A
g⋅ ( )
T

2
Q T
2
Fr = 3⋅
A g
2
Q
Fr 2 = ⋅A−3⋅T
g

A= [ π
8
2
⋅D + D⋅f ]
If H > D/2
T =D

Function Channel_SemiCircular_Critical_Velocity_Q_D_N_S(Q, D, N, S)

'Constants 07.01.2011
Pi = 4 * Atn(1)
g = 9.80665

'Control constants
'Difference between calculated and given flow (Qcalc - Q), at which the iteration stops
DFstop = 1 / 10000
'Minimum semiangle to start calculation
aQmin = Pi - 1 / 1000 / 10
'Semiangle at which the flowrate will have its maximum value
aQmax = 0.502534296493009
'Initial increment for the semiangle
Dfi = (aQmin - aQmax) / 4

'Cálculo del flujo si la canaleta va con el área semicircular llena ( fi = Pi/2)


'Flujo de acuerdo a Manning
'Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
'Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

Qref = (S) ^ (0.5) * N ^ (-1) * (D) ^ (8 / 3) * (2) ^ (-10 / 3) * (Pi - Pi / 2 + Sin(2 * Pi / 2) / 2) ^ (5 / 3) * (Pi - Pi / 2) ^ (-2 / 3)

'Si la canaleta lleva un flujo Q > Qref, su nivel es hn > D/2.


'El caso contrario de hn<= D/2, equivale al caso de una caleta circular
If Q > Qref Then
GoTo Line2 ' Se calcula como canaleta con nivel "hn" mayor que D/2
Else
GoTo Line0 'Se calcula como canaleta circular
End If
'
'_______________________________________________________
'| Circular flow relationships
'|
'| Flow area
'| A = (D / 2) ^ 2 * (pi - fi + (1 / 2) * Sin(2 * fi)) (B1)
'|
'| Weted perimeter
'| p = D * (pi - fi) (B2)
'|
'| Hydraulic radius
'| Rh = A / p (B3)
'|
'| Heigth
'| H = (D / 2) * (1 + Cos(fi)) (B4)
'|
'| Heigth to diameter ratio
'| H = (D / 2) * (1 + Cos(fi)) (B5)
'|
'|Top Width
'|T = 2 * (D / 2) * Sin(fi) (B6)
'|
'|Velocity
'|v = Q/A (B7)
'|
'|Energy
'|E = H + v^2/(2*g) (B8)
'|
'|Froude
'|Fr = v / (g * (A / T)) ^ 0.5 (B9)

'|
'_______________________________________________________

'_______________________________________________________
'| Semicircular flow relationships (for H>D/2)
'|
'| 1. Flow area
'| A = (1 / 2) * (Pi() * D ^ 2 / 4) + D * f (D1)
'|
'| 2. Weted perimeter
'| P=pi()*d/2 + 2*f (D2)
'|
'| 3. Hydraulic radius
'| Rh =( pi()*d^2 + 8* d * f) / (4 * pi() * d + 16 * f ) ) (D3)
'|
'| 4. Heigth
'| H = (D / 2) + f (D4)
'|
'| 5. Height to Diameter ratio
'| HtoD_ratio = H / D (D5)
'|
'| 6. Top width
'| T = D (D6)
'|
'| 7. Velocity
'| v = Q / A (D7)
'|
'| 8. Energy
'| E = H + v^2/(2*g) (D8)
'|
'| 9. Froude number
'| Fr = v / (g * (A / T)) ^ 0.5 (D9)
'|

'________________________________________________________
Line0:

'beginning of calculation as if it were a circular channel

'Starting value for the angle fi


fi = aQmin
'____________________________________________________________
Line1:

'Flowrate iteration for a circular channel


'Fr^2 = Fvalue for a circular channel
' Iter = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

Fvalue = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

'Difference between calcualted Fvalue and the value 1


DFvalue = Abs(Fvalue - 1)

If DFvalue < DFstop Then ' Circular flow parameters are calculated
A = (D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi)) '(1)
P = D * (Pi - fi) '(2)
Rh = A / P '(3)
H = (D / 2) * (1 + Cos(fi)) '(4)
HtoD_ratio = H / D '(5)
T = 2 * (D / 2) * Sin(fi) '(6)
v=Q/A '(7)
E = H + v ^ 2 / (2 * g) '(8)
Fr = v / (g * (A / T)) ^ 0.5 '(9)

Channel_SemiCircular_Critical_Velocity_Q_D_N_S = v
Exit Function
End If

If Fvalue > 1 Then


fi = fi - Dfi
Else
fi = fi + Dfi
Dfi = Dfi / 10
End If

GoTo Line1
'________________________________________________________________
Line2:
''Flowrate iteration for a semicircular channel with hn > D/2
' To calculate the semicircular values, the indepent variable is "f", which is
' f = H - D/2
' For the calculation one starts with a minimal value of "f" and this value is
' incremented until the calculated flow is the same as the given value.
' One defines an initial increment
Df = D / 10
'The initial value of "f" is
f = Df
'
'_____________________________________________________________________________
Line3:
'The corresponding Fvalue will be calculated
'Fr^2 = Fvalue for a semicircular channel
Fvalue = (Q ^ 2 / g) * (D ^ 2 * Pi / 8 + D * f) ^ (-3) * D
'Difference between calcualted and given flows
'DQ0 = Qcalc - Q
DFvalue = Fvalue - 1
'________________________________________________________________________
'
If Abs(DFvalue) < DFstop Then ' Semicircular flow parameters are calculated

A = (1 / 2) * (Pi * D ^ 2 / 4) + D * f
v=Q/A
H = (D / 2) + f
E = H + v ^ 2 / (2 * g)
v=Q/A
T=D
Fr = v / (g * (A / T)) ^ 0.5

Channel_SemiCircular_Critical_Velocity_Q_D_N_S = v
Exit Function
End If
'______________________________________________________________________

If DFvalue > 0 Then


f = f + Df
Else
f = f - Df
Df = Df / 3
End If
GoTo Line3
End Function

Function Channel_SemiCircular_Critical_Height_Q_D_N_S(Q, D, N, S)

'Constants 07.01.2011
Pi = 4 * Atn(1)
g = 9.80665

'Control constants
'Difference between calculated and given flow (Qcalc - Q), at which the iteration stops
DFstop = 1 / 10000
'Minimum semiangle to start calculation
aQmin = Pi - 1 / 1000 / 10
'Semiangle at which the flowrate will have its maximum value
aQmax = 0.502534296493009
'Initial increment for the semiangle
Dfi = (aQmin - aQmax) / 4

'Cálculo del flujo si la canaleta va con el área semicircular llena ( fi - Pi/2)


'Flujo de acuerdo a Manning
'Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
'Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

Qref = (S) ^ (0.5) * N ^ (-1) * (D) ^ (8 / 3) * (2) ^ (-10 / 3) * (Pi - Pi / 2 + Sin(2 * Pi / 2) / 2) ^ (5 / 3) * (Pi - Pi / 2) ^ (-2 / 3)

'Si la canaleta lleva un flujo Q > Qref, su nivel es hn > D/2.


'El caso contrario de hn<= D/2, equivale al caso de una caleta circular
If Q > Qref Then
GoTo Line2 ' Se calcula como canaleta con nivel "hn" mayor que D/2
Else
GoTo Line0 'Se calcula como canaleta circular
End If
'
'_______________________________________________________
'| Circular flow relationships
'|
'| Flow area
'| A = (D / 2) ^ 2 * (pi - fi + (1 / 2) * Sin(2 * fi)) (B1)
'|
'| Weted perimeter
'| p = D * (pi - fi) (B2)
'|
'| Hydraulic radius
'| Rh = A / p (B3)
'|
'| Heigth
'| H = (D / 2) * (1 + Cos(fi)) (B4)
'|
'| Heigth to diameter ratio
'| H = (D / 2) * (1 + Cos(fi)) (B5)
'|
'|Top Width
'|T = 2 * (D / 2) * Sin(fi) (B6)
'|
'|Velocity
'|v = Q/A (B7)
'|
'|Energy
'|E = H + v^2/(2*g) (B8)
'|
'|Froude
'|Fr = v / (g * (A / T)) ^ 0.5 (B9)

'|
'_______________________________________________________

'_______________________________________________________
'| Semicircular flow relationships (for H>D/2)
'|
'| 1. Flow area
'| A = (1 / 2) * (Pi() * D ^ 2 / 4) + D * f (D1)
'|
'| 2. Weted perimeter
'| P=pi()*d/2 + 2*f (D2)
'|
'| 3. Hydraulic radius
'| Rh =( pi()*d^2 + 8* d * f) / (4 * pi() * d + 16 * f ) ) (D3)
'|
'| 4. Heigth
'| H = (D / 2) + f (D4)
'|
'| 5. Height to Diameter ratio
'| HtoD_ratio = H / D (D5)
'|
'| 6. Top width
'| T = D (D6)
'|
'| 7. Velocity
'| v = Q / A (D7)
'|
'| 8. Energy
'| E = H + v^2/(2*g) (D8)
'|
'| 9. Froude number
'| Fr = v / (g * (A / T)) ^ 0.5 (D9)
'|

'________________________________________________________
Line0:

'beginning of calculation as if it were a circular channel


'Starting value for the angle fi
fi = aQmin
'____________________________________________________________
Line1:

'Flowrate iteration for a circular channel


'Fr^2 = Fvalue for a circular channel
' Iter = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

Fvalue = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

'Difference between calcualted Fvalue and the value 1


DFvalue = Abs(Fvalue - 1)

If DFvalue < DFstop Then ' Circular flow parameters are calculated

A = (D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi)) '(1)


P = D * (Pi - fi) '(2)
Rh = A / P '(3)
H = (D / 2) * (1 + Cos(fi)) '(4)
HtoD_ratio = H / D '(5)
T = 2 * (D / 2) * Sin(fi) '(6)
v=Q/A '(7)
E = H + v ^ 2 / (2 * g) '(8)
Fr = v / (g * (A / T)) ^ 0.5 '(9)

Channel_SemiCircular_Critical_Height_Q_D_N_S = H
Exit Function
End If

If Fvalue > 1 Then


fi = fi - Dfi
Else
fi = fi + Dfi
Dfi = Dfi / 10
End If

GoTo Line1
'________________________________________________________________
Line2:
''Flowrate iteration for a semicircular channel with hn > D/2
' To calculate the semicircular values, the indepent variable is "f", which is
' f = H - D/2
' For the calculation one starts with a minimal value of "f" and this value is
' incremented until the calculated flow is the same as the given value.
' One defines an initial increment
Df = D / 10
'The initial value of "f" is
f = Df
'
'_____________________________________________________________________________
Line3:
'The corresponding Fvalue will be calculated
'Fr^2 = Fvalue for a circular channel
Fvalue = (Q ^ 2 / g) * (D ^ 2 * Pi / 8 + D * f) ^ (-3) * D
'Difference between calcualted and given flows
'DQ0 = Qcalc - Q
DFvalue = Fvalue - 1
'________________________________________________________________________
'
If Abs(DFvalue) < DFstop Then ' Semicircular flow parameters are calculated

A = (1 / 2) * (Pi * D ^ 2 / 4) + D * f
v=Q/A
H = (D / 2) + f
E = H + v ^ 2 / (2 * g)
v=Q/A
T=D
Fr = v / (g * (A / T)) ^ 0.5

Channel_SemiCircular_Critical_Height_Q_D_N_S = H
Exit Function
End If
'______________________________________________________________________

If DFvalue > 0 Then


f = f + Df
Else
f = f - Df
Df = Df / 3
End If
GoTo Line3

End Function

E3 Function Channel_SemiCircular_Critical_Energy_Q_D_N_S(Q, D, N, S)

'Constants 07.01.2011
Pi = 4 * Atn(1)
g = 9.80665

'Control constants
'Difference between calculated and given flow (Qcalc - Q), at which the iteration stops
DFstop = 1 / 10000
'Minimum semiangle to start calculation
aQmin = Pi - 1 / 1000 / 10
'Semiangle at which the flowrate will have its maximum value
aQmax = 0.502534296493009
'Initial increment for the semiangle
Dfi = (aQmin - aQmax) / 4
'Cálculo del flujo si la canaleta va con el área semicircular llena ( fi - Pi/2)
'Flujo de acuerdo a Manning
'Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
'Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

Qref = (S) ^ (0.5) * N ^ (-1) * (D) ^ (8 / 3) * (2) ^ (-10 / 3) * (Pi - Pi / 2 + Sin(2 * Pi / 2) / 2) ^ (5 / 3) * (Pi - Pi / 2) ^ (-2 / 3)

'Si la canaleta lleva un flujo Q > Qref, su nivel es hn > D/2.


'El caso contrario de hn<= D/2, equivale al caso de una caleta circular
If Q > Qref Then
GoTo Line2 ' Se calcula como canaleta con nivel "hn" mayor que D/2
Else
GoTo Line0 'Se calcula como canaleta circular
End If
'
'_______________________________________________________
'| Circular flow relationships
'|
'| Flow area
'| A = (D / 2) ^ 2 * (pi - fi + (1 / 2) * Sin(2 * fi)) (B1)
'|
'| Weted perimeter
'| p = D * (pi - fi) (B2)
'|
'| Hydraulic radius
'| Rh = A / p (B3)
'|
'| Heigth
'| H = (D / 2) * (1 + Cos(fi)) (B4)
'|
'| Heigth to diameter ratio
'| H = (D / 2) * (1 + Cos(fi)) (B5)
'|
'|Top Width
'|T = 2 * (D / 2) * Sin(fi) (B6)
'|
'|Velocity
'|v = Q/A (B7)
'|
'|Energy
'|E = H + v^2/(2*g) (B8)
'|
'|Froude
'|Fr = v / (g * (A / T)) ^ 0.5 (B9)

'|
'_______________________________________________________

'_______________________________________________________
'| Semicircular flow relationships (for H>D/2)
'|
'| 1. Flow area
'| A = (1 / 2) * (Pi() * D ^ 2 / 4) + D * f (D1)
'|
'| 2. Weted perimeter
'| P=pi()*d/2 + 2*f (D2)
'|
'| 3. Hydraulic radius
'| Rh =( pi()*d^2 + 8* d * f) / (4 * pi() * d + 16 * f ) ) (D3)
'|
'| 4. Heigth
'| H = (D / 2) + f (D4)
'|
'| 5. Height to Diameter ratio
'| HtoD_ratio = H / D (D5)
'|
'| 6. Top width
'| T = D (D6)
'|
'| 7. Velocity
'| v = Q / A (D7)
'|
'| 8. Energy
'| E = H + v^2/(2*g) (D8)
'|
'| 9. Froude number
'| Fr = v / (g * (A / T)) ^ 0.5 (D9)
'|

'________________________________________________________
Line0:

'beginning of calculation as if it were a circular channel

'Starting value for the angle fi


fi = aQmin
'____________________________________________________________
Line1:

'Flowrate iteration for a circular channel


'Fr^2 = Fvalue for a circular channel
' Iter = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

Fvalue = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

'Difference between calcualted Fvalue and the value 1


DFvalue = Abs(Fvalue - 1)

If DFvalue < DFstop Then ' Circular flow parameters are calculated

A = (D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi)) '(1)


P = D * (Pi - fi) '(2)
Rh = A / P '(3)
H = (D / 2) * (1 + Cos(fi)) '(4)
HtoD_ratio = H / D '(5)
T = 2 * (D / 2) * Sin(fi) '(6)
v=Q/A '(7)
E = H + v ^ 2 / (2 * g) '(8)
Fr = v / (g * (A / T)) ^ 0.5 '(9)

Channel_SemiCircular_Critical_Energy_Q_D_N_S = E
Exit Function
End If

If Fvalue > 1 Then


fi = fi - Dfi
Else
fi = fi + Dfi
Dfi = Dfi / 10
End If

GoTo Line1
'________________________________________________________________
Line2:
''Flowrate iteration for a semicircular channel with hn > D/2
' To calculate the semicircular values, the indepent variable is "f", which is
' f = H - D/2
' For the calculation one starts with a minimal value of "f" and this value is
' incremented until the calculated flow is the same as the given value.
' One defines an initial increment
Df = D / 10
'The initial value of "f" is
f = Df
'
'_____________________________________________________________________________
Line3:
'The corresponding Fvalue will be calculated
'Fr^2 = Fvalue for a circular channel
Fvalue = (Q ^ 2 / g) * (D ^ 2 * Pi / 8 + D * f) ^ (-3) * D
'Difference between calcualted and given flows
'DQ0 = Qcalc - Q
DFvalue = Fvalue - 1
'________________________________________________________________________
'
If Abs(DFvalue) < DFstop Then ' Semicircular flow parameters are calculated

A = (1 / 2) * (Pi * D ^ 2 / 4) + D * f
v=Q/A
H = (D / 2) + f
E = H + v ^ 2 / (2 * g)
v=Q/A
T=D
Fr = v / (g * (A / T)) ^ 0.5

Channel_SemiCircular_Critical_Energy_Q_D_N_S = E
Exit Function
End If
'______________________________________________________________________

If DFvalue > 0 Then


f = f + Df
Else
f = f - Df
Df = Df / 3
End If
GoTo Line3

End Function

E4 Function Channel_Semicircular_Critical_Froude_Q_D(Q, D)
Channel_Semicircular_Critical_Froude_Q_D = 1

End Function

E5
Function Channel_SemiCircular_Critical_HtoD_ratio_Q_D_N_S(Q, D, N, S)

'Constants 07.01.2011
Pi = 4 * Atn(1)
g = 9.80665

'Control constants
'Difference between calculated and given flow (Qcalc - Q), at which the iteration stops
DFstop = 1 / 10000
'Minimum semiangle to start calculation
aQmin = Pi - 1 / 1000 / 10
'Semiangle at which the flowrate will have its maximum value
aQmax = 0.502534296493009
'Initial increment for the semiangle
Dfi = (aQmin - aQmax) / 4

'Cálculo del flujo si la canaleta va con el área semicircular llena ( fi = Pi/2)


'Flujo de acuerdo a Manning
'Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
'Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

Qref = (S) ^ (0.5) * N ^ (-1) * (D) ^ (8 / 3) * (2) ^ (-10 / 3) * (Pi - Pi / 2 + Sin(2 * Pi / 2) / 2) ^ (5 / 3) * (Pi - Pi / 2) ^ (-2 / 3)

'Si la canaleta lleva un flujo Q > Qref, su nivel es hn > D/2.


'El caso contrario de hn<= D/2, equivale al caso de una caleta circular
If Q > Qref Then
GoTo Line2 ' Se calcula como canaleta con nivel "hn" mayor que D/2
Else
GoTo Line0 'Se calcula como canaleta circular
End If
'
'_______________________________________________________
'| Circular flow relationships
'|
'| Flow area
'| A = (D / 2) ^ 2 * (pi - fi + (1 / 2) * Sin(2 * fi)) (B1)
'|
'| Weted perimeter
'| p = D * (pi - fi) (B2)
'|
'| Hydraulic radius
'| Rh = A / p (B3)
'|
'| Heigth
'| H = (D / 2) * (1 + Cos(fi)) (B4)
'|
'| Heigth to diameter ratio
'| H = (D / 2) * (1 + Cos(fi)) (B5)
'|
'|Top Width
'|T = 2 * (D / 2) * Sin(fi) (B6)
'|
'|Velocity
'|v = Q/A (B7)
'|
'|Energy
'|E = H + v^2/(2*g) (B8)
'|
'|Froude
'|Fr = v / (g * (A / T)) ^ 0.5 (B9)

'|
'_______________________________________________________

'_______________________________________________________
'| Semicircular flow relationships (for H>D/2)
'|
'| 1. Flow area
'| A = (1 / 2) * (Pi() * D ^ 2 / 4) + D * f (D1)
'|
'| 2. Weted perimeter
'| P=pi()*d/2 + 2*f (D2)
'|
'| 3. Hydraulic radius
'| Rh =( pi()*d^2 + 8* d * f) / (4 * pi() * d + 16 * f ) ) (D3)
'|
'| 4. Heigth
'| H = (D / 2) + f (D4)
'|
'| 5. Height to Diameter ratio
'| HtoD_ratio = H / D (D5)
'|
'| 6. Top width
'| T = D (D6)
'|
'| 7. Velocity
'| v = Q / A (D7)
'|
'| 8. Energy
'| E = H + v^2/(2*g) (D8)
'|
'| 9. Froude number
'| Fr = v / (g * (A / T)) ^ 0.5 (D9)
'|

'________________________________________________________
Line0:

'beginning of calculation as if it were a circular channel


'Starting value for the angle fi
fi = aQmin
'____________________________________________________________
Line1:

'Flowrate iteration for a circular channel


'Fr^2 = Fvalue for a circular channel
' Iter = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

Fvalue = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

'Difference between calcualted Fvalue and the value 1


DFvalue = Abs(Fvalue - 1)

If DFvalue < DFstop Then ' Circular flow parameters are calculated

A = (D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi)) '(1)


P = D * (Pi - fi) '(2)
Rh = A / P '(3)
H = (D / 2) * (1 + Cos(fi)) '(4)
HtoD_ratio = H / D '(5)
T = 2 * (D / 2) * Sin(fi) '(6)
v=Q/A '(7)
E = H + v ^ 2 / (2 * g) '(8)
Fr = v / (g * (A / T)) ^ 0.5 '(9)

Channel_SemiCircular_Critical_HtoD_ratio_Q_D_N_S = HtoD_ratio
Exit Function
End If

If Fvalue > 1 Then


fi = fi - Dfi
Else
fi = fi + Dfi
Dfi = Dfi / 10
End If

GoTo Line1
'________________________________________________________________
Line2:
''Flowrate iteration for a semicircular channel with hn > D/2
' To calculate the semicircular values, the indepent variable is "f", which is
' f = H - D/2
' For the calculation one starts with a minimal value of "f" and this value is
' incremented until the calculated flow is the same as the given value.
' One defines an initial increment
Df = D / 10
'The initial value of "f" is
f = Df
'
'_____________________________________________________________________________
Line3:
'The corresponding Fvalue will be calculated
'Fr^2 = Fvalue for a semicircular channel
Fvalue = (Q ^ 2 / g) * (D ^ 2 * Pi / 8 + D * f) ^ (-3) * D
'Difference between calcualted and given flows
'DQ0 = Qcalc - Q
DFvalue = Fvalue - 1
'________________________________________________________________________
'
If Abs(DFvalue) < DFstop Then ' Semicircular flow parameters are calculated

A = (1 / 2) * (Pi * D ^ 2 / 4) + D * f
P = D * (Pi - fi) + 2 * f
Rh = A / P
v=Q/A
H = (D / 2) + f
E = H + v ^ 2 / (2 * g)
v=Q/A
T=D
Fr = v / (g * (A / T)) ^ 0.5

Channel_SemiCircular_Critical_HtoD_ratio_Q_D_N_S = HtoD_ratio
Exit Function
End If
'______________________________________________________________________

If DFvalue > 0 Then


f = f + Df
Else
f = f - Df
Df = Df / 3
End If
GoTo Line3

End Function

E6
Function Channel_SemiCircular_Critical_HydraulicRadius_Q_D_N_S(Q, D, N, S)

'Constants 07.01.2011
Pi = 4 * Atn(1)
g = 9.80665

'Control constants
'Difference between calculated and given flow (Qcalc - Q), at which the iteration stops
DFstop = 1 / 10000
'Minimum semiangle to start calculation
aQmin = Pi - 1 / 1000 / 10
'Semiangle at which the flowrate will have its maximum value
aQmax = 0.502534296493009
'Initial increment for the semiangle
Dfi = (aQmin - aQmax) / 4

'Cálculo del flujo si la canaleta va con el área semicircular llena ( fi = Pi/2)


'Flujo de acuerdo a Manning
'Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
'Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

Qref = (S) ^ (0.5) * N ^ (-1) * (D) ^ (8 / 3) * (2) ^ (-10 / 3) * (Pi - Pi / 2 + Sin(2 * Pi / 2) / 2) ^ (5 / 3) * (Pi - Pi / 2) ^ (-2 / 3)

'Si la canaleta lleva un flujo Q > Qref, su nivel es hn > D/2.


'El caso contrario de hn<= D/2, equivale al caso de una caleta circular
If Q > Qref Then
GoTo Line2 ' Se calcula como canaleta con nivel "hn" mayor que D/2
Else
GoTo Line0 'Se calcula como canaleta circular
End If
'
'_______________________________________________________
'| Circular flow relationships
'|
'| Flow area
'| A = (D / 2) ^ 2 * (pi - fi + (1 / 2) * Sin(2 * fi)) (B1)
'|
'| Weted perimeter
'| p = D * (pi - fi) (B2)
'|
'| Hydraulic radius
'| Rh = A / p (B3)
'|
'| Heigth
'| H = (D / 2) * (1 + Cos(fi)) (B4)
'|
'| Heigth to diameter ratio
'| H = (D / 2) * (1 + Cos(fi)) (B5)
'|
'|Top Width
'|T = 2 * (D / 2) * Sin(fi) (B6)
'|
'|Velocity
'|v = Q/A (B7)
'|
'|Energy
'|E = H + v^2/(2*g) (B8)
'|
'|Froude
'|Fr = v / (g * (A / T)) ^ 0.5 (B9)

'|
'_______________________________________________________

'_______________________________________________________
'| Semicircular flow relationships (for H>D/2)
'|
'| 1. Flow area
'| A = (1 / 2) * (Pi() * D ^ 2 / 4) + D * f (D1)
'|
'| 2. Weted perimeter
'| P=pi()*d/2 + 2*f (D2)
'|
'| 3. Hydraulic radius
'| Rh =( pi()*d^2 + 8* d * f) / (4 * pi() * d + 16 * f ) ) (D3)
'|
'| 4. Heigth
'| H = (D / 2) + f (D4)
'|
'| 5. Height to Diameter ratio
'| HtoD_ratio = H / D (D5)
'|
'| 6. Top width
'| T = D (D6)
'|
'| 7. Velocity
'| v = Q / A (D7)
'|
'| 8. Energy
'| E = H + v^2/(2*g) (D8)
'|
'| 9. Froude number
'| Fr = v / (g * (A / T)) ^ 0.5 (D9)
'|

'________________________________________________________
Line0:

'beginning of calculation as if it were a circular channel

'Starting value for the angle fi


fi = aQmin
'____________________________________________________________
Line1:

'Flowrate iteration for a circular channel


'Fr^2 = Fvalue for a circular channel
' Iter = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

Fvalue = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

'Difference between calcualted Fvalue and the value 1


DFvalue = Abs(Fvalue - 1)

If DFvalue < DFstop Then ' Circular flow parameters are calculated

A = (D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi)) '(1)


P = D * (Pi - fi) '(2)
Rh = A / P '(3)
H = (D / 2) * (1 + Cos(fi)) '(4)
HtoD_ratio = H / D '(5)
T = 2 * (D / 2) * Sin(fi) '(6)
v=Q/A '(7)
E = H + v ^ 2 / (2 * g) '(8)
Fr = v / (g * (A / T)) ^ 0.5 '(9)

Channel_SemiCircular_Critical_HydraulicRadius_Q_D_N_S = Rh
Exit Function
End If

If Fvalue > 1 Then


fi = fi - Dfi
Else
fi = fi + Dfi
Dfi = Dfi / 10
End If

GoTo Line1
'________________________________________________________________
Line2:
''Flowrate iteration for a semicircular channel with hn > D/2
' To calculate the semicircular values, the indepent variable is "f", which is
' f = H - D/2
' For the calculation one starts with a minimal value of "f" and this value is
' incremented until the calculated flow is the same as the given value.
' One defines an initial increment
Df = D / 10
'The initial value of "f" is
f = Df
'
'_____________________________________________________________________________
Line3:
'The corresponding Fvalue will be calculated
'Fr^2 = Fvalue for a semicircular channel
Fvalue = (Q ^ 2 / g) * (D ^ 2 * Pi / 8 + D * f) ^ (-3) * D
'Difference between calcualted and given flows
'DQ0 = Qcalc - Q
DFvalue = Fvalue - 1
'________________________________________________________________________
'
If Abs(DFvalue) < DFstop Then ' Semicircular flow parameters are calculated

A = (1 / 2) * (Pi * D ^ 2 / 4) + D * f
P = D * (Pi - fi) + 2 * f
Rh = A / P
v=Q/A
H = (D / 2) + f
E = H + v ^ 2 / (2 * g)
v=Q/A
T=D
Fr = v / (g * (A / T)) ^ 0.5

Channel_SemiCircular_Critical_HydraulicRadius_Q_D_N_S = Rh
Exit Function
End If
'______________________________________________________________________

If DFvalue > 0 Then


f = f + Df
Else
f = f - Df
Df = Df / 3
End If
GoTo Line3

End Function
E7
Function Channel_SemiCircular_Critical_Top_Width_Q_D_N_S(Q, D, N, S)

'Constants 07.01.2011
Pi = 4 * Atn(1)
g = 9.80665

'Control constants
'Difference between calculated and given flow (Qcalc - Q), at which the iteration stops
DFstop = 1 / 10000
'Minimum semiangle to start calculation
aQmin = Pi - 1 / 1000 / 10
'Semiangle at which the flowrate will have its maximum value
aQmax = 0.502534296493009
'Initial increment for the semiangle
Dfi = (aQmin - aQmax) / 4

'Cálculo del flujo si la canaleta va con el área semicircular llena ( fi = Pi/2)


'Flujo de acuerdo a Manning
'Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
'Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

Qref = (S) ^ (0.5) * N ^ (-1) * (D) ^ (8 / 3) * (2) ^ (-10 / 3) * (Pi - Pi / 2 + Sin(2 * Pi / 2) / 2) ^ (5 / 3) * (Pi - Pi / 2) ^ (-2 / 3)

'Si la canaleta lleva un flujo Q > Qref, su nivel es hn > D/2.


'El caso contrario de hn<= D/2, equivale al caso de una caleta circular
If Q > Qref Then
GoTo Line2 ' Se calcula como canaleta con nivel "hn" mayor que D/2
Else
GoTo Line0 'Se calcula como canaleta circular
End If
'
'_______________________________________________________
'| Circular flow relationships
'|
'| Flow area
'| A = (D / 2) ^ 2 * (pi - fi + (1 / 2) * Sin(2 * fi)) (B1)
'|
'| Weted perimeter
'| p = D * (pi - fi) (B2)
'|
'| Hydraulic radius
'| Rh = A / p (B3)
'|
'| Heigth
'| H = (D / 2) * (1 + Cos(fi)) (B4)
'|
'| Heigth to diameter ratio
'| H = (D / 2) * (1 + Cos(fi)) (B5)
'|
'|Top Width
'|T = 2 * (D / 2) * Sin(fi) (B6)
'|
'|Velocity
'|v = Q/A (B7)
'|
'|Energy
'|E = H + v^2/(2*g) (B8)
'|
'|Froude
'|Fr = v / (g * (A / T)) ^ 0.5 (B9)

'|
'_______________________________________________________

'_______________________________________________________
'| Semicircular flow relationships (for H>D/2)
'|
'| 1. Flow area
'| A = (1 / 2) * (Pi() * D ^ 2 / 4) + D * f (D1)
'|
'| 2. Weted perimeter
'| P=pi()*d/2 + 2*f (D2)
'|
'| 3. Hydraulic radius
'| Rh =( pi()*d^2 + 8* d * f) / (4 * pi() * d + 16 * f ) ) (D3)
'|
'| 4. Heigth
'| H = (D / 2) + f (D4)
'|
'| 5. Height to Diameter ratio
'| HtoD_ratio = H / D (D5)
'|
'| 6. Top width
'| T = D (D6)
'|
'| 7. Velocity
'| v = Q / A (D7)
'|
'| 8. Energy
'| E = H + v^2/(2*g) (D8)
'|
'| 9. Froude number
'| Fr = v / (g * (A / T)) ^ 0.5 (D9)
'|

'________________________________________________________
Line0:

'beginning of calculation as if it were a circular channel

'Starting value for the angle fi


fi = aQmin
'____________________________________________________________
Line1:

'Flowrate iteration for a circular channel


'Fr^2 = Fvalue for a circular channel
' Iter = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

Fvalue = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

'Difference between calcualted Fvalue and the value 1


DFvalue = Abs(Fvalue - 1)

If DFvalue < DFstop Then ' Circular flow parameters are calculated

A = (D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi)) '(1)


P = D * (Pi - fi) '(2)
Rh = A / P '(3)
H = (D / 2) * (1 + Cos(fi)) '(4)
HtoD_ratio = H / D '(5)
T = 2 * (D / 2) * Sin(fi) '(6)
v=Q/A '(7)
E = H + v ^ 2 / (2 * g) '(8)
Fr = v / (g * (A / T)) ^ 0.5 '(9)

Channel_SemiCircular_Critical_Top_Width_Q_D_N_S = T
Exit Function
End If

If Fvalue > 1 Then


fi = fi - Dfi
Else
fi = fi + Dfi
Dfi = Dfi / 10
End If
GoTo Line1
'________________________________________________________________
Line2:
''Flowrate iteration for a semicircular channel with hn > D/2
' To calculate the semicircular values, the indepent variable is "f", which is
' f = H - D/2
' For the calculation one starts with a minimal value of "f" and this value is
' incremented until the calculated flow is the same as the given value.
' One defines an initial increment
Df = D / 10
'The initial value of "f" is
f = Df
'
'_____________________________________________________________________________
Line3:
'The corresponding Fvalue will be calculated
'Fr^2 = Fvalue for a semicircular channel
Fvalue = (Q ^ 2 / g) * (D ^ 2 * Pi / 8 + D * f) ^ (-3) * D
'Difference between calcualted and given flows
'DQ0 = Qcalc - Q
DFvalue = Fvalue - 1
'________________________________________________________________________
'
If Abs(DFvalue) < DFstop Then ' Semicircular flow parameters are calculated

A = (1 / 2) * (Pi * D ^ 2 / 4) + D * f
P = D * (Pi - fi) + 2 * f
Rh = A / P
v=Q/A
H = (D / 2) + f
E = H + v ^ 2 / (2 * g)
v=Q/A
T=D
Fr = v / (g * (A / T)) ^ 0.5

Channel_SemiCircular_Critical_Top_Width_Q_D_N_S = T
Exit Function

E8
Function Channel_SemiCircular_Critical_Area_Q_D_N_S(Q, D, N, S)

'Constants 07.01.2011
Pi = 4 * Atn(1)
g = 9.80665

'Control constants
'Difference between calculated and given flow (Qcalc - Q), at which the iteration stops
DFstop = 1 / 10000
'Minimum semiangle to start calculation
aQmin = Pi - 1 / 1000 / 10
'Semiangle at which the flowrate will have its maximum value
aQmax = 0.502534296493009
'Initial increment for the semiangle
Dfi = (aQmin - aQmax) / 4

'Cálculo del flujo si la canaleta va con el área semicircular llena ( fi = Pi/2)


'Flujo de acuerdo a Manning
'Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
'Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

Qref = (S) ^ (0.5) * N ^ (-1) * (D) ^ (8 / 3) * (2) ^ (-10 / 3) * (Pi - Pi / 2 + Sin(2 * Pi / 2) / 2) ^ (5 / 3) * (Pi - Pi / 2) ^ (-2 / 3)

'Si la canaleta lleva un flujo Q > Qref, su nivel es hn > D/2.


'El caso contrario de hn<= D/2, equivale al caso de una caleta circular
If Q > Qref Then
GoTo Line2 ' Se calcula como canaleta con nivel "hn" mayor que D/2
Else
GoTo Line0 'Se calcula como canaleta circular
End If
'
'_______________________________________________________
'| Circular flow relationships
'|
'| Flow area
'| A = (D / 2) ^ 2 * (pi - fi + (1 / 2) * Sin(2 * fi)) (B1)
'|
'| Weted perimeter
'| p = D * (pi - fi) (B2)
'|
'| Hydraulic radius
'| Rh = A / p (B3)
'|
'| Heigth
'| H = (D / 2) * (1 + Cos(fi)) (B4)
'|
'| Heigth to diameter ratio
'| H = (D / 2) * (1 + Cos(fi)) (B5)
'|
'|Top Width
'|T = 2 * (D / 2) * Sin(fi) (B6)
'|
'|Velocity
'|v = Q/A (B7)
'|
'|Energy
'|E = H + v^2/(2*g) (B8)
'|
'|Froude
'|Fr = v / (g * (A / T)) ^ 0.5 (B9)

'|
'_______________________________________________________

'_______________________________________________________
'| Semicircular flow relationships (for H>D/2)
'|
'| 1. Flow area
'| A = (1 / 2) * (Pi() * D ^ 2 / 4) + D * f (D1)
'|
'| 2. Weted perimeter
'| P=pi()*d/2 + 2*f (D2)
'|
'| 3. Hydraulic radius
'| Rh =( pi()*d^2 + 8* d * f) / (4 * pi() * d + 16 * f ) ) (D3)
'|
'| 4. Heigth
'| H = (D / 2) + f (D4)
'|
'| 5. Height to Diameter ratio
'| HtoD_ratio = H / D (D5)
'|
'| 6. Top width
'| T = D (D6)
'|
'| 7. Velocity
'| v = Q / A (D7)
'|
'| 8. Energy
'| E = H + v^2/(2*g) (D8)
'|
'| 9. Froude number
'| Fr = v / (g * (A / T)) ^ 0.5 (D9)
'|

'________________________________________________________
Line0:
'beginning of calculation as if it were a circular channel

'Starting value for the angle fi


fi = aQmin
'____________________________________________________________
Line1:

'Flowrate iteration for a circular channel


'Fr^2 = Fvalue for a circular channel
' Iter = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

Fvalue = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

'Difference between calcualted Fvalue and the value 1


DFvalue = Abs(Fvalue - 1)

If DFvalue < DFstop Then ' Circular flow parameters are calculated

A = (D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi)) '(1)


P = D * (Pi - fi) '(2)
Rh = A / P '(3)
H = (D / 2) * (1 + Cos(fi)) '(4)
HtoD_ratio = H / D '(5)
T = 2 * (D / 2) * Sin(fi) '(6)
v=Q/A '(7)
E = H + v ^ 2 / (2 * g) '(8)
Fr = v / (g * (A / T)) ^ 0.5 '(9)

Channel_SemiCircular_Critical_Area_Q_D_N_S = A
Exit Function
End If

If Fvalue > 1 Then


fi = fi - Dfi
Else
fi = fi + Dfi
Dfi = Dfi / 10
End If

GoTo Line1
'________________________________________________________________
Line2:
''Flowrate iteration for a semicircular channel with hn > D/2
' To calculate the semicircular values, the indepent variable is "f", which is
' f = H - D/2
' For the calculation one starts with a minimal value of "f" and this value is
' incremented until the calculated flow is the same as the given value.
' One defines an initial increment
Df = D / 10
'The initial value of "f" is
f = Df
'
'_____________________________________________________________________________
Line3:
'The corresponding Fvalue will be calculated
'Fr^2 = Fvalue for a semicircular channel
Fvalue = (Q ^ 2 / g) * (D ^ 2 * Pi / 8 + D * f) ^ (-3) * D
'Difference between calcualted and given flows
'DQ0 = Qcalc - Q
DFvalue = Fvalue - 1
'________________________________________________________________________
'
If Abs(DFvalue) < DFstop Then ' Semicircular flow parameters are calculated

A = (1 / 2) * (Pi * D ^ 2 / 4) + D * f
v=Q/A
H = (D / 2) + f
E = H + v ^ 2 / (2 * g)
v=Q/A
T=D
Fr = v / (g * (A / T)) ^ 0.5

Channel_SemiCircular_Critical_Area_Q_D_N_S = A
Exit Function
End If
'______________________________________________________________________

If DFvalue > 0 Then


f = f + Df
Else
f = f - Df
Df = Df / 3
End If
GoTo Line3

End Function

E9
Function Channel_SemiCircular_Critical_Wetted_Perimeter_Q_D_N_S(Q, D, N, S)

'Constants 07.01.2011
Pi = 4 * Atn(1)
g = 9.80665

'Control constants
'Difference between calculated and given flow (Qcalc - Q), at which the iteration stops
DFstop = 1 / 10000
'Minimum semiangle to start calculation
aQmin = Pi - 1 / 1000 / 10
'Semiangle at which the flowrate will have its maximum value
aQmax = 0.502534296493009
'Initial increment for the semiangle
Dfi = (aQmin - aQmax) / 4

'Cálculo del flujo si la canaleta va con el área semicircular llena ( fi = Pi/2)


'Flujo de acuerdo a Manning
'Q = A * Rh^(2/3) * S^(1/2) * N^(-1)
'Q = (S)^(0.5) * n^(-1) * (D)^(8/3) * (2)^(-10 / 3) * (Pi - fi + Sin(2*fi) / 2)^(5/3) * (Pi - fi)^(-2/3)

Qref = (S) ^ (0.5) * N ^ (-1) * (D) ^ (8 / 3) * (2) ^ (-10 / 3) * (Pi - Pi / 2 + Sin(2 * Pi / 2) / 2) ^ (5 / 3) * (Pi - Pi / 2) ^ (-2 / 3)

'Si la canaleta lleva un flujo Q > Qref, su nivel es hn > D/2.


'El caso contrario de hn<= D/2, equivale al caso de una caleta circular
If Q > Qref Then
GoTo Line2 ' Se calcula como canaleta con nivel "hn" mayor que D/2
Else
GoTo Line0 'Se calcula como canaleta circular
End If
'
'_______________________________________________________
'| Circular flow relationships
'|
'| Flow area
'| A = (D / 2) ^ 2 * (pi - fi + (1 / 2) * Sin(2 * fi)) (B1)
'|
'| Weted perimeter
'| p = D * (pi - fi) (B2)
'|
'| Hydraulic radius
'| Rh = A / p (B3)
'|
'| Heigth
'| H = (D / 2) * (1 + Cos(fi)) (B4)
'|
'| Heigth to diameter ratio
'| H = (D / 2) * (1 + Cos(fi)) (B5)
'|
'|Top Width
'|T = 2 * (D / 2) * Sin(fi) (B6)
'|
'|Velocity
'|v = Q/A (B7)
'|
'|Energy
'|E = H + v^2/(2*g) (B8)
'|
'|Froude
'|Fr = v / (g * (A / T)) ^ 0.5 (B9)

'|
'_______________________________________________________

'_______________________________________________________
'| Semicircular flow relationships (for H>D/2)
'|
'| 1. Flow area
'| A = (1 / 2) * (Pi() * D ^ 2 / 4) + D * f (D1)
'|
'| 2. Weted perimeter
'| P=pi()*d/2 + 2*f (D2)
'|
'| 3. Hydraulic radius
'| Rh =( pi()*d^2 + 8* d * f) / (4 * pi() * d + 16 * f ) ) (D3)
'|
'| 4. Heigth
'| H = (D / 2) + f (D4)
'|
'| 5. Height to Diameter ratio
'| HtoD_ratio = H / D (D5)
'|
'| 6. Top width
'| T = D (D6)
'|
'| 7. Velocity
'| v = Q / A (D7)
'|
'| 8. Energy
'| E = H + v^2/(2*g) (D8)
'|
'| 9. Froude number
'| Fr = v / (g * (A / T)) ^ 0.5 (D9)
'|

'________________________________________________________
Line0:

'beginning of calculation as if it were a circular channel

'Starting value for the angle fi


fi = aQmin
'____________________________________________________________
Line1:

'Flowrate iteration for a circular channel


'Fr^2 = Fvalue for a circular channel
' Iter = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

Fvalue = Q ^ 2 / (g * ((D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi))) ^ 3) * (2 * (D / 2) * Sin(fi))

'Difference between calcualted Fvalue and the value 1


DFvalue = Abs(Fvalue - 1)

If DFvalue < DFstop Then ' Circular flow parameters are calculated

A = (D / 2) ^ 2 * (Pi - fi + (1 / 2) * Sin(2 * fi)) '(1)


P = D * (Pi - fi) '(2)
Rh = A / P '(3)
H = (D / 2) * (1 + Cos(fi)) '(4)
HtoD_ratio = H / D '(5)
T = 2 * (D / 2) * Sin(fi) '(6)
v=Q/A '(7)
E = H + v ^ 2 / (2 * g) '(8)
Fr = v / (g * (A / T)) ^ 0.5 '(9)

Channel_SemiCircular_Critical_Wetted_Perimeter_Q_D_N_S = P
Exit Function
End If

If Fvalue > 1 Then


fi = fi - Dfi
Else
fi = fi + Dfi
Dfi = Dfi / 10
End If

GoTo Line1
'________________________________________________________________
Line2:
''Flowrate iteration for a semicircular channel with hn > D/2
' To calculate the semicircular values, the indepent variable is "f", which is
' f = H - D/2
' For the calculation one starts with a minimal value of "f" and this value is
' incremented until the calculated flow is the same as the given value.
' One defines an initial increment
Df = D / 10
'The initial value of "f" is
f = Df
'
'_____________________________________________________________________________
Line3:
'The corresponding Fvalue will be calculated
'Fr^2 = Fvalue for a semicircular channel
Fvalue = (Q ^ 2 / g) * (D ^ 2 * Pi / 8 + D * f) ^ (-3) * D
'Difference between calcualted and given flows
'DQ0 = Qcalc - Q
DFvalue = Fvalue - 1
'________________________________________________________________________
'
If Abs(DFvalue) < DFstop Then ' Semicircular flow parameters are calculated

A = (1 / 2) * (Pi * D ^ 2 / 4) + D * f
P = D * (Pi - fi) + 2 * f
Rh = A / P
v=Q/A
H = (D / 2) + f
E = H + v ^ 2 / (2 * g)
v=Q/A
T=D
Fr = v / (g * (A / T)) ^ 0.5

Channel_SemiCircular_Critical_Wetted_Perimeter_Q_D_N_S = P
Exit Function
End If
'______________________________________________________________________

If DFvalue > 0 Then


f = f + Df
Else
f = f - Df
Df = Df / 3
End If
GoTo Line3
End Function
Hcanales no contiene esta tipo de canal
Hcanales has not this shape

Rev

H f
hn

D/2

D
6.- Canal rectangular. Aplicaciones y chequeo
Rectangular channels. Applications and checking cjc. Rev. 21.07.2012

Input
Q= 0.6 m3/s
B= 1.4 m
N= 0.011 -
S= 0.02 m/m

Output

Heigth H= Channel_Rectangular_Height_Q_b_N_S
H= #VALUE! m

Hydr. Rad. Rh = Channel_Rectangular_Hydraulic_Radius_Q_B_N_S


Rh = #VALUE! m

Froude Fr = Channel_Rectangular_Froude_Q_b_n_S
Fr = #VALUE!

Critical_velocity v= Channel_Rectangular_Velocity_Q_b_n_S
v= #VALUE! m/s

Energy E= Channel_Rectangular_Energy_Q_b_n_S
E= #VALUE! m
H
Chequeo con Hcanales
Checking against Hcanales
B

A= b*h
v= Q/A
v= Q / ( b * h)

P= b + 2*h
R= A/P
R= (b*h) / (b+2*h)
Manning
v= (1/n) * R^(2/3) * S^(1/2)
v= (1/n) * ((b*h)/(b+2*h))^(2/3) * S^(1/2)

Q / ( b * h) = (1/n) * ((b*h)/(b+2*h))^(2/3) * S^(1/2)


Q= (1/n) * ((b*h)/(b+2*h))^(2/3) * S^(1/2) * (b*h)
7.- Canal rectangular, condiciones críticas
Rectangular channel, critical conditions cjc. Rev. 21.07.2012

Input
Q= 0.6 m³/s
B= 1.4 m

Output

Critical_velocity vc = Channel_Rectangular_Critical_Velocity_Q_B
vc = #VALUE! m/s

Critical_Heigth Hc = Channel_Rectangular_Critical_Heigth_Q_B
Hc = #VALUE! m

Critical_Energy Ec = Channel_Rectangular_Critical_Energy_Q_B
Ec = #VALUE! m

Critical_Froude Frc = Channel_Rectangular_Critical_Froude_Q_D


Frc = #VALUE!

Hydr. Rad. Rhc = Channel_Rectangular_Critical_Hydraulic_Radius_Q_B


Rhc = #VALUE! m
H

Chequeo con Hcanales


B Checking against Hcanales

Fr = v / (g * H) ^ 0.5
v v=Q/A
Fr= A=B*H
√ g⋅H
v=Q/(B*H)
Q 1
Fr= ⋅
A √ g⋅H Fr = Q/(B*H) / (g * H) ^ 0.5
Fr = (1/g^0.5) * Q / ( B * H^1.5 )
Q 1
Fr= ⋅
B⋅H √ g⋅H Para flujo crítico Fr = 1
Q 1
Fr= ⋅
B⋅H √ g⋅H
1 = (1/g^0.5) * Q / ( B * H^1.5 )
1 Q
Fr= (g^0.5) * ( B * H^1.5 ) = Q
3
√g H^(3/2)= Q/(B*g^0.5)
B⋅H 2
H^3= (Q/B)^2 /g
q=Q/B
Para el caso crítico. H^3= (q)^2 /g
H =((q)^2 /g)^(1/3)
1 Q
1= 3
√g
B⋅H 2
3 1
H c2 =
1 Q
√g B
2
Hc=
q2
g [] 3

[ ]
1 Q q= Q/B
3
Hc= Q= 0.6
√g B B= 1.4
q= 0.429
con
Q
q= Hc = (q^2/g)^(1/3)
B q= 0.429
2

[ ]
g= 9.80665
1 3
Hc= q Hc = 0.266
√g
1
Hc=
q2
g [] 3
1
Hc= [ ]
q2
g
3

Hc = ( q^2 / g)^(1/3)
q= 0.428571429
g= 9.80665
Hc = 0.266
cjc. Rev. 21.07.2012
8.- Angle for maximum flow in a circular channel
a
The flow rate can be expressed as a function
−2 Filling
of the diameter and the angle a as follow C 2= [ π - α ]
3
level
5 h
8
3 1 r
S D [ π - α +( 1/2) *seno ( 2* α ) ]
3
q= Q=C 1⋅C 2
Q= √ ⋅ 10 B
n 2
d
23 ( π - α )3 The derivatives are
8 H=r+h
√ S ⋅D 3 dq dC 1 dC 2
B= 10 = ⋅C 2+ ⋅C 1
dα dα dα
n⋅2 3
2
dC 1 5
5
= [ π - α +( 1/2 )*seno ( 2* α ) ] 3⋅(−1+cos ( 2⋅α ) )
[ π - α +( 1/2 ) *seno ( 2* α )] 3 dα 3
Q=B⋅ 2 −5
( π - α )3 dC 2 2 3
= [π - α ]
dα 3
5
3 dq/da = ( (pi()-a+seno(2*a)/2)^(5/3) ) * ( (2/3) * ( pi()-a )^(-5/3) ) + ( (pi()-a)^(-2/3) ) * ( (5/3)*(pi()-a+seno(2*a)/2)^(2/3) * (-1+cos(2*a)) )
1 [ π - α +( 1/2 )*seno ( 2* α ) ]
Q= 2
B
( π - α )3 To obtain de maximum value, the derivative shall be equal zero
5 −2 Using solver
1 3 dq/da =
Q= [ π - α +( 1/2 )*seno ( 2* α ) ] 3⋅[ π - α ] The dependent variable -9.2229E-07 (must be zero)
B The independent variable a= 0.502539401 rad
5 a= 28.8 º
C 1= [ π - α +( 1/2 ) *seno ( 2* α ) ] 3

8.- Qmax
Módulos de la funcion Channels
Modules of channels functions

Hojas

9.- Modulos

También podría gustarte