summaryrefslogtreecommitdiff
path: root/2135/CH1/EX1.41/Exa_1_41.sce
blob: 85b03ab2abecc4a316f9132bfab37b6e1ae4bd4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//Exa 1.41
clc;
clear;
close;
format('v',7);

//Given Data :
ma=0.4;//Kg
mb=0.8;//Kg
Ma=44;
Mb=29;
V=0.4;//m^3
T=300;//K
Rdash=8314.3;//J/Kgk
Ra=Rdash/Ma;//Nm/KgK
Rb=Rdash/Mb;//Nm/KgK
na=ma/Ma;//moles
nb=mb/Mb;//moles
//p*V=n*R*T
pa=na*Rdash/1000*T/V;//bar
pb=nb*Rdash/1000*T/V;//bar
disp(pa,"Pressure of container A in KPa : ");
disp(pb,"Pressure of container B in KPa : ");
p=pa+pb;//Kpa
disp(p,"Pressure of mixture in KPa : ");
//Ans of Pb is wrong in the book.