summaryrefslogtreecommitdiff
path: root/2762/CH1/EX1.4.2/1_4_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2762/CH1/EX1.4.2/1_4_2.sce
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 '2762/CH1/EX1.4.2/1_4_2.sce')
-rwxr-xr-x2762/CH1/EX1.4.2/1_4_2.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2762/CH1/EX1.4.2/1_4_2.sce b/2762/CH1/EX1.4.2/1_4_2.sce
new file mode 100755
index 000000000..631027402
--- /dev/null
+++ b/2762/CH1/EX1.4.2/1_4_2.sce
@@ -0,0 +1,23 @@
+//Transport Processes and Seperation Process Principles
+//Chapter 1
+//Example 1.4-2
+//Introduction to engineering principles and units
+//given data
+//Pressure and composition calculation
+//A:carbon dioxide, B: carbon monoxide, C: Nitrogen gas, D: Oxygen gas
+pA=75;
+pB=50;
+pC=595;
+pD=26;
+//above are the patial pressures of the given gases respectively in mm Hg
+P=pA+pB+pC+pD; //total pressure of the mixture
+mprintf("the total pressure in mm Hg is %d", P);//
+xA=pA/P;
+xB=pB/P;
+xC=pC/P;
+xD=pD/P;
+//above are the patial pressures of the given gases respectively
+mprintf(" the mole fractions of the carbon dioxide %f",xA);
+mprintf(" the mole fractions of the carbon monoxide %f",xB);
+mprintf(" the mole fractions of the nitrogen %f",xC);
+mprintf(" the mole fractions of the oxygen %f",xD);