summaryrefslogtreecommitdiff
path: root/2063/CH9/EX9.19
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2063/CH9/EX9.19
downloadScilab-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.19')
-rwxr-xr-x2063/CH9/EX9.19/9_19.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2063/CH9/EX9.19/9_19.sce b/2063/CH9/EX9.19/9_19.sce
new file mode 100755
index 000000000..b579b1c9d
--- /dev/null
+++ b/2063/CH9/EX9.19/9_19.sce
@@ -0,0 +1,17 @@
+clc
+clear
+//Input data
+P1=1;//Initial pressure of a multistage compression in bar
+Pn1=120;//Final pressure in bar
+r=4;//Permissible pressure ratios per stage
+
+//Calculations
+n=log(Pn1/P1)/log(r)
+n1=4;//As n=3.45 say 4 stages
+P5=Pn1;//Since number of stages is 4
+P4=P5/(Pn1/P1)^(1/n1);//Pressure after the stage 3 in bar
+P3=P4/(Pn1/P1)^(1/n1);//Pressure after the stage 2 in bar
+P2=P3/(Pn1/P1)^(1/n1);//Pressure after the stage 1 in bar
+
+//Output
+printf('(a)Number of stages are %3.0f\n (b)Intermediate pressures are, P2 = %3.2f bar, P3 = %3.2f bar, P4 = %3.2f bar',n1,P2,P3,P4)