summaryrefslogtreecommitdiff
path: root/530/CH9/EX9.1/example_9_1.sce
blob: bb6a96c8a18f002c2cff25ae753be9f18a5dca13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clear;
clc;

// A Textbook on HEAT TRANSFER by S P SUKHATME
// Chapter 9
// Mass Transfer


// Example 9.1
// Page 349
printf("Example 9.1, Page 349 \n \n");

w_a = 0.76 ;
w_b = 0.24 ;
m_a = 28 ; // [kg/kg mole]
m_b = 32 ; // [kg/kg mole]

x_a = (w_a/m_a)/(w_a/m_a+w_b/m_b);
x_b = (w_b/m_b)/(w_a/m_a+w_b/m_b);
printf("The molar fractions are given by \n");
printf("x_a = %f\n",x_a);
printf("x_b = %f",x_b);