summaryrefslogtreecommitdiff
path: root/1052/CH12/EX12.5/125.sce
blob: 7d868812b5df9a65830ac9abd18dc47dc015fe7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc;
//Example 12.5
//page no 128
printf(" Example 12.5 page no 128\n\n");
SG=0.96//sp.gravity of a liquid
R=0.03//radius of long circular tube through which liquid  flow
//flow rate is related with the diameter of circular tube 
q=2*%pi*(3*R^2-(200/3)*R^3);
printf("\n volumatric flow rate  q=%f m^3/s",q);
rho_w=1000//density of water 
rho_l=SG*rho_w//density of liquid
m_dot=rho_l*q//mass flow rate 
printf("\n mass flow rate m_dot=%f kg/s",m_dot);
s=%pi*R^2//surface area
v_av=q/s//average velocity
printf("\n average velocity v_av=%f m/s",v_av);