diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2132/CH5/EX5.21 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2132/CH5/EX5.21')
-rwxr-xr-x | 2132/CH5/EX5.21/Example5_21.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2132/CH5/EX5.21/Example5_21.sce b/2132/CH5/EX5.21/Example5_21.sce new file mode 100755 index 000000000..c072f4065 --- /dev/null +++ b/2132/CH5/EX5.21/Example5_21.sce @@ -0,0 +1,21 @@ +//Example 5.21
+clc;
+clear;
+close;
+format('v',4);
+//Given data :
+rd=0.75;//relative density
+D=12.5/100;//meter
+p=1;//bar
+p=p*1.02;//kg/cm^2
+p=p*9.81*10^4/1000;//kPa
+g=9.81;//gravity constant
+w=g*rd;//N/m^3
+pH=p/w;//meter
+Z=2.5;//meter
+Et=20;//Nm
+v=sqrt((Et-p/w-Z)*2*g);//m/s
+A=%pi/4*D^2;//m^2
+Q=A*v;//m^3/sec
+Q=A*v*1000;//litres/sec
+disp(Q,"Flow Rate of oil in litres/sec : ");
|