blob: bcc5efe7454c1959ae92568a31412b3fb09de7fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
///Chapter No 7 Fluid Mechanics
///Example 7.13 Page No:124
///Find Discharge through pipe
///Input data
clc;
clear;
D1=0.2; //Diameter of pipe section 1 in m
D2=0.3; //Diameter of pipe section 2 in m
V1=15; //Velocity of water in m/s
pi=3.14;
///calculation
Q=((3.14/4)*(0.2)^2)*15; //Discharge through pipe in m**3/s
V2=(((3.14/4)*(0.2)^2)*15)/((3.14/4)*(0.3)^2); //velocity of section2 in m/s
///Output
printf('Discharge through pipe= %f m^3/s \n ',Q);
printf('velocity of section2= %f m/s \n ',V2);
|