summaryrefslogtreecommitdiff
path: root/779/CH18/EX18.10
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /779/CH18/EX18.10
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '779/CH18/EX18.10')
-rwxr-xr-x779/CH18/EX18.10/18_10.sce27
1 files changed, 13 insertions, 14 deletions
diff --git a/779/CH18/EX18.10/18_10.sce b/779/CH18/EX18.10/18_10.sce
index 95e7d7eae..2d66740a0 100755
--- a/779/CH18/EX18.10/18_10.sce
+++ b/779/CH18/EX18.10/18_10.sce
@@ -1,14 +1,13 @@
-T1 = 278; P21 = 2.5; // P2/P1
-cp = 1.005; ns = 0.84; V2 = 120;
-T2s = T1*(P21)^((g-1)/g);
-T2 = T1 + (T2s-T1)/ns;
-mg = 0.04*(13+1);
-P = mg*cp*(T2-T1);
-T02 = T2 + V2^2/(2*cp*1000);
-P1 = 0.6;
-P2 = P21*0.6;
-P02 = P2*(T02/T2)^(g/(g-1));
-disp("kW",P,"Power required to drive the compressor is")
-disp("K",T02,"Stagnation temperature is")
-disp("bar",P02,"Stagnation pressure is")
-
+T1 = 278; P21 = 2.5; // P2/P1
+cp = 1.005; ns = 0.84; V2 = 120; g = 1.4;
+T2s = T1*(P21)^((g-1)/g);
+T2 = T1 + (T2s-T1)/ns;
+mg = 0.04*(13+1);
+P = mg*cp*(T2-T1);
+T02 = T2 + V2^2/(2*cp*1000);
+P1 = 0.6;
+P2 = P21*0.6;
+P02 = P2*(T02/T2)^(g/(g-1));
+disp("kW",P,"Power required to drive the compressor is")
+disp("K",T02,"Stagnation temperature is")
+disp("bar",P02,"Stagnation pressure is") \ No newline at end of file