summaryrefslogtreecommitdiff
path: root/1379/CH5/EX5.1.1/example5_1.sce
blob: ad93ab2c75af6ffab58fc95c03638c759df5c313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25


//exapple 5.1 
clc; funcprot(0);
// Initialization of Variable
rho=999.7;
g=9.81;
mu=1.308/1000;
s=1/6950;
b=0.65;
h=32.6/100;
n=0.016;
//calculation
//part1
A=b*h;
P=b+2*h;
m=A/P;
u=s^.5*m^(2/3)/n;
Q=A*u
disp(Q,"volumetric flow rate (m^3/s):");
C=u/m^0.5/s^0.5;
disp(C,"chezy coefficient (m^0.5/s):");
a=-m*rho*g*s/mu;//delu/dely
disp(a,"velocity gradient in the channel (s^-1):")