Description
Description
This notebook simulates the elution of a binary mixture through a packed chromatographic column. Band propagation is described by the equilibrium–dispersive (ED) model: the two solutes are carried along by convection, broadened by an apparent axial dispersion coefficient that lumps together all band-broadening effects, and are assumed to be in adsorption equilibrium with the stationary phase at every point of the column.
Competition of the solutes for the limited adsorption sites is described by the competitive Langmuir isotherm, which couples the two partial differential equations. The coupled system is solved numerically with NDSolve (method of lines). The outlet chromatograms are then analyzed with statistical moments to obtain retention times, band widths, skewness, kurtosis, peak asymmetry, plate numbers and resolution.
Governing equations
Governing equations
Mass balance of solute in the column ():
i
i=1,2
∂
c
i
∂t
∂
q
i
∂t
∂
c
i
∂z
D
a
2
∂
c
i
∂
2
z
with the phase ratio
F=
1-ϵ
ϵ
and the competitive Langmuir isotherm, in which every solute appears in the denominator:
q
i
a
i
c
i
1+
∑
j
b
j
c
j
The time derivative of is expanded with the chain rule,
q
i
∂
q
i
∂t
∑
j
∂
q
i
∂
c
j
∂
c
j
∂t
which produces negative off-diagonal terms for : the presence of one solute lowers the loading of the other (displacement and tag-along effects).
j≠i
Initial and boundary conditions
Initial and boundary conditions
Initial condition (column nearly clean; the narrow Gaussian keeps the initial and inlet conditions consistent at the corner ):
t=0,z=0
c
i
c
0,i
-1000
2
z
e
Inlet (rectangular pulse of duration ):
t
inj
c
i
c
0,i
t
inj
c
i
t
inj
Outlet (no diffusive flux at the column end):
∂
c
i
∂z
z=L
Parameters and symbols
Parameters and symbols
◼
L
u
D
a
◼
ϵ
F
◼
c
i
i
q
i
c
i
◼
a
i
b
i
◼
c
0,i
t
inj
t
end
Workflow
Workflow
1
.Define the parameters and the injection pulse.
2
.Define the competitive Langmuir isotherm and write the coupled PDE system.
3
.Set the initial and boundary conditions and solve with NDSolve.
4
.Plot the outlet chromatograms (t,L).
c
i
5
.Compute the moments and peak-shape descriptors and display the summary table.
Quantities computed
Quantities computed
◼
Zeroth moment (peak area, used as a mass-balance check), first moment (mean retention time), variance, and third and fourth central moments.
◼
Skewness and excess kurtosis, with and without correction for the finite injection width.
◼
Apex retention time, full width at half height, USP tailing factor (5% height) and asymmetry factor b/a (10% height).
◼
Retention factor k′, plate number (from moments and from half-height width), plate height, and resolution between the two peaks.
Notes
Notes
In the linear limit (small ) the retention times are approximately
b
i
c
i
t
R,i
L
u
a
i
which serves as a check of the numerical result.
◼
The Gaussian initial condition places a small amount of extra solute near the inlet, so the peak area can be slightly larger than the injected mass; compare the two in the summary table.
◼
Units: lengths in cm, time in s, concentrations in consistent arbitrary units.
Two-Component Equilibrium-Dispersive Chromatography
Competitive Langmuir isotherm, rectangular pulse injection
Parameters (cm, s)
Parameters (cm, s)
Column length, interstitial velocity, dispersion
L=25;u=0.1;Da=2*^-3;
Porosity, phase ratio
eps=0.4;F=(1-eps)/eps;
Number of components
nc=2;
Langmuir a_i
aL={1.0,1.5};
Langmuir b_i
bL={0.05,0.05};
Injected concentrations
c0={1,0.5};
Injection time
tinj=10;
End time; t_R,i ~ (L/u)(1 + F a_i) = 625, 812 s
tend=1000;
Injection pulse (same for both components)
cin[i_,t_]:=If[t>tinj,0,If[i==1,c0[[1]],c0[[2]]]];
Plot{cin[1,t],cin[2,t]},{t,0,100},
Out[]=
In[]:=
c={c1[t,z],c2[t,z]};
Competitive Langmuir isotherm and Jacobian dq_i/dc_j
Competitive Langmuir isotherm and Jacobian dq_i/dc_j
q[cc_List]:=aLcc/(1+bL.cc);
In[]:=
q[c]
Out[]=
,
1.c1[t,z]
1+0.05c1[t,z]+0.05c2[t,z]
1.5c2[t,z]
1+0.05c1[t,z]+0.05c2[t,z]
Governing PDE system
Governing PDE system
Initial and boundary conditions
Clean column
ics=Table[(c[[i]]/.t->0)==c0[[i]]Exp[-1000z^2],{i,nc}];
Inlet
bcIn=Table[(c[[i]]/.z->0)==If[i==1,If[t>tinj,0,c0[[1]]],If[t>tinj,0,c0[[2]]]],{i,nc}];
Outlet
bcOut=Table[(D[c[[i]],{z,1}]/.z->L)==0,{i,nc}];
In[]:=
ics
Out[]=
c1[0,z],c2[0,z]0.5
-1000
2
z
-1000
2
z
In[]:=
bcIn
Out[]=
{c1[t,0]If[t>10,0,c0〚1〛],c2[t,0]If[t>10,0,c0〚2〛]}
In[]:=
bcOut
Out[]=
[t,25]0,[t,25]0
(0,1)
c1
(0,1)
c2
In[]:=
pde={(FD[q[c][[1]],t])+D[c1[t,z],t]+uD[c1[t,z],z]==DaD[c1[t,z],{z,2}],(FD[q[c][[2]],t])+D[c2[t,z],t]+uD[c2[t,z],z]==DaD[c2[t,z],{z,2}]}
Out[]=
0.1[t,z]+[t,z]+1.5-[t,z],0.1[t,z]+[t,z]+1.5-+[t,z]
(0,1)
c1
(1,0)
c1
1.[t,z]
(1,0)
c1
1+0.05c1[t,z]+0.05c2[t,z]
1.c1[t,z]0.05[t,z]+0.05[t,z]
(1,0)
c1
(1,0)
c2
2
(1+0.05c1[t,z]+0.05c2[t,z])
1
500
(0,2)
c1
(0,1)
c2
(1,0)
c2
1.5c2[t,z]0.05[t,z]+0.05[t,z]
(1,0)
c1
(1,0)
c2
2
(1+0.05c1[t,z]+0.05c2[t,z])
1.5[t,z]
(1,0)
c2
1+0.05c1[t,z]+0.05c2[t,z]
1
500
(0,2)
c2
Solve
sol=NDSolve[Join[pde,ics,bcIn,bcOut],c,{t,0,tend},{z,0,L}];
Chromatogram at the outlet
PlotEvaluate[c/.sol/.z->L],{t,0,tend},
Out[]=
In[]:=
f[t_]:={c[[1]]/.First[sol]/.z->L,c[[2]]/.First[sol]/.z->L}
Moment and peak-shape analysis of the outlet chromatograms
Moment and peak-shape analysis of the outlet chromatograms
Raw moments and central moments
Zeroth moment = area (mass)
m0=NIntegrate[f[t],{t,500,tend},AccuracyGoal->5]
First moment = mean retention time
k-th central moment
Cariance
Skewness
Excess kurtosis
Correct for the finite rectangular injection (width tinj)
Mean residence time
Variance of the column response
Rectangular pulse is symmetric: mu3 unchanged
Apex retention time (parabolic refinement via interpolation)
Peak widths / asymmetry by linear interpolation on the grid
Column efficiency and retention
Hold-up time of the interstitial fluid
Retention factor k’
Plate number from moments
Plate number from half-height width
Plate height (cm)
Linear-limit reference (valid when b*c0 << 1)
Summary
Resolution between consecutive peaks
CITE THIS NOTEBOOK
CITE THIS NOTEBOOK
Competitive langmuir chromatography of a binary mixture: equilibrium-dispersive simulation and moment analysis
by Housam Binous
Wolfram Community, STAFF PICKS, October 11, 2026
https://community.wolfram.com/t/28307
by Housam Binous
Wolfram Community, STAFF PICKS, October 11, 2026
https://community.wolfram.com/t/28307