diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2063/CH9/EX9.14/9_14.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2063/CH9/EX9.14/9_14.sce')
-rwxr-xr-x | 2063/CH9/EX9.14/9_14.sce | 16 |
1 files changed, 16 insertions, 0 deletions
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)
|