From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2063/CH9/EX9.14/9_14.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2063/CH9/EX9.14/9_14.sce (limited to '2063/CH9/EX9.14/9_14.sce') diff --git a/2063/CH9/EX9.14/9_14.sce b/2063/CH9/EX9.14/9_14.sce new file mode 100755 index 000000000..42cd2b47b --- /dev/null +++ b/2063/CH9/EX9.14/9_14.sce @@ -0,0 +1,16 @@ +clc +clear +//Input data +m=1;//Mass of air to be compressed in kg +P1=1;//Pressure of air before compression in bar +T1=303;//Initial temperature in K +P3=25;//Final pressure of air after compression in bar +n=1.3;//Polytropic index +R=287;//Gas constant in J/kg K + +//Calculations +P2=(P1*P3)^(0.5);//Intermediate pressure in the case of perfect intercooling in bar +W=2*(n/(n-1))*(m*R*T1*(((P2/P1)^((n-1)/n))-1));//Work done in compression in a two stage compressor per unit volume per kg of air in N m + +//Output data +printf('Minimum work required to compress 1kg of air for given conditions is %3.0f N m',W) -- cgit