Académique Documents
Professionnel Documents
Culture Documents
GPEC V3.2.0
Martn Cismondi and Martn Gaitn, 2012
This user guide by:
Sofa Stellin, Melisa Gomez, Martn Gaitn and Martn Cismondi
December 2012
IDTQ (UNC-CONICET)
www.idtq.efn.uncor.edu
http://gpec.phasety.com
E-MAIL: gpec@phasety.com
BACKGROUND
GPEC is a software originally created over the years 2005-2009 in PLAPIQUICONICET (Bahia Blanca, Argentina) in a project promoted and supervised by Professor
Esteban Brignole. It is based in methods and algorithms developed mainly by Professor
Martin Cismondi in collaboration with Professor Michael Michelsen (Technical
University of Denmark) and Professor Marcelo Zabaloy (UNS-PLAPIQUI). The front-end
or visual interface in the original version was developed by Diego Nuez at PLAPIQUI,
and used to be available at www.gpec.plapiqui.edu.ar
Nowadays, GPEC continues to be updated and developed by Phasety, in
collaboration with the IDTQ Group in the FCEFyN-UNC (Universidad Nacional de
Crdoba, Argentina).
So far, no other software is known with the same or equivalent capabilities.
That is why GPEC has a growing user community in most of Europe, Latin America,
USA, Asia and Africa, and belonging not only to academic and research institutions but
also to industries.
This user guide, corresponding to the present front-end developed by Martn
Gaitn at IDTQ first and Phasety at present, is based on and includes fragments from
the last guide for the previous version of GPEC, authored by Gerardo Pisoni and Martin
Cismondi, and delivered in February 2010.
The SPHCT or Simplified Perturbed Hard Chain Theory EOS (Kim et al.,
1986).
When you first run the GPEC program, you will see the main screenshown in
Figure 1.
2.1. The main screen.
In this screen you can recognize four panels, whose titles or names are
highlighted with a red oval in Figure 1:
1. Cases panel: is the place where your defined system will appear in its
respective tab.
2. Manager panel: is the site where all the calculated diagrams will be listed.
4
3. Plots panel:in this part of the screen, graphics will be displayed in their
respective tab.
4. Info panel:is where the program gives detailed information including the
following tabs:
Error
Info
Ok
Warning
Shell. The outer layer of a program that provides the user interface,
About terminology, there are different references on the web that can be
consulted, for example: http://www.pcmag.com/encyclopedia/.
The first step required before running any application is to define a binary
system by choosing two components from the list1. This can be done by clicking on the
Define system button (
Searching bar
On the left side you can find the list of the different components from de DIPPR
database. (R.L. Rowley, Wilding, W.V., Oscarson, J.L. and collaborators, 2003)
From that list you can select the two compounds that define your binary system by
using the arrow to the right
left
.
Note that in the figure, the compounds (Carbon Dioxide-Ethane) have already
Alternatively, you can open a project saved in a previous session, which already contains two
compounds and parameters (see section 4).
can choose the model to be used from the Model drop-down list. The five equations
of state available are:
Note that in Figure 4 on the left side you can see the selected compounds. The
program shows you in the first place the lighter compound (more volatile) and below it
the heavier one. 2
Figure 4.A view of the window after defining the binary system.
The mathematical criterion in GPEC is that the more volatile compound is the one with the lowest value
12
for Tc /Pc.
As you change the model from the Model drop-down list, the parameter
columns in the component boxes will change accordingly. There are two different ways
for defining each pure compound parameter set that will be used in the calculations:
For each compound, on the left side you can see the experimental values of the
critical temperature, pressure and the acentric factor, as taken from the DIPPR
data base. Then you can obtain the corresponding values of the parameters for
the selected model by clicking the arrow
Note that the experimental critical volume is also shown initially on the left
side, but then it changes to the predicted value after clicking the arrow
If you choose the RK-PR EOS you need to provide either a temperature
(absolute or reduced) for matching the experimental saturated liquid density,
or a specification for the value of the Vc ratio.
Alternatively, you can choose to specify numerical values for the parameters, for
example the original parameters for PC-SAFT (Gross and Sadowski, 2001). In this
case, you have to activate first the parameters column by clicking the small
circle in the top of the right side. After typing the numbers, by clicking the
8
arrow
side3.
2.2.2. Binary interaction parameters: Quadratic Mixing Rules Kij and Lij.
These parameters modify the value of the cross energetic and size parameters
respectively, according to the default mixing rule for each model (default values are
zero).
You can choose either the Van der Waals combining Rule or the LorentzBerthelot combining rule (see the Other case variables box), except for PC-SAFT and
SPHCT, that were developed based on Lorentz-Berthelot combining rules.
Theoretically, these models would not admit using van der Waals combining rules due
to the physical meaning of their attractive and repulsive parameters.
In the next version of GPEC there will be an option that will allow you to make
the attractive interaction parameter Kij temperature-dependent.
Once you have parameters and critical constants consistent with each other you
are ready to run a diagram calculation by clicking the run button
specify a maximum pressure for the liquid-liquid critical line (the default value is 2000
bar, you can change this in the option Maximum pressure for LL critical line see figure
1 in the left down corner.
The types of diagrams that you can generate with GPEC are (see the Diagrams
drop-down list):
The reason why it is important to have the predicted critical constants for each component is that the
construction of a global phase equilibrium diagram is started from pure compound critical points.
Besides this, it might be important for you to know what critical point your parameters are predicting
actually.
4
If you did not click the arrow corresponding to your specification (constants or model parameters), the
calculation will be performed automatically anyway, before proceeding to the calculation of the global
phase equilibrium diagram.
Global phase equilibrium diagrams (or univariant lines diagrams): they are
shown through 3 dimensional (3-D) graphics such as P-T-x and P-T-, and also 2
dimensional (2-D) projections, including: P-T, P-z, T-z, T- and P- .
P-xy diagrams (for a specified constant T).
T-xy diagrams (for a specified constant P).
Isopheths (for a specified constant composition).
In the following sections you'll read about these different diagrams that you can
calculate using GPEC.
The inclusion of this type of diagrams is the main new feature in the present
version of GPEC. A global phase equilibrium diagram is a collection of critical lines, pure
compound vapor pressure lines and in some cases also LLV and/or azeotropic lines in
the P-T-x- space, calculated for a given binary system. All these lines are automatically
detected and calculated by GPEC according to the computational strategy and methods
proposed by Cismondi and Michelsen (2007a) and Cismondi et al. (2008).
After clicking the run button (
Manager panel a tree organizing the different diagrams generated. First of all, you
have the 3-D diagrams such as: P-T-x and P-T- (Figure 5 and 6, respectively).
Next to the Manager panel you have the Plots panel where you can visualize
the diagrams generated.
If you click on the
button you will see the plot in a full screen size. Note that
you can rotate the graphic by holding the left mouse button.
10
Below the graphic area you have a series of buttons with different functions:
11
(HOME):undoes all changes made in the graphic at that moment so that the
original view is restored.
(BACK FORWARD): is used to undo or redo an action, respectively.
(PAN): it changes the ranges for the plot by clicking and dragging indiferrent
directions (up/down or left/right) with your mouse.
(SAVE): this button enables you to save the image of the current diagram in
your computer.
The same buttons and possibilities are also available in the 2-D diagrams.
Then, if you click on the plot area with the right mouse button you have the
posibility to:
1. Eliminate some lines (and also points in the case of isopleths) just by demarking
the corresponding check box, which can be useful when some lines are very
12
close and overlapping or crossing with each other. The colors assigned to the
different types of lines, in order to distinguish them, are as follows:
Vapor pressure
green
Critical
black
LLV
red5
Azeotropic
violet
2. Change the scales. You can choose to express the 'x' and/or 'y' scales in a
logarithm form (Log x/Log y) by marking the corresponding check box.
3. Add a grid by marking the corresponding check box.
4. Add Legends. This option was not available in the previous versions of GPEC.
5. Set plot title. This enables you to change the title of the plot.
6. Set perspective. You can choose the perspective from which you want to display
and analyze the graph. This option is only logically possible for 3-D graphics.
Options 1 to 5 are also available to be used for the 2-D diagrams.
3.1.1. Visualizing different projections of a global phase equilibrium diagram: 2-D
diagrams.
The P-T projections are the ones most frequently seen in books and scientific
papers, and probably the most useful in general. Nonetheless, the information they
provide is not complete for the analysis or understanding of global phase equilibrium
diagrams. Using GPEC you can visualize different projections of the calculated global
phase equilibrium diagram (see the Manager panel): P-T diagrams, T-x diagrams, P-x
diagrams, T- diagrams, P- diagrams. These graphics are displayed in the Plots panel
in their corresponding tab. The appearance order of the different projections is: P-T, Tx, P-x, T- and finally P-. Note that on each tab, the case number appears in round
brackets.
In the following figures you can see the P-T and T- projections corresponding to
the examples in Figure 5 and 6.
5
In projections with composition or density as one of the variables, the liquid branches appear in blue.
13
Now we will focus on the P-xy diagrams. You can choose this option from the
Diagrams drop-down list by clicking on the P-xy option. Then you will see a white field
where you can enter a temperature value in Kelvin degrees (default is 300 K). After
clicking the Plot button (
temperature will appear in the screen as a new tab in the Plots panel. An example is
shown in Figure 9 for a temperature value of 250 K, in this case with an azeotropic
point, in accordance with the global projections previously shown for the
corresponding case.
An advantage of this new version of GPEC is that you can view the generated Pxy diagrams included in the 3-D Global phase diagrams (Figure 11). Note that the
isothermal line is shown with a black dotted line on the 3-D graph.
15
Figure 11. Global phase equilibrium diagram with oneP-xy diagram included.
Also, you have the option to visualize the pressure-density diagram for the
phases appearing in the P-xy diagram (Figure 12). This plot is generated jointly with the
P-xy diagram and available in a consecutive tab in the Plots panel.
16
Figure 12. Example of a P- diagram (corresponding to the P-xy diagram in Figure 10).
In the same way you proceed to obtain a P-xy diagram you can do it for a T-xy
diagram. You only need to specify a pressure value (in bar, default is 100) and click the
corresponding button (
17
Similar to the P-xy diagram, you can view the generated T-xy diagramsincluded
in the 3-D Global phase diagrams (Figure 14).
Figure 14. Global phase equilibrium diagram with the T-xy diagram included.
18
Analogous to the P-xy case, you can access the temperature-density plot
corresponding to the T-xy diagram at the specified pressure just by clicking the T- tab.
An example is shown in Figure 15.
Another possible and useful phase diagram is the constant composition diagram
or isopleth. You can generate it choosing the option Isopleths in the Diagrams dropdown list. Once you have selected this type of diagram, a white field will appear. There,
you have to specify the global composition of the binary system (as molar fraction of
component 1, default is 0.97). Then, after clicking the Plot button (
will be displayed. As an example, in Figure 16 an isopheth for z =0,5 is shown for the nButane n-Decane binary system.
19
Note that the critical point is indicated in the graphic with a black dot.
Similar to the P-xy and T-xy diagrams, you can view the present isoplethic
diagram included in the 3-D Global phase diagram for the corresponding case (Figure
17). Note that the isopleth is shown as a green dashed line on the 3-D graph.
20
Besides, you can choose among other projections, which are shown below. The
black lines correspond to incipient phases while the green color denotes the saturated
phase.
Figure 18. Example of an isoplethic T-x diagram (corresponding to the P-T diagram in Figure 16).
21
Figure 19. Example of an isoplethic P-x diagram (corresponding to the P-T diagram in Figure 16).
Figure 20.Example of an isoplethic T- diagram (corresponding to the P-T diagram in Figure 16).
22
Figure 21. Example of an isoplethic P- diagram (corresponding to the P-T diagram in Figure 16).
First of all, its necessary to define the therm Case. A Case is defined once you:
The first time you do this, it will be named Case 1 (the tab name is Case 1). Then, if
you create a new Case by clicking the add button (
). This will enable you to change any of the selections that defined the original
Finally, you can open a Case that has been created previously and edit it or
continue working with it. This last action will be explained in the next section.
5.
Open. You have to choose a case from the list displayed.This allows you
Save as. You can save information about the system, model, parameters,
etc. you are working with. It causes a copy of the current case and it lets you
make a copy of the file in a different folder or make a copy with a different
name.
Save. You can store the data back to the file and folder it originally came
from.
The View option enables you to restore the default views of the different
panels if their size has been modified.
The Help option gives you information about the current version of the
software.
24
6.
In case the program does not work as it should in a particular case, you may
contact us to report the problem. Just follow the indications in the web page:
http://gpec.phasety.com
7.
UPDATES.
Remember also to visit the web page regularly for updates that may be released
from time to time. These updates may contain:
Improvements, in case bugs were detected and fixed.
New models implemented.
New types of calculations or particular features, etc.
The new changes and improvements we are developing and that wouldbe
available in the next version of GPEC are related to:
Parameter Kij. There will be an option that will allow you to make the attractive
interaction parameter Kij temperature-dependent.
Other features. Features independent of global equilibrium diagrams such us:
pressure-density isotherms for mixture or specified compositions, single P-xy and Txy regions from given starting points and fugacity-composition plots for specified
temperature and pressure.
25
8.
GLOSSARY.
, density.
, azentric factor.
Kij, mixing rules parameter
Lij, mixing rules parameter
LLV, liquid-liquid vapour equilibrium line
T, temperature.
Tc, critical temperature
P, pressure.
Pc, critical pressure
V, volume.
Vc, critical volume.
x, dew point composition, molar fraction.
y, bubble point composition, molar fraction.
z, global composition, molar fraction.
26
9.
REFERENCES.
Equations of State: PC-SAFT and SPHCT. Fluid Phase Equilibria, 234, 108-121.
and Txy Diagrams for Binary Systems. Fluid Phase Equilibria, 259: 228-234.
phase diagrams for binary systems with azeotropic behavior. Industrial and
Engineering Chemistry Research, Vol. 47 Issue 23, 97289743.
on a Perturbation Theory for Chain Molecules, Ind. Eng. Chem. Res., 40: 1244
1260.
Kim, C.H., Vimalchand P., Donohue, M.D., Sandler, S.I. (1986) Local Composition
Model for Chain-Like Molecules: A New Simplified Version of the Perturbed HardChain Theory, AIChE J., 32: 1726-1734.
Peng, D.-Y., Robinson, D.B. (1976) A New Two-Constant Equation of State, Ind.
R.L. Rowley, Wilding, W.V., Oscarson, J.L., Yang., Zundel, N.A., Daubert, T.E.,
27