From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 779/CH18/EX18.9/18_9.sce | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to '779/CH18/EX18.9') diff --git a/779/CH18/EX18.9/18_9.sce b/779/CH18/EX18.9/18_9.sce index 4ac12f61f..d0bf35826 100755 --- a/779/CH18/EX18.9/18_9.sce +++ b/779/CH18/EX18.9/18_9.sce @@ -1,10 +1,10 @@ -T1 = 283; P21 = 2.5; // P2/P1 -P32 = 2.1; // P3/P2 -ns = 0.85; ma = 5; cp = 1.005; -T2s = T1*(P21)^((g-1)/g); -T2 = T1 + (T2s-T1)/ns; -T3 = T2-50; -T4s = T3*(P32)^((g-1)/g); -T4 = T3 + (T4s-T3)/ns; -P = ma*cp*((T2-T1)+(T4-T3)); +T1 = 283; P21 = 2.5; // P2/P1 +P32 = 2.1; // P3/P2 +ns = 0.85; ma = 5; cp = 1.005; g = 1.4; +T2s = T1*(P21)^((g-1)/g); +T2 = T1 + (T2s-T1)/ns; +T3 = T2-50; +T4s = T3*(P32)^((g-1)/g); +T4 = T3 + (T4s-T3)/ns; +P = ma*cp*((T2-T1)+(T4-T3)); disp("kW",P,"Total compressor power is") \ No newline at end of file -- cgit