diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /779/CH18/EX18.10 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-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-x | 779/CH18/EX18.10/18_10.sce | 27 |
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 |