summaryrefslogtreecommitdiff
path: root/1460/CH12/EX12.1/12_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1460/CH12/EX12.1/12_1.sce')
-rwxr-xr-x1460/CH12/EX12.1/12_1.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1460/CH12/EX12.1/12_1.sce b/1460/CH12/EX12.1/12_1.sce
new file mode 100755
index 000000000..7e5c90afe
--- /dev/null
+++ b/1460/CH12/EX12.1/12_1.sce
@@ -0,0 +1,18 @@
+clc
+//initialization of variables
+w1=2 //lbm
+w2=1 //lbm
+P=30 //lbm/in^2
+T=60+460 //R
+//calculations
+R1=35.1
+R2=55.1
+Rm=(w1*R1+w2*R2)/(w1+w2)
+vm=(w1+w2)*Rm*T/(144*P)
+p1=w1*R1*T/(144*vm)
+p2=w2*R2*T/(144*vm)
+//results
+printf("Gas constant of the mixture = %.1f lb/in^2",Rm)
+printf("\n Volume of the mixture = %.1f ft^3",vm)
+printf("\n Partial pressure of CO2 = %.1f lb/in^2",p1)
+printf("\n Partial pressure of N2 = %.1f lb/in^2",p2)