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 --- 389/CH7/EX7.4/Example7_4.sce | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 389/CH7/EX7.4/Example7_4.sce (limited to '389/CH7/EX7.4/Example7_4.sce') diff --git a/389/CH7/EX7.4/Example7_4.sce b/389/CH7/EX7.4/Example7_4.sce new file mode 100755 index 000000000..cb544325e --- /dev/null +++ b/389/CH7/EX7.4/Example7_4.sce @@ -0,0 +1,43 @@ +clear; +clc; + +// Illustration 7.4 +// Page: 227 + +printf('Illustration 7.4 - Page: 227\n\n'); + +// solution + +//****Data****// +// A = benzene vapour; B = Nitrogen Gas +P = 800;// [mm Hg] +Temp = 273+60;// [K] +pA = 100;// [mm Hg] +//******// + +pB = P-pA;// [mm Hg] +MA = 78.05;// [kg/kmol] +MB = 28.08;// [kg/kmol] + +// Mole Fraction +printf("On the Basis of Mole Fraction\n"); +yAm = pA/P; +yBm = pB/P; +printf("Mole Fraction of Benzene is %f\n",yAm); +printf("Mole Fraction of Nitrogen is %f\n",yBm); +printf("\n"); + +// Volume Fraction +printf("On the Basis of Volume Fraction\n"); +// Volume fraction is same as mole Fraction +yAv = yAm; +yBv = yBm; +printf("Volume Fraction of Benzene is %f\n",yAv); +printf("Volume Fraction of Nitrogen is %f\n",yBv); +printf("\n"); + +// Absolute Humidity +printf("On the basis of Absolute humidity\n") +Y = pA/pB;// [mol benzene/mol nitrogen] +Y_prime = Y*(MA/MB);// [kg benzene/kg nitrogen] +printf("The concentration of benzene is %f kg benzene/kg nitrogen\n",Y_prime); \ No newline at end of file -- cgit