You are on page 1of 33

PROJECT REPORT ON RESEARCH TOPIC

“SELECTION AND REGENERATION OF POTENTIAL IONIC LIQUID


FOR THE HYDRO-PROCESSING FEEDSTOCKS”
A part of curriculum
By
MANGESH CHOPADE(20CHE215)
MTech (2020)
Chemical Engineering

Under the guidance of

VGG

Institute of Chemical Technology


Matunga, Mumbai- 400019

July 2021
Table of Contents
1. Introduction...................................................................................................................................4
2. Literature review............................................................................................................................6
3. Methods of Sulfur analysis..........................................................................................................11
3.1. Analytical methods...................................................................................................................11
3.1.1 GC-FPD (Gas chromatography-Flame photometric detectors):...................................11
3.1.2 GC-PFPD (Gas chromatography – Pulsed flame photometric detectors):....................11
3.1.3 HPLC-MS (High performance liquid chromatography – Mass spectroscopy):............11
3.1.4 ESI-MS (Electrospray ionization- Mass spectroscopy):...............................................12
3.1.5 NMR (Nuclear Magnetic resonance):..........................................................................12
3.2 Chemical methods................................................................................................................13
3.2.1 Determination of Sulphur in Organic Compounds by Oxidation with Hypobromite
Solution: 13
3.2.2 Determination of sulfur in organic compounds by gravimetric method:......................13
4. Data Analysis..................................................................................................................................14
4.1 Thermodynamics of Liquid-liquid equilibria:-.....................................................................14
4.2 Thermodynamic Models:.....................................................................................................14
4.2.1 Wohl’s Three suffix Model:.........................................................................................15
4.2.2 Morgules Model:..........................................................................................................15
4.2.3 Wilson Model:.............................................................................................................16
4.2.4 NRTL Model:..............................................................................................................16
4.2.5 UNIQUAC Model:.......................................................................................................17
4.2.6 UNIFAC Model:..........................................................................................................19
4.2.7 COSMO-RS:................................................................................................................20
4.3 Summary of Thermodynamic Models:.................................................................................21
4.4 Model fitting and optimization:...........................................................................................22
5. Work done so far:........................................................................................................................25
6. Summary:....................................................................................................................................25
7. References...................................................................................................................................26
8. Appendices:.................................................................................................................................29
Table 1: Based on desulfurization of fuel oil using ionic liquid................................................6
Table 2: Based on the regeneration of ionic liquid....................................................................7
Table 3: Based on the Liquid-liquid equilibrium:......................................................................9
Table 4: Binary interaction parameters present in literature and predicted using NRTL model
..................................................................................................................................................23
Y
Figure 1: Experimental and correlated data of the ternary system ([C8mim]-[NTf2] +
Thiophene + Cyclohexane) (Alonso, Arce, Francisco, et al. 2008).........................................24
Figure 2: Experimental and correlated data of the ternary system ([C8mim]-[NTf2] +
Thiophene + Cyclohexane(Alonso, Arce, Francisco, et al. 2008; Alonso, Arce, and Soto
2008)........................................................................................................................................24
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

1. Introduction

Sulfur in motor fuels had implicated as a contributing factor to global warming and acid rain.
It is also a catalyst poison for automobile catalytic converters and refinery catalytic
crackers(Alonso, Arce, Francisco, et al. 2008). The combustion of sulfur compounds in
gasoline and diesel fuel will results in emission of SO x and sulfate particulate matter, which is
major cause of air pollution and acid rain. To reduce these pollutions due to sulfur oxide, all
the government around the world introduce stringent environmental laws.
Hydrodesulphurization (HDS) is one of the conventional method to remove sulfur compound
for industrial purposes. But these methods require high temperature (>300°C), high pressure
(>4MPa), high energy cost, and not able to remove aromatic heterocyclic sulfur compounds,
such as thiophene, benzothiophene (BT) and its derivatives. To meet the new environmental
regulations, various alternative deep desulfurization processes have investigated in past few
years, including bio desulfurization, adsorption, oxidation and extractive desulfurization.
Among these new processes, extractive desulfurization appears to be particularly promising
and is currently receiving more attention. A lot of organic solvents such as
polyalkyaleneglycol were used a extractants for the removal of sulfur compounds from the
fuel, but the results were not satisfactory(Gao et al. 2009).
Recently, various ionic liquids (ILs) have used as extractants for the removal of sulfur
compounds from the fuel because of their unique physical and chemical properties, such as
negligible vapor pressure, high chemical and thermal stability and ability to dissolve a wide
range of organic and inorganic compounds. It is combination of usually organic cations
(derivatives of N, N - substituted imidazolium, N-substituted pyridinium, tetra -alkylated
ammonium, tetra -alkylated phosphonium, etc.), and organic or inorganic anions.(Singh and
Savoy 2020) The extractive desulfurization process using ILs can be complementary
technology for the HDS process. The ILs extractive desulfurization of fuel oil have higher
extraction ratio and greater selectivity compared to organic solvent extractive desulfurization
because of the unique solvent characteristics of ILs. For the extractive desulfurization
process, the key parameter is to select an effective IL that is nontoxic, chemically stable to
moisture and air, and not expensive for commercial applications. After the desulfurization of
fuel oil recovery and regeneration of ionic liquid has carried out by using various methods,
such as distillation, extraction with water, extraction with organic solvent, adsorption on solid
surface, membrane separation, crystallization and force field separation, etc. Among these
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

methods distillation and extraction are two of the most commonly used methods.(Lucero,
Javier, and Lucero 2011). Liquid –liquid extraction in the regeneration of the ionic liquid has
been most commonly used method. To predict the separation, it is necessary to know the
liquid-liquid equilibrium (LLE) data for a particular system. Various thermodynamic models
such as NRTL, UNIQUAC and UNIFAC can be use to predict the LLE. These models use
the activity coefficients, which require proper binary interaction parameters that can represent
LLE for highly non-ideal liquid mixtures usually encountered in aromatic extraction(Banerjee
et al. 2007).
The experimental data have been correlated by means of the NRTL(H. and J.M. 1968) and
UNIQUAC(Abrams and Prausnitz 1975) equations(Simoni et al. 2008). Sometimes screening
of the huge number of possible ionic liquids and hydrocarbons mixtures is experimentally not
feasible, the use of predictive models and/or computational methods is a viable option for the
design of the best solvent. Thus, the Conductor-like Screening Model for Real Solvents
(COSMO-RS) will also use to describe the liquid–liquid equilibria(Ferreira et al. 2014).
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

2. Literature review

Table : Based on desulfurization of fuel oil using ionic liquid

Title Ionic liquids Extraction % References


conditions sulfur
removal
Deep extractive [Omim]Cl.2FeCl 298.15k 99.4% (Ban et al.
desulfurization of diesel 3 30min 2013)
fuels by FeCl3/ionic
liquids:

Desulfurization of diesel [C8mim][BF4] 298.15k 29.96% (CHU et al.


fuel by extraction with 30min and 2008)
[BF4] − based ionic liquid 39.76 %

Desulfurization of diesel [C4mPyr] 10 to 30˚C, 90.6 % (Nie et al. 2006)


fuel with nickel boride in [OTf] 50 Min,
situ generated in an ionic Pressure.
liquid.

Desulfurization of model Trimethyl 50 ° C, 90% (Siddiqui and


fuel oil using novel ionic ammonium 6 Hrs. Gondal 2014)
liquids. chloro
aluminates
Desulfurization of [BMIM] 25 °C 99 % (Likhanova,
hydrocarbons by ionic FeCl4 Likhanova, and
liquids & preparation of Mx 2009)
ionic liquids.

Extractive deep [Bmim]Cl/ 30°C, 75.6% (Dharaskar et al.


desulfurization of liquid FeCl3 30 Min and 2013)
fuels using Lewis-based 70.2 %
ionic liquids
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Deep Desulfurization of [BMIM] [SCN] 60°C, 55.6% (Taylor et al.


model oil by extraction with 20Min. n.d.)
low-viscosity ionic liquid
[BMIM].SCN

Table : Based on the regeneration of ionic liquid

Patent Title Ionic liquid Method of Regeneration Recover Refere


regeneration condition y nce

Process of Pyridinium and Filtration, The weight 90% (Lucer


recovery of imidazolium evaporation ratio of the o et al.
exhausted ionic based ILs and drying spent ionic 2011)
liquid used in liquid to the
the extractive organic solvent
desulfurization is 1:1 to 1:10,
of naphthas and preferably
1:2 to 1:5.

Regeneration of 1-butyl- Removal of Temp = 50- 98% (Sato


ionic liquid pyridinium conjunct 100C 2020)
catalyst using a chloroaluminat polymers Pressure = 50-
regeneration e from the 500 psig
metal in the spent catalyst Contact Time =
absence of by using .5 – 2 hours
added hydrogen Aluminum
metal in the
presence of
hydrogen.

A process for Chloroalumina Dissociation Solvent to ILs 90-95% (Chan


Ionic liquid tes, of conjunct feed ratio = 1:1. g et al.
catalyst imidazolium, polymer 2009)
regeneration. Pyridinium followed by
Temperature =
solvent
60 to 120° C
extraction.

Pressure = 200
psig
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Regeneration of l-Butyl- Gravity Temp = 50°- 90% (Data


acidic Ionic Pyridinium decanter, 150°C 2015)
Liquid catalyst chloro- distillation. Pressure = 50-
Aluminates 500 psig
Contact Time =
.5 – 2 hours

Regeneration of n-butyl Agitating in Temp =100° C 50% (Ramo


acidic Ionic pyridinium reactor to 350° C n et al.
Liquid without chloroaluminat followed by 2017)
Pressure=50 to
addition of e distillation
5000 psig
hydrogenation
catalyst Contact time=2
to 50 hours.
Agitation
rate=50 to 2500
rpm

Regeneration of Tetraoctyl Electro- 96.5% (Parme


the ionic liquid deposition, ntier et
ammonium
tetraoctylammo Chemical al.
oleate
nium oleate regeneration 2015)
after
metal extraction

Method for the 1- Ethyl-3- Extraction Below (Anon


extraction of methylimiodaz with organic 90% n.d.)
organosulfur olium solvent
compound from tetraflurobate
hydrocarbon
using ionic
liquids
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Table : Based on the Liquid-liquid equilibrium:

Sr.no Literature name Description Reference


1 Liquid - Liquid This paper correlate the (Alonso,
Equilibria for [ C 8 mim experimental data of IL, SC, Arce, and
][ NTf 2 ] + Thiophene and solvent (2, 2, 4-Trimethyl- Soto 2008)
+ 2,2 4- pentane and Toluene) using the
Trimethylpentane or + NRTL and UNIQUAC model
Toluene and high selectivity values
found for the system with. 2,2
4-Trimethylpentane.
2 Liquid-Liquid In this paper liquid-liquid (Alonso,
Equilibria for Systems equilibrium data of the ternary Arce, and
Composed by 1-Methyl- systems have been determined Rodrı 2007)
3-octylimidazolium exp. At 298.15k and correlate,
Tetrafluoroborate Ionic it using NRTL model. On the
Liquid, Thiophene, and basis of selectivity and
n-Hexane or distribution coefficient both
Cyclohexane solvent gives the feasible
separation of thiophene.
3 Liquid-liquid Equilibria of This paper correlate the (Alonso,
([C2mim][EtSO4] + and obtained experimental data Arce,
([C2mim][EtSO4] + using NRTL and UNIQUAC Francisco, et
Thiophene + Toluene):
model and plot the tie-line data al. 2008)
Experimental data and
on the phase diagram.
Correlation

4 Liquid-liquid equilibria of This paper obtain the (Soto,


[ C 8 mim ][ NTf 2 ] ionic experimental data for the Alonso, and
liquid with a sulfur- ternary system and correlated it Arce 2008)
component and
using NRTL model.
hydrocarbons
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

5 Ternary Liquid–Liquid In this paper desulfurization, (Thiophene


Equilibria for Mixtures of ability of ILs was studied using and K 2014)
{Ionic Liquid + LLE data and correlated it
Thiophene or
using NRTL model.
Benzothiophene +
Heptane} at 308.15 K.

6 Correlation of ( liquid + This paper correlate the ternary (Aznar 2007)


liquid ) equilibrium of data for the 24 systems using
systems including ionic NRTL model and found that
liquids the model correlate data with
good precision.
7 Local Compositions in This paper discussed the use of (H. and J.M.
Thermodynamic Excess local composition for the 1968)
Functions for Liquid representation of excess Gibbs
Mixtures
energy of liquid mixtures.
8 Statistical This paper discussed about the (Abrams and
thermodynamics of liquid new model for the excess Prausnitz
mixtures: A new Gibbs energy of liquid mixture 1975)
expression for the excess
(UNIQUC). This model use
Gibbs energy of partly or
only two adjustable parameters
completely miscible
per binary to fit the data.
systems

9 Multicomponent Liquid - This paper discussed the novel (Banerjee et


Liquid Equilibria method on unimolecular al. 2007)
Prediction for Aromatic quantum mechanics for
Extraction Systems Using
multicomponent LLE
COSMO-RS
COSMO-RS and correlate the
experimental data

1
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

3. Methods of Sulfur analysis

3.1. Analytical methods

3.1.1 GC-FPD (Gas chromatography-Flame photometric detectors):

In the FPD, sulfur compounds are combusted in a hydrogen-rich flame as they eluted
from the GC column. During combustion, the sulfur forms an excited state sulfur
dimmer (S2*) which emits a characteristics light energy as it returns to the ground
state. The emission from the S2* are detected by a photomultiplier tube (PMT) and
the response of PMT is quadratic and proportional to the amount of sulfur present.
(Saleh 2020)
3.1.2 GC-PFPD (Gas chromatography – Pulsed flame photometric detectors):

GC-PFPD (Gas chromatography- Pulse flame photometric detector) is the improved


version of GC-FPD. In these, a combustible mixture of hydrogen and air is introduced
and fills the detector body and cup from the bottom up. The resulting flame
propagates along the pathway consuming the H2/air mixtures. Compounds eluting
from the GC column are combusted within a quartz combustor and emit light at
element specific wavelength. The flame is extinguished when it reaches the bottom of
the detector and excited species continue to fluoresce for upto 25 Milliseconds.
Emissions from the excited species pass along a light pipe and selected emissions are
transmitted through an optical fibre to PMT for detection. The entire pulsed flame
cycle is repeated approximately 3 to 4 times per second. Advantages of PFPD over
FPD are increase in sulfur-hydrocarbon selectivity, increase in sensitivity, and long
term flame stability with no flame-out.(Jeuniaux 1993)
3.1.3 HPLC-MS (High performance liquid chromatography – Mass spectroscopy):

Liquid chromatography- Mass spectroscopy is a method of physical separation in which


the components of a liquid mixture are distributed between two immiscible phases, i.e.,
stationary and mobile with the mass analysis capabilities of mass spectroscopy (MS). In
this, the sample is injected into the mobile phase with the high-pressure pump. The
mobile phase containing the sulfur compounds are permeates through the stationary bed,
in the LC column components of the mixture are separated depending upon the chemical
affinity with the mobile and stationary phase. Then it sent to the mass spectrometer for
the analysis using the mass analyser and detector.(Hsu et al. 1991)
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

3.1.4 ESI-MS (Electrospray ionization- Mass spectroscopy):

ESI-MS (Electrospray ionization mass spectroscopy) is the widely used ionization


techniques for the analysis of sulfur compounds. It uses electrical energy to assists
transfer of ion from sample into gaseous phase. ESI is selective for polar compounds and
sulfur compounds that are non-polar or weakly polar need to be derivative to improve the
ionization efficiency. The main derivitization methods used are methylation,phynylation,
oxidation. Using the methylation method, weakly polar SCCs are converted to
corresponding highly polar methyl-sulfonium salts and analyzed by positive ion ES(Saleh
2020).

3.1.5 NMR (Nuclear Magnetic resonance):

In these method of analysis sample is place in the magnetic field. Then excite the nuclei
sample into nuclear magnetic resonance with the help of radio waves to produce NMR
signals. These NMR signals are detected with sensitive radio receivers. The resonance
frequency of an atom in a molecule is changed by the intramolecular magnetic field
surrounding it. This gives details of a molecule’s individual functional group and its
electronic. This method provides details of the reaction state, structure, chemical environment
and dynamics of a molecule.
Most NMR analysis are performed by C-NMR or H-NMR. Sulfur compounds can be
detected by the C-NMR in the form of sulfonium salts, sulfides and thiophenes.(1386 ‫)سینا‬
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

3.2 Chemical methods

3.2.1 Determination of Sulphur in Organic Compounds by Oxidation with

Hypobromite Solution:

Procedure: The accurately weighed organic compound was fused with sodium and 1 g of
fusion mixture in a 5 to 6 inches long Pyrex-glass fusion tube for about 10 minutes, and the
red-hot tube was then plunged into a beaker containing water. The solution obtained was
warmed and then filtered. The pieces of broken glass from the fusion tube were ground in a
mortar and then washed, and the washings were added to the previous filtrate. To prevent
atmospheric oxidation, the solution must not be heated, and it must be filtered through a filter
paper previously washed with water, otherwise inaccurate results will be obtained owing to
the absorption of sulphide on the filter paper.
Seventy-five millilitres of 0.1 N sodium hypobromite solution were added to the filtrate, and
the flask was set aside for about 5 minutes. Twenty millilitres of 10% potassium iodide
solution and 50 ml of 2 N sulphuric acid were then added, and the liberated iodine was
titrated against sodium thiosulphate with starch as indicator.
It was, however, found more convenient to adjust the filtrate after fusion, to a known volume
and to take a 10-ml aliquot of the filtered solution for the determination. The procedure was
then the same as described above, except that only one-tenth of the stated volumes of sodium
hypobromite, potassium iodide and sulphuric acid were used.(Hashmi, Elahi, and Ali 1963)

3.2.2 Determination of sulfur in organic compounds by gravimetric method:

Procedure: Transfer a 5-g sample to a 400-ml beaker and add 40 ml of nitric acid and 40 ml
of hydrochloric acid. Curry along a blank cover with a watch glass and boil down to about
20-ml. Add 25 ml of perchloric acid boil to fumes of perchloric acid and fume for several min
add nitric acid dropwise until the solution is colorless or only slightly yellow. If it is
suspected that tin or antimony are present add 10 ml of hydrobromic acid (48 %) evaporate to
fumes with the cover lid ajar and continue fuming until the volume of perchloric acid is about
10 ml wash down the watch glass and sides of the beaker with water and evaporate to fumes
again. Cool and dilute to about 200 ml with water heat to boiling add 20 ml of barium
chloride solution, and then boil for 2 min allow to stand overnight at room temperature. Filter
through a tared sintered porcelain crucible of fine porosity, and transfer and wash with water.
Dry the crucible at 1500C for 15 min. heat at 7500C for 30 min, cool in a desiccator and
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

weigh.(Sudo et al. 1959)

4. Data Analysis

4.1 Thermodynamics of Liquid-liquid equilibria:-

The chemical potential (μi) governs mass transfer in a closed system and at equilibrium, μ i
must be uniform throughout the entire systems. The chemical potential uniformity at
equilibrium for a heterogeneous closed system consisting π phases and N components at
constant pressure and temperature is given as follows(Li 2015)
μ i1 =μi 2=… μ i π
Where i is the component under consideration. While it is difficult to compute an absolute
value of the chemical potential, computing the changes of the chemical potential that
accompany changes in temperature, pressure and compositions is feasible(Li 2015). For the
two phase and multicomponent systems the phase equilibria is given by the following
equations
f i v =f i l
f i L1=f i L2
The liquid-liquid equilibrium data is rewrite by the isoactivity equations
x i I∗γ i I =x i II ∗γ i II
During the calculations of LLE we need to use two approaches first is the minimization of
Gibbs free energy and second one is solving of isoactivity equations(Li 2015).
4.2 Thermodynamic Models:

Since the 1950s, intensive attention has been given to the development of thermodynamic
models to quantify deviation of liquid mixtures from ideal solution. The deviations are
usually characterised by activity coefficients. These models are mainly based on developing
excess-Gibbs-energy equations and cover both aqueous electrolyte and organic non-
electrolyte systems. Initially these models are correlative and require a group of binary
interaction parameters to be regressed from available experimental data, and then the
correlations can be extended to conditions beyond where the data for parameter regression
are obtained. Gradually these binary parameters are generalized to a wider range of data or
are attributed to basic functional groups of molecules thus entitling these models with
predictive capabilities. In addition, thermodynamic models based on quantum mechanics are
emerging with the development of powerful computers(Li 2015).
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

4.2.1 Wohl’s Three suffix Model:

Most of the equations relating activity coefficient and concentration of the solution were
derived from these excess free energy relationships. Wohl’s proposed, statistically, a general
method for expressing excess free energy and provided some rough physical significance to
the various parameters appearing in the equations. Wohl’s equation for excess free energy
contained terms for compositions, effective molal volumes and effective volumetric fraction
of the separate constituents of the solution. From these equations, the following empirical
relations for activity coefficient could be written(Narayanan n.d.).
q1
( (
ln γ 1=z 22 A+2 B
q2 ))
− A z1

q2
( (
ln γ 22=z 21 B+2 A
q1 ))
−B z 2

z1 and z2 are the effective volume fractions of the separate components in the solution and q 1
and q2 are the effective molal volumes. z and q are related as:
x1
z 1=
q2
x1 + x 2
( )
q1
x2
z 2=
q1
x2 + x 1
( )
q2
It involves three parameters, A, B and (q1/q2) which are characteristics of the binary system.
4.2.2 Morgules Model:

When the term (q1/q2) is unity in above equation, we get the following expression, which is
known as the Margules three-suffix equation.(Narayanan n.d.)

ln γ 1=x 22 [ A +2 ( B−A ) x 1 ]= (2 B− A ) x 22 +2 ( A−B ) x 32

ln γ 2=x 21 [ B+2 ( A−B ) x 2 ]=( 2 A−B ) x 21+2 ( B− A ) x 31


Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

The constant A in the above equation is the terminal value of ln g1 at x 1 = 0 and the constant
B is the terminal value of lng2 at x2 = 0. When A = B, the Margules equation takes the
following simple form.
ln γ 1= A∗x 22 ln γ 2= A∗x 21

4.2.3 Wilson Model:

The Wilson model uses the concept of “local composition” and derives the equations on the
basis of two assumptions. First, it is assume that the free energy of mixing is similar to the
Flory-Huggins equation:
gm
=∑ x i∗lnζ i
RT i

where ζi is the “local” volume fraction of component i about a central molecule of the same
type.
The activity coefficient model for the multicomponent proposed by the Wilson is,
ln γ i=−ln ⁡(1−∑ x i A ji )+1−∑ ¿ ¿
i j

The Wilson model has two binary interaction parameters for each pair of components and is
able to predict multi-component properties from binary data. However, the representation of
systems with negative deviations from ideality is not as good as that of systems with positive
deviations. More importantly, the Wilson model is unable to predict limited miscibility thus
should only be used for completely miscible systems where a single liquid phase is
present(Anon n.d.). This drawback significantly limits its usage in solvent extraction(Li
2015).
4.2.4 NRTL Model:

The non-random two liquid (NRTL) model use the concept of “local composition” and
derives the equation of excess Gibbs energy in a somewhat more rigorous way.
The non-randomness of mixing is taken into consideration in the NRTL model Wilson
suggested a relation between local mole fraction x11 of molecules 1 and local mole fraction
x21 of molecules 2, which are in the immediate neighborhood of molecule 1:
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

−α g
x21
=
x 2 exp( RT )
12 12

x 11 −α g
x exp (
RT )
12 11
1

where α12 is a constant characteristic of the non-randomness of the mixture. Interchanging


subscripts 1 and 2, energies of interaction between a 1-2 and 1-1 pair of molecules (g12 = g21).
The overall mole fractions in the mixture are x1 and x2(H. and J.M. 1968).
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

The NRTL model generally predicts large heats of mixing, which is characteristic of
electrolyte solutions. The generalised form of the NRTL equation for solution containing
multiple components is as follows:
N N N
gE
=∑ xi ∑ τjiGjixj ¿/ ∑ Gkixk ¿
RT i=1 j=1 k=1

Gij=exp ⁡¿
And
gij−gji
τij=
RT

Here, gij is an energy parameter that characterizes the interaction of species i and j, and the
parameter αij=αji is related to the nonrandomness in the mixture (α ji =0 corresponds to
complete randomness, or an ideal solution).(Simoni et al. 2008)
The activity coefficient is obtained by appropriate differentiation of the above equation,
(Tasrios 1973)
N

∑ τ ij G ji x j N
x j Gij
j=1
lnγi= N
+∑ N
¿)
j=1
∑ G ki x k ∑ G ki x k
k=1 k=1

In this model, each pair of molecules have two adjustable energy parameters (τ ji and τji) and
one non-randomness parameter (αji) that can be either adjustable or fixed to characterise the
non-ideality of solutions. The model is able to correlate VLE and LLE systems with
satisfactory accuracy and has the capability to predict equilibria of ternary systems from
binary data, including strongly non-ideal mixtures, especially partially immiscible systems.

4.2.5 UNIQUAC Model:

A few years after proposal of the NRTL model, another model was derived by extending and
generalizing the quasi-chemical theory of Guggenheim. The resulting universal quasi-
chemical equation (UNIQUAC)(Abrams and Prausnitz 1975) turned out to be applicable to a
wide range of non-electrolyte systems, including polymer solutions and the model reduces to
several well-known equations including the NRTL and Wilson model when well-defined
simplifications are made. The excess molar Gibbs free energy of the UNIQUAC model has
two parts, namely a combinatorial part and a residual part. The combinatorial part describes
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

the dominant entropic contribution and depends on the composition and the sizes and shapes
of the molecules. Thus, it requires only pure-component data which is given as constant. The
residual part accounts for the enthalpy of mixing and depends also on the intermolecular
forces on top of the composition and pure-component data. Therefore, the residual part
contains the two binary adjustable parameters for each molecular pair(Li 2015). The equation
for the UNIQUAC model is
g E g comb gres
= +
RT RT RT
g comb N ∅i N
θ
=∑ x i ln ⁡( )+ 5 ∑ qi xi ln ⁡( i )
RT i=1 xi i=1 ∅i

N
gres
=−∑ q i x i ln ⁡¿ ¿
RT i=1

r i xi
∅ i= N

∑ r j xj
i=1

qi xi
θi = N

∑ qj x j
j=1

And
−∆ uij
τ ij =exp ⁡( )
RT

Here, ri and qi represent a relative volume and surface area, respectively, for component i. It
follows that Φi and θi are volume and surface area fractions, respectively, for component i.
The binary interaction parameters ∆uij (or the equivalent τij) are estimated from experimental
data(Simoni et al. 2008).
The activity coefficient for component i from the above equation becomes(Abrams and
Prausnitz 1975)
N N N
∅i θi θ j τ ij
ln γ i=ln
xi ( )
+5 qi ln
∅i i ( )
+l −(∅ ¿ ¿ i/x i ) ∑ x j l j −qi ln ⁡( ∑ θ j τ ji )+q i−q i ∑
j=1 j=1 j=1
N

∑ θk τ kj
¿

k=1
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Where,
l j =5 ( r i−q i )−(r j −1)
The UNIQUAC model uses only two adjustable binary parameters for each pair of molecules,
albeit it requires pure-component constants. The model is applicable to a wide range of
mixtures for both VLE and LLE with accuracy comparable to that of the NRTL model.
However, similar to the NRTL model, the UNIQUAC model is also a correlative model with
little predictive capability.

4.2.6 UNIFAC Model:

Following the UNIQUAC model, a group-contribution method was developed. The method,
namely UNIFAC model (UNIQUAC Functional-group Activity Coefficient)(Com- and
Engineering 1975), combines the solution-of-functional-groups concept with the extension of
the UNIQUAC method and contains two adjustable parameters for each pair of functional
groups. Essentially the UNIFAC model is similar to the UNIQUAC model except for that the
former splits the interactions between molecules to that between functional groups. This
treatment significantly reduces the number of interaction parameters since the number of
functional groups is much fewer than that of chemical compounds. More importantly, with
parameters characterising interactions between pairs of functional groups obtained from
existing equilibrium systems, the model allows calculation of other systems that are not
involved in the parameter regression. Therefore, the UNIFAC model is a predictive model for
non- electrolytes.
In the UNIFAC method, the combinatorial part of the UNIQUAC activity coefficients
equation is used directly. Only pure component properties enter into this equation. Parameters
ri and qi are calculated as the sum of the group volume and area parameters, Rk, and Qk, of
functional groups, given below:
r i=∑ ϑik R k
k

q i=∑ ϑik Qk
k

where υk (i) is the number of groups of type k in molecules i. Group volume and area
parameters Rk and Qk are obtained from the van der Waals group volume and surface area
(Com- and Engineering 1975).
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

The residual part of the activity coefficient is given as:


ln γ i=∑ ϑ ik [ln Γ k −ln Γ ik ]
k

where Γk is the group residual activity coefficient and Γ k (i) is the residual activity coefficient
of group k in a reference solution containing only molecules of type i.
The group activity coefficient Γk is is found from an expression similar to above equation and
it also holds for Γki:
ln Γ k =Q k ¿
where Θm is the area fraction of group m, and the sums are over all different groups. Θ m is
calculated in a manner similar to that for θi:
Qm X m
Θ m=
∑ Qn X n
n

where Xm is the mole fraction of group m in the mixture.


Group parameters obtained from a wide range of experimental phase equilibrium systems for
a collection of functional groups were given by (Com- and Engineering 1975). With these
parameters, activity coefficients in infinite dilution, binary and ternary LLE systems can be
predicted with satisfactory accuracy.

4.2.7 COSMO-RS:

COSMO-RS (Conductor like Screening Model for Real Solvents)(Klamt 1995) is also a
semi-theoretical model, whereas, it is essentially different from the models reviewed above
since it is based on information obtained from quantum chemistry and does not require binary
interaction parameters. As an initial step, COSMO-RS performs a quantum chemistry
calculation using COSMO to obtain the screening charge density σ on the surface of
molecules, which is the most time consuming step and fortunately the information can be
stored in a data base for subsequent use. The screening charge density σ is then combined
into a statistical thermodynamic methodology to calculate the chemical potentials of
molecules, which are the basis of calculations of thermodynamic properties including activity
coefficients and vapour pressure.
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Throughout the COSMO-RS, the interactions arise from the screening charge density of each
molecule, namely the σ-profile. The σ-profile of a mixture, P S(σ), is assumed to be the sum of
the σ-profiles of all the components weighted by mole fractions:
Ps ( σ ) =∑ x i pi ( σ )
i

4.3 Summary of Thermodynamic Models:

The Wilson model first used the local composition concept and satisfactorily correlated a
variety of VLE systems with two binary parameters for each pair of molecules, however, it
failed to correlate LLE systems where the behaviour of components are highly non-ideal. The
inheritor of the local composition concept, the NRTL model, incorporated the two-liquid
theory and introduced the non-randomness parameters, it successfully correlated both VLE
and LLE systems including highly non-ideal systems.
The UNIQUAC model is established on the basis of quasi-chemical analysis with two
adjustable parameters for each pair of molecules. It is comparable to the NRTL model in
terms of correlating equilibrium data. It is also the basis for development of the UNIFAC
model, which is a predictive model characterising the non-electrolyte systems by distributing
the interactions to functional groups. With well regressed parameters from a wide range of
experimental data, the UNIFAC model usually produces satisfactory predictions.
COSMO-RS has similarity with the UNIFAC model in terms of statistical thermodynamics,
however, it is supposed to be more rigorous than other models because it starts from the
surface charge density of molecules obtained from quantum chemistry calculations. Besides,
it does not require binary interaction parameters and theoretically can predict systems
involving any component (non-electrolytes) regardless of whether experimental data is
available or not.(Zheng et al. 2014).
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

4.4 Model fitting and optimization:

The correlation of the experimental data was done with the NRTL equation. The value of the
non-randomness parameter,α was fixed to 0.1, 0.2, and 0.3. The binary interaction parameters
were produced by mathematical software “MATLAB” and programme of it is given in
appendix. It uses two objective functions first was residual function (F) and second was mean
error of the solute distribution ratio (∆β).(Alonso, Arce, Francisco, et al. 2008)
2 .5
( xijk −x ijkpred )
F=100 (∑k
min ∑ ∑
i j 6M )
2 .5
β k −β kpred

∆ β=100 ( ∑
( βk ) )
k M
Where xi is the experimental composition in mole fraction, and xipred is the corresponding
calculated composition for component i. Other subscripts and superscripts are: j for phases (I,
II) and k for tie-lines. M refers to the number of experimental tie-lines.
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Table : Binary interaction parameters present in literature and predicted using NRTL
model

Sr. Ionic Liquid Sulfur Solvent Result (alfa=.3) Reference


No Compone Interaction parameters
Literature Model
nt ∆gij/j. ∆gji/j. ∆gij/j. ∆gji/j.
mol-1 mol-1 mol-1 mol-1
1 [C2mim]-[EtSO4] Thiophene Toluene -2471.5 11655 -2476 11983 (Alonso,
2861 16593 2759 16835
Arce,
-829.09 -249.6 -736 -231
2 [C2mim]-[EtSO4] Thiophene 2,2,4- -972.71 9057.8 -998.32 9179.7 Francisco,
Trimethyl 10298 10582 10154 10993 et al.
4488.7 -964.65 4154.78 -991.56
pentane 2008)
3 [C8mim]-[BF4] Thiophene n-Hexane -6029.8 16296 6252 16943.4 (Alonso et
4 al. 2007)
3303.9 9842.7 3035.05 9949.8
1038.1 -1209.8 1049.29 -
1168.27
4 [C8mim]-[BF4] Thiophene Cyclohex -117.14 6893.4 -149.98 6559.3
ane 3579.4 6078.4 3921.78 6492
2907.8 1550.5 2994.4 1108.9
5 [C8mim]-[NTf2] Thiophene n- -5466.8 14703.4 5480.8 14338 (Alonso,
dodecane 4564 9848.5 4668 9586.9 Arce,
711.5 -2393.4 739.5 2307.5
6 [C8mim]-[NTf2] Thiophene Cyclohex -6775.2 17101 6506.4 17041 Francisco,

ane 1111 13295 1117 13472 et al.


-1072.4 754.33 1076 704.5
2008;
Alonso,
Arce, and
Soto 2008)
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Parity plot
1

0.9

0.8

0.7
x1
Experimental

0.6 diagonal line


x2
0.5 x3

0.4

0.3

0.2

0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Model predicted

Figure : Experimental and correlated data of the ternary system ([C8mim]-[NTf2] +


Thiophene + Cyclohexane) (Alonso, Arce, Francisco, et al. 2008)

Parity plot
1

0.9

0.8

0.7
x1
Experimental

0.6 diagonal line


x2
0.5 x3

0.4

0.3

0.2

0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Model predicted

Figure : Experimental and correlated data of the ternary system ([C8mim]-[NTf2] +


Thiophene + Cyclohexane(Alonso, Arce, Francisco, et al. 2008; Alonso, Arce, and Soto
2008).
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

5. Work done so far:

6. Summary:
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

7. References

1. Abrams, Denis S., and John M. Prausnitz. 1975. “Statistical Thermodynamics of


Liquid Mixtures: A New Expression for the Excess Gibbs Energy of Partly or
Completely Miscible Systems.” AIChE Journal 21(1):116–28. doi:
10.1002/aic.690210115.
2. Alonso, Luisa, Alberto Arce, María Francisco, and Ana Soto. 2008. “Liquid-Liquid
Equilibria of ([ C 2 Mim ][ EtSO 4 ] + Experimental Data and Correlation.” 1355–63.
doi: 10.1007/s10953-008-9320-0.
3. Alonso, Luisa, Alberto Arce, and Oscar Rodrı. 2007. “Liquid - Liquid Equilibria for
Systems Composed by 1-Methyl-3-Octylimidazolium Tetrafluoroborate Ionic Liquid ,
Thiophene , and n -Hexane or Cyclohexane.” 1729–32.
4. Alonso, Luisa, Alberto Arce, and Ana Soto. 2008. “Liquid - Liquid Equilibria for [ C
8 Mim ][ NTf 2 ] + Thiophene + 2 , 2 , 4-Trimethylpentane or + Toluene.” 1750–55.
5. Anon. n.d. “Molecular Thermodynamics of Fluid-Phase Equilibria.Pdf.”
6. Anon. n.d. “WO2003040264A1.Pdf.”
7. Aznar, M. 2007. “CORRELATION OF ( LIQUID + LIQUID ) EQUILIBRIUM OF
SYSTEMS INCLUDING IONIC LIQUIDS.” 24(01):143–49.
8. Ban, Li-li, Ping Liu, Cun-hua Ma, and Bin Dai. 2013. “Deep Extractive
Desulfurization of Diesel Fuels by FeCl 3 / Ionic Liquids.” Chinese Chemical Letters
24(8):755–58. doi: 10.1016/j.cclet.2013.04.031.
9. Banerjee, Tamal, Ranjan Kumar Sahoo, Rakesh Kumar, Ashok Khanna, and Recently
Klamt. 2007. “Multicomponent Liquid - Liquid Equilibria Prediction for Aromatic
Extraction Systems Using COSMO-RS.” 1292–1304.
10. Chang, Bong-kyu, San Rafael, Huping Luo, and Moinuddin Ahmed. 2009. “( 12 )
Patent Application Publication ( 10 ) Pub . No .: US 2009 / 0170688 A1 Figure.”
1(19).
11. CHU, Xuemei, Yufeng HU, Jiguang LI, Qianqing LIANG, Yansheng LIU, Xianming
ZHANG, Xiaoming PENG, and Wenjia YUE. 2008. “Desulfurization of Diesel Fuel
by Extraction with [BF4]--Based Ionic Liquids.” Chinese Journal of Chemical
Engineering 16(6):881–84. doi: 10.1016/S1004-9541(09)60010-0.
12. Com-, Atomic Energy, and Technology Chemical Engineering. 1975. “Group-Contri
Bution Estimation of Activity Coefficients in Nonideal Liquid Mixtures.” 21(6).
13. Data, Related U. S. Application. 2015. “( 12 ) Patent Application Publication ( 10 )
Pub . No .: US 2015 / 0165430 A1.” 1(19).
14. Dharaskar, Swapnil A., Kailas L. Wasewar, Mahesh N. Varma, and Diwakar Z.
Shende. 2013. “Extractive Deep Desulfurization of Liquid Fuels Using Lewis-Based
Ionic Liquids.” 2013.
15. Ferreira, Ana R., Mara G. Freire, Jorge C. Ribeiro, Fernando M. Lopes, João G.
Crespo, and João A. P. Coutinho. 2014. “Ionic Liquids for Thiols Desulfurization :
Experimental Liquid – Liquid Equilibrium and COSMO-RS Description.” FUEL
128:314–29. doi: 10.1016/j.fuel.2014.03.020.
16. Gao, Hongshuai, Yuguang Li, Yong Wu, Mingfang Luo, and Qiang Li. 2009.
“Extractive Desulfurization of Fuel Using 3-Methylpyridinium-Based Ionic Liquids.”
(18):5108–12.
17. H., Renon, and Prausnitz J.M. 1968. “Local Compositions in Thermodynamic Excess
Functions for Liquid Mixtures.” AICHE Journal 14(1):135–44.
18. Hashmi, M. H., Manzoor Elahi, and Ehsan Ali. 1963. “The Volumetric Determination
of Sulphur in Organic Compounds by Oxidation with Hypobromite Solution.” The
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Analyst 88(1043):140–42. doi: 10.1039/AN9638800140.


19. Hsu, Chang S., K. Qian, T. Aczel, S. C. Blum, W. N. Olmstead, L. H. Kaplan, W. K.
Robbins, W. W. Schulz, and M. A. McLean. 1991. “On-Line Liquid
Chromatography/Mass Spectrometry for Heavy Hydrocarbon Characterization.”
Energy and Fuels 5(3):395–98. doi: 10.1021/ef00027a007.
20. Jeuniaux, C. 1993. “Introductory Speech by the Dean of the Faculty of Sciences,
Liège University.” Biochemical Systematics and Ecology 21(1):1. doi: 10.1016/0305-
1978(93)90003-A.
21. Klamt, Andreas. 1995. “Conductor-like Screening Model for Real Solvents : A New
Approach to the Quantitative Calculation of Solvation Phenomena.” 2224–35.
22. Li, Zheng. 2015. “Thermodynamic Modelling of Liquid – Liquid Equilibria Using the
Nonrandom Two-Liquid Model and Its Applications.” (August).
23. Likhanova, Victorvna, Natalya Victorovna Likhanova, and Atepehuacan Mx. 2009. “(
12 ) Patent Application Publication ( 10 ) Pub . No .: US 2009 / 0288992 A1.” 1(19).
24. Lucero, Guzmán, Diego Javier, and Gymn Lucero. 2011. “( 12 ) Patent Application
Publication ( 10 ) Pub . No .: US 2011 / 0215052 A1.” 1(19).
25. Narayanan, K. V. n.d. A Textbook of Chemical Engineering Thermodynamics.
26. Nie, Yi, Chunxi Li, Aijun Sun, Hong Meng, and Zihao Wang. 2006. “Extractive
Desulfurization of Gasoline Using Imidazolium-Based Phosphoric Ionic Liquids.”
(6):2083–87.
27. Parmentier, Dries, Yash A. Valia, Sybrand J. Metz, Odne S. Burheim, and Maaike C.
Kroon. 2015. “Hydrometallurgy Regeneration of the Ionic Liquid
Tetraoctylammonium Oleate after Metal Extraction.” Hydrometallurgy 158:56–60.
doi: 10.1016/j.hydromet.2015.10.006.
28. Ramon, San, Huping Luo, Bong Kyu Chang, Hye-kyung Timken, Steven Xugi Song,
and Michael Sean Driver. 2017. “( 12 ) Patent Application Publication ( 10 ) Pub .
No .: US 2017 / 0216827 A1.” 1(19).
29. Saleh, Tawfik A. 2020. “Characterization, Determination and Elimination
Technologies for Sulfur from Petroleum: Toward Cleaner Fuel and a Safe
Environment.” Trends in Environmental Analytical Chemistry 25. doi:
10.1016/j.teac.2020.e00080.
30. Sato, Takeshi(Canon). 2020. “United States Patent : 5861366 United States Patent :
5861366.” New York 2(19):1–29.
31. Siddiqui, Mohammad Nahid, and M. A. Gondal. 2014. “Desulfurization of Model
Fuel Oil Using Novel Ionic Liquids.” (April 2013).
32. Simoni, Luke D., Youdong Lin, Joan F. Brennecke, and Mark A. Stadtherr. 2008.
“Modeling Liquid - Liquid Equilibrium of Ionic Liquid Systems with NRTL ,.” 256–
72.
33. Singh, Sandip K., and Anthony W. Savoy. 2020. “Ionic Liquids Synthesis and
Applications: An Overview.” Journal of Molecular Liquids 297.
34. Soto, Ana, Luisa Alonso, and Alberto Arce. 2008. “( Liquid + Liquid ) Equilibria of
[ C 8 Mim ][ NTf 2 ] Ionic Liquid with a Sulfur-Component and Hydrocarbons.”
40:265–70. doi: 10.1016/j.jct.2007.06.016.
35. Sudo, Takero, Daizo Shimoe, Takatomo Tsujii, and Yukiko Soeda. 1959.
“Microdetermination of Sulfur in Organic Compounds.” Bunseki Kagaku 8(1):42–48.
doi: 10.2116/bunsekikagaku.8.42.
36. Tasrios, Dimitrios P. 1973. “Prediction of Ternary Liquid-Liquid Equilibrium from
Binary Data.” 12(3):271–74.
37. Taylor, Publisher, L. Gao, H. Wan, M. Han, and G. Guan. n.d. “Petroleum Science
and Technology Deep Desulfurization of Model Oil by Extraction with a Low-
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

Viscosity Ionic Liquid [ BMIM ] SCN Deep Desulfurization of Model Oil by


Extraction with a Low-Viscosity Ionic Liquid [ BMIM ] SCN.” (November 2014):37–
41. doi: 10.1080/10916466.2011.653466.
38. Thiophene, Liquid, and T. K. 2014. “Ternary Liquid – Liquid Equilibria for Mixtures
of { Ionic.” doi: 10.1007/s10953-014-0276-y.
39. Zheng, Yi, Jia Zhao, Fuqing Xu, and Yebo Li. 2014. “Pretreatment of Lignocellulosic
Biomass for Enhanced Biogas Production.” Progress in Energy and Combustion
Science 42(1):35–53.
40. 1386 .‫ ابوعلی‬,‫سینا‬. No Title ‫قانون در طب‬.
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

8. Appendices:

A. Following is the code for objective function for optimization using NRTL

function f=fun_NRTL121(x)
R=8.314;
T=298.15;
% Experimental Data
x1alfa=[0.000 .000 .003 .004 .009 .000 .000 .000 .000 .000];
x2alfa=[0 .097 .213 .424 .55 .659 .853 .903 .943 1.00];
x3alfa=[1 .903 .784 .572 .441 .341 .147 .097 .057 0.00];
x1beta=[1.00 .907 .788 .683 .615 .569 .555 .504 .443 .288];
x2beta=[0.00 .093 .212 .317 .385 .431 .445 .499 .557 .712 ];
x3beta=[0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000];
alfa=.3;
t12=x(1)./(R*T); % deltag12=x(1)
t21=x(2)./(R*T); % deltag21=x(2)
t13=x(3)./(R*T); % deltag13=x(3)
t31=x(4)./(R*T);% deltag31=x(4)
t23=x(5)./(R*T);% deltag23=x(5)
t32=x(6)./(R*T);% deltag32=x(6)
% captital G
G12=exp(-alfa.*t12);
G21=exp(-alfa.*t21);
G13=exp(-alfa.*t13);
G31=exp(-alfa.*t31);
G23=exp(-alfa.*t23);
G32=exp(-alfa.*t32);
fi1=x1alfa+G21.*x2alfa+G31.*x3alfa;
fi2=G12.*x1alfa+x2alfa+G32.*x3alfa;
fi3=G13.*x1alfa+G23.*x2alfa+x3alfa;
% find out theta
theta1=x2alfa.*t21.*G21+x3alfa.*t31.*G31;
theta2=x1alfa.*t12.*G12+x3alfa.*t32.*G32;
theta3=x1alfa.*t13.*G13+x2alfa.*t23.*G23;
% activity coeficient for the 1st phase
gamma1alfa=exp(theta1./fi1 - (x1alfa.*theta1./fi1.^2)+
(x2alfa.*G12/fi2).*(t12-theta2./fi2)+(x3alfa.*G13./fi3).*(t13-
theta3./fi3));
gamma2alfa=exp(theta2./fi2 - (x2alfa.*theta2./fi2.^2)+
(x1alfa.*G21/fi1).*(t21-theta1./fi1)+(x3alfa.*G23./fi3).*(t23-
theta3./fi3));
gamma3alfa=exp(theta3./fi3 - (x3alfa.*theta3./fi3.^2)+
(x1alfa.*G31/fi1).*(t31-theta1./fi1)+(x2alfa.*G32./fi2).*(t32-
theta2./fi2));
% fi
fi1beta=x1beta+G21.*x2beta+G31.*x3beta;
fi2beta=G12.*x1beta+x2beta+G32.*x3beta;
fi3beta=G13.*x1beta+G23.*x2beta+x3beta;
% find out theta
theta1beta=x2beta.*t21*G21+x3beta.*t31.*G31;
theta2beta=x1beta.*t12*G12+x3beta.*t32.*G32;
theta3beta=x1beta.*t13*G13+x2beta.*t23.*G23;
% activity coefficient for the 1st phase
gamma1beta=exp(theta1beta./fi1beta - (x1beta.*theta1beta./fi1beta.^2)+
(x2beta.*G12./fi2beta).*(t12-theta2beta./fi2beta)+
(x3beta.*G13./fi3beta).*(t13-theta3beta./fi3beta));
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

gamma2beta=exp(theta2beta./fi2beta - (x2beta.*theta2beta./fi2beta.^2)+
(x1beta.*G21./fi1beta).*(t21-theta1beta./fi1beta)+
(x3beta.*G23./fi3beta).*(t23-theta3beta./fi3beta));
gamma3beta=exp(theta3beta./fi3beta - (x3beta.*theta3beta./fi3beta.^2)+
(x1beta.*G31./fi1beta).*(t31-theta1beta./fi1beta)+
(x2beta.*G32./fi2beta).*(t32-theta2beta./fi2beta));
% x1betapred=(gamma1alfa./gamma1beta).*x1alfa;
x2betapred=(gamma2alfa./gamma2beta).*x2alfa;
%x3betapred=(gamma3alfa./gamma3beta).*x3alfa;
%x1alfapred=(gamma1beta./gamma1alfa).*x1beta;
x2alfapred=(gamma2beta./gamma2alfa).*x2beta;
%x3alfapred=(gamma3beta./gamma3alfa).*x3beta;
Bk=x2beta./x2alfa;
Bkpred=x2betapred./x2alfapred;
ErrorDB=((Bk-Bkpred)./Bk).^2;
ErrorDB(1)=0;
% Objective functions
f(1)=100*(sum((x1alfa.*gamma1alfa-x1beta.*gamma1beta).^2+
(x2alfa.*gamma2alfa-x2beta.*gamma2beta).^2+(x3alfa.*gamma3alfa-
x3beta.*gamma3beta).^2)/(6*length(x1alfa)))^.5;
f(2)=100*(sum(ErrorDB)/length(x1alfa))^.5;
end

B. Following is the code to run optimization


clc
clear
nvars=6;
lb=[-1000 9000 10000 10500 4000 -1000];
ub=[-900 9200 10500 11000 4500 -900];
[x,fval] = gamultiobj(@fun_NRTL121,nvars,[],[],[],[],lb,ub);

C. Following is the code for the result obtain from optimization

clc;
clear;
R=8.314;
T=298.15;
alfa=.2;
%% Experimenta data
x1alfa=[0.000 .000 .003 .004 .009 .000 .000 .000 .000 .000];
x2alfa=[0 .097 .213 .424 .55 .659 .853 .903 .943 1.00];
x3alfa=[1 .903 .784 .572 .441 .341 .147 .097 .057 0.00];
x1beta=[1.00 .907 .788 .683 .615 .569 .555 .504 .443 .288];
x2beta=[0.00 .093 .212 .317 .385 .431 .445 .499 .557 .712 ];
x3beta=[0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000];
%% Binary interaction parameters
x(1)=-10028;
x(2)=22860;
x(3)=-6439;
x(4)=32932;
x(5)=-8592;
x(6)=10044;

t12=x(1)./(R*T); % deltag12=x(1)
t21=x(2)./(R*T); % deltag21=x(2)
t13=x(3)./(R*T); % deltag13=x(3)
t31=x(4)./(R*T);% deltag31=x(4)
t23=x(5)./(R*T);% deltag23=x(5)
t32=x(6)./(R*T);% deltag32=x(6)
% captital G
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

G12=exp(-alfa.*t12);
G21=exp(-alfa.*t21);
G13=exp(-alfa.*t13);
G31=exp(-alfa.*t31);
G23=exp(-alfa.*t23);
G32=exp(-alfa.*t32);
fi1=x1alfa+G21.*x2alfa+G31.*x3alfa;
fi2=G12.*x1alfa+x2alfa+G32.*x3alfa;
fi3=G13.*x1alfa+G23.*x2alfa+x3alfa;
% find out theta
theta1=x2alfa.*t21.*G21+x3alfa.*t31.*G31;
theta2=x1alfa.*t12.*G12+x3alfa.*t32.*G32;
theta3=x1alfa.*t13.*G13+x2alfa.*t23.*G23;
% activity coeficient for the 1st phase
gamma1alfa=exp(theta1./fi1 - (x1alfa.*theta1./fi1.^2)+
(x2alfa.*G12/fi2).*(t12-theta2./fi2)+(x3alfa.*G13./fi3).*(t13-
theta3./fi3));
gamma2alfa=exp(theta2./fi2 - (x2alfa.*theta2./fi2.^2)+
(x1alfa.*G21/fi1).*(t21-theta1./fi1)+(x3alfa.*G23./fi3).*(t23-
theta3./fi3));
gamma3alfa=exp(theta3./fi3 - (x3alfa.*theta3./fi3.^2)+
(x1alfa.*G31/fi1).*(t31-theta1./fi1)+(x2alfa.*G32./fi2).*(t32-
theta2./fi2));
% fi
fi1beta=x1beta+G21.*x2beta+G31.*x3beta;
fi2beta=G12.*x1beta+x2beta+G32.*x3beta;
fi3beta=G13.*x1beta+G23.*x2beta+x3beta;
% find out theta
theta1beta=x2beta.*t21*G21+x3beta.*t31.*G31;
theta2beta=x1beta.*t12*G12+x3beta.*t32.*G32;
theta3beta=x1beta.*t13*G13+x2beta.*t23.*G23;
% activity coefficient for the 1st phase
gamma1beta=exp(theta1beta./fi1beta - (x1beta.*theta1beta./fi1beta.^2)+
(x2beta.*G12./fi2beta).*(t12-theta2beta./fi2beta)+
(x3beta.*G13./fi3beta).*(t13-theta3beta./fi3beta));
gamma2beta=exp(theta2beta./fi2beta - (x2beta.*theta2beta./fi2beta.^2)+
(x1beta.*G21./fi1beta).*(t21-theta1beta./fi1beta)+
(x3beta.*G23./fi3beta).*(t23-theta3beta./fi3beta));
gamma3beta=exp(theta3beta./fi3beta - (x3beta.*theta3beta./fi3beta.^2)+
(x1beta.*G31./fi1beta).*(t31-theta1beta./fi1beta)+
(x2beta.*G32./fi2beta).*(t32-theta2beta./fi2beta));
%% Predicted value
x1betapred=(gamma1alfa./gamma1beta).*x1alfa;
x2betapred=(gamma2alfa./gamma2beta).*x2alfa;
x3betapred=(gamma3alfa./gamma3beta).*x3alfa;
x1alfapred=(gamma1beta./gamma1alfa).*x1beta;
x2alfapred=(gamma2beta./gamma2alfa).*x2beta;
x3alfapred=(gamma3beta./gamma3alfa).*x3beta;
%% Coefficient of determination or goodness of fit
Error1beta=(x1beta-x1betapred).^2;
Error2beta=(x2beta-x2betapred).^2;
Error3beta=(x3beta-x3betapred).^2;
Error1alfa=(x1alfa-x1alfapred).^2;
Error2alfa=(x2alfa-x2alfapred).^2;
Error3alfa=(x3alfa-x3alfapred).^2;
a1=mean(x1alfa);
a2=mean(x2alfa);
a3=mean(x3alfa);
a4=mean(x1beta);
a5=mean(x2beta);
a6=mean(x3beta);
Selection and regeneration of potential ionic liquid for the hydro-processing feedstock

error1beta=(x1beta-a4).^2;
error2beta=(x2beta-a5).^2;
error3beta=(x3beta-a6).^2;
error1alfa=(x1alfa-a1).^2;
error2alfa=(x2alfa-a2).^2;
error3alfa=(x3alfa-a3).^2;
sse=sum(Error2beta+Error3beta+Error1alfa+Error2alfa+Error3alfa);
sst=sum(error2beta+error3beta+error1alfa+error2alfa+error3alfa);
R2=(sst-sse)/sst;
fprintf('Coefficient of dettermination=\n');
disp(R2);
plot(x1alfapred,x1alfa,'r*')
hold on
plot([0 1],[0 1])
plot(x2alfapred,x2alfa,'go')
plot(x3alfapred,x3alfa,'b^')
xlabel('model predicted')
ylabel('Experimental')
legend('x1','diagonal line','x2','x3')
title('parity plot')

You might also like