summaryrefslogtreecommitdiff
path: root/1627/CH6/EX6.1/Ex6_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1627/CH6/EX6.1/Ex6_1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1627/CH6/EX6.1/Ex6_1.sce')
-rw-r--r--1627/CH6/EX6.1/Ex6_1.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/1627/CH6/EX6.1/Ex6_1.sce b/1627/CH6/EX6.1/Ex6_1.sce
new file mode 100644
index 000000000..9d2a12406
--- /dev/null
+++ b/1627/CH6/EX6.1/Ex6_1.sce
@@ -0,0 +1,26 @@
+clc
+//initialisation of variables
+sg=0.85
+v=7*10^-3//N.s/m^2
+v1=1.46*10^-4//lbf.sec/ft^2
+f=0.05//m
+r=400*10^-3//m^3/min
+t=1/60//min/sec
+s=5*10^-2//m
+g=9.8//m/s^2
+q=9802//N/m^3
+h=7*10^-3//N.s/m^2
+p=0.000046//m
+f1=0.027
+f2=200//m
+t1=448//f
+//CALCULATIONS
+V=(4*r*t)/((%pi)*(s)^2)//m/s
+P=(q*sg)/(g)//N.s^2/m^4
+NR=(V*s*P)/(h)
+R=(p/f)
+hf=(f1*f2*(V)^2)/(s*2*g)//m
+H=q*hf*sg//bars
+FHP=H*f2/t1//hp
+//RESULTS
+printf('The pressure drop and horsepower friction loss =% f hp',FHP)