summaryrefslogtreecommitdiff
path: root/2870/CH16/EX16.11/Ex16_11.sce
blob: 6373b7a588b04310ab588daaac6f7ac30ebfeb5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc;clear;
//Example 16.11

//given data
yw=0.30;//w for water
ya=0.70;//a for ammonia
T=40;

//saturation pressure
pw=7.3851;
pa=1554.33;
//calulations
Pw=yw*pw;
Pa=ya*pa;
Pt=Pw+Pa;
yw=Pw/Pt;
ya=Pa/Pt;
disp(yw,'mole fraction of water vapour');
disp(ya,'mole fraction of ammonia')