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 --- 2762/CH1/EX1.4.2/1_4_2.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 2762/CH1/EX1.4.2/1_4_2.sce (limited to '2762/CH1/EX1.4.2') 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); -- cgit