summaryrefslogtreecommitdiff
path: root/23/CH14/EX14.10/Example_14_10.sce
blob: eb07da7ff59d642ee7443545585ea1a876e8e914 (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
27
28
29
30
31
32
33
34
35
36
clear;
clc;

//Example 14.10
//Caption : Program to illustrate the Concepts of Pue Gas Adsorption

subplot(2,1,1)
m=4.7087;
b=2.1941;
t=0.3984;
P=linspace(0,40,10);
N=(m.*P)./((b+(P.^t)).^(1/t));
plot(P,N)
m=0.6206;
b=1.5454;
t=1;
n=(m.*P)./((b+(P.^t)).^(1/t));
plot(P,n,'b--')
legend('Toth Equation','Langmuir Equation')
xtitle('Adsorption Isotherm(n vs P)','P(kPa)','n(mol/kg)')

subplot(2,1,2)
C0=0.4016;
C1=-0.6471;
C2=0.4567;
C3=-0.12;
n=linspace(0,1.6,20);
K=C0+(C1*n)+(C2*(n^2))+(C3*(n^3));
plot(n,K)
n=linspace(0,0.5,20);
K=C0+(C1*n);
plot(n,K,'b--')
legend('Cubic Polynomial fit','Langmuir Equation')
xtitle('n/P vs n for Ethylene','n(mol/kg)','n/P(mol/kg/kPa)')

//End