summaryrefslogtreecommitdiff
path: root/2175/CH1/EX1.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2175/CH1/EX1.7
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2175/CH1/EX1.7')
-rwxr-xr-x2175/CH1/EX1.7/1_7.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2175/CH1/EX1.7/1_7.sce b/2175/CH1/EX1.7/1_7.sce
new file mode 100755
index 000000000..4511471e6
--- /dev/null
+++ b/2175/CH1/EX1.7/1_7.sce
@@ -0,0 +1,25 @@
+clc;
+c1=6;//m/s
+c2=4.5;//m^2
+p1=10^5;//bar
+p2=6.9*10^5;//bar
+v1=0.85;//m^3/kg
+v2=0.16;//m^3/kg
+u2_u1=88;//kJ/kg
+m=0.4;//kg/s
+Q=-59;//kW
+
+KI=c1^2/2000;
+KO=c2^2/2000;
+
+W=m*{(u2_u1)+(p2*v2-p1*v1)+(KO-KI)}-Q;
+disp("powar input required is:");
+disp("kW",W/1000);
+
+A1=m*(v1/c1);
+disp("inlet pipe cross section area is:");
+disp("m^2",A1);
+
+A2=m*(v2/c2);
+disp("outlet pipe cross section area is:");
+disp("m^2",A2);