summaryrefslogtreecommitdiff
path: root/2087/CH11/EX11.9/example11_9.sce
blob: 0aa2282a6966b7979808ab3e8fddd36fa0d9e600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


//example 11.9
//calculate depth of flow at both end of jumps
clc;funcprot(0);
//given
q=19;        //dischrge through spillway
E=1;         //energy loss

//from energy loss equation;E=(y2-y1)^3/4y2y1; and solving it we get
//x=0.5*(-1+(1+294.39*(x-1)^9/64*x^3))
//by trial and error method x=2.806
x=2.806;
y1=4*x/(x-1)^3;
y2=x*y1;
y1=round(y1*1000)/1000;
y2=round(y2*1000)/1000;
mprintf("depth of flow at both end of jumps=%f m and %f m. respectively.",y1,y2);