You are on page 1of 324

User Guide for

Multiflash for Windows


Infochem Computer Services Ltd

Version 4.3

28 August 2013

Infochem Computer Services Ltd


Unit 4, The Flag Store
23 Queen Elizabeth Street
London SE1 2LP
Tel: +44 [0]20 7357 0800
Fax: +44 [0]20 7407 3927
e-mail: info@infochemuk.com
This User Guide and the information contained within is the copyright of Infochem Computer Services Ltd.

Infochem Computer Services Ltd


Unit 4, The Flag Store
23 Queen Elizabeth Street
London SE1 2LP, UK
Tel:+44 [0]20 7357 0800
Fax:+44 [0]20 7407 3927
e-mail:info@infochemuk.com

Disclaimer
While every effort has been made to ensure that the information contained in this document is correct and that the
software and data to which it relates are free from errors, no guarantee is given or implied as to their correctness or
accuracy. Neither Infochem Computer Services Ltd nor any of its employees, contractors or agents shall be liable for
direct, indirect or consequential losses, damages, costs, expenses, claims or fee of any kind resulting from any
deficiency, defect or error in this document, the software or the data.
Contents
Overview 1
Introduction ............................................................................................................................... 1
The Multiflash GUI ..................................................................................................... 1
Multiflash Software System....................................................................................................... 1
Document Organisation ............................................................................................................. 2
New Features and Changes in Version 4.3 .................................................................. 2
New Features and Changes in Version 4.2 .................................................................. 2
Running Multiflash...................................................................................................... 2
HELP ........................................................................................................................... 3
Case studies ................................................................................................................. 3
Appendix - Multiflash Commands .............................................................................. 3
Installation ................................................................................................................................. 3

New Features and Changes in Version 4.3 5


Introduction ............................................................................................................................... 5
Models ....................................................................................................................................... 5
Huron-Vidal-Pedersen mixing rule.............................................................................. 5
Sutton Model for surface tension................................................................................. 5
LBC ............................................................................................................................. 5
Salt component ............................................................................................................ 5
Performance enhancements ......................................................................................... 5
Windows GUI............................................................................................................................ 6
PVTSim import tool .................................................................................................... 6
Models tab ................................................................................................................... 6
Inhibitor calculator ...................................................................................................... 6
Surface tension ............................................................................................................ 6
Pseudo component generation table. ........................................................................... 6
Tables......................................................................................................................................... 6
OLGA tables................................................................................................................ 6

New Features and Changes in Version 4.2 7


Introduction ............................................................................................................................... 7
Models ....................................................................................................................................... 7
CSMA model............................................................................................................... 7
Mercury ....................................................................................................................... 7
Poynting correction ..................................................................................................... 7
Activity coefficient model for gas phase ..................................................................... 7
LBC viscosity model ................................................................................................... 8
Binary Interaction Parameters ................................................................................................... 8
Multiflash phase equilibrium algorithm..................................................................................... 8
Flash calculations....................................................................................................................... 8
Databanks .................................................................................................................................. 8
Infodata........................................................................................................................ 8
Windows GUI............................................................................................................................ 9
PVTSim import tool .................................................................................................... 9
Reid vapour pressure ................................................................................................... 9
Liquid dropout and Wax precipitation curve............................................................... 9
New icon for Asphaltene precipitation curve .............................................................. 9

User Guide for Multiflash for Windows Contents  iii


Phase envelopes for solids........................................................................................... 9
Hydrate models............................................................................................................ 9
Inhibitor calculator ...................................................................................................... 9
PVT Analysis .............................................................................................................. 9
Retrograde Dew Point ................................................................................................. 9
Calculation options...................................................................................................... 9
Usability .................................................................................................................... 10
Tables....................................................................................................................................... 10
OLGA tables.............................................................................................................. 10
Multiflash Excel Interface ....................................................................................................... 10
Joule-Thompson coefficient ...................................................................................... 10

Getting Started 11
Starting Multiflash ................................................................................................................... 11
Multiflash Main Window......................................................................................................... 11
Conditions ................................................................................................................. 12
Fluid identification .................................................................................................... 12
Compositions............................................................................................................. 12
Menu options............................................................................................................. 12
The Toolbar ............................................................................................................... 16
Defining a problem in Multiflash ............................................................................................ 16
Loading an existing problem file ............................................................................................. 16
Loading a problem setup file ..................................................................................... 16
Calculations ............................................................................................................... 17
The results ................................................................................................................. 17
Additional calculations .............................................................................................. 18
Setting up a new problem ........................................................................................................ 19
Clearing previous problems....................................................................................... 19
Defining the components........................................................................................... 19
Defining the models .................................................................................................. 20
Set Input Conditions .................................................................................................. 21
Carrying out the flash calculation.............................................................................. 21
Other calculations...................................................................................................... 22
Phase envelope .......................................................................................................... 22
Saving the problem setup......................................................................................................... 23
Backup file ................................................................................................................ 24
Loading a pre-defined MFL file .............................................................................................. 24
Warning option for matching and PVT form........................................................................... 24
Printing the output ................................................................................................................... 24
Saving the output ..................................................................................................................... 25
How to exit the program .......................................................................................................... 25
Technical support..................................................................................................................... 25

Models 27
Introduction ............................................................................................................................. 27
What is a model? ..................................................................................................................... 27
What types of model are available? ......................................................................................... 27
Equation of state models.......................................................................................................... 28
When to use equation of state methods ..................................................................... 28
Equations of state provided in Multiflash ................................................................................ 28
Ideal gas equation of state ......................................................................................... 28
Peng-Robinson equation of state ............................................................................... 28
Peng-Robinson 1978 (PR78) equation of state.......................................................... 29
Redlich-Kwong (RK) and Redlich-Kwong-Soave (RKS) equations......................... 29
Advanced Equation of state options .......................................................................... 29
When to use cubic equations of state......................................................................... 30
Cubic plus association (CPA) model......................................................................... 30
PSRK equation of state.............................................................................................. 30
ZJ (Zudkevitch-Joffe) model ..................................................................................... 31

iv  Contents User Guide for Multiflash for Windows


PC-SAFT equation of state........................................................................................ 31
Lee-Kesler (LK) and Lee-Kesler-Plöcker (LKP) equations of state.......................... 32
Benedict-Webb-Rubin-Starling (BWRS) equation of state ....................................... 32
Multi-reference fluid corresponding states (CSMA) model ...................................... 33
IAPWS-95 ................................................................................................................. 33
Carbon Dioxide high-accuracy model ....................................................................... 33
GERG-2008............................................................................................................... 33
Activity coefficient methods.................................................................................................... 34
Activity coefficient equations in Multiflash .............................................................. 34
Gas phase models for activity coefficient methods ................................................... 35
When to use activity coefficient models.................................................................... 35
Models for solid phases ........................................................................................................... 36
Solid freeze-out model .............................................................................................. 36
Scaling and general freeze-out model........................................................................ 36
Modelling hydrate formation and inhibition.............................................................. 36
Modelling wax precipitation...................................................................................... 39
Modelling asphaltene flocculation............................................................................. 40
Other thermodynamic models ................................................................................... 40
Transport property models....................................................................................................... 40
Viscosity.................................................................................................................... 41
Thermal conductivity................................................................................................. 42
Surface Tension ......................................................................................................... 43
Diffusion coefficient.................................................................................................. 43
How to specify models in Multiflash....................................................................................... 43
Using the menu.......................................................................................................... 43
Loading a model from a .mfl file............................................................................... 44
Setting up preferred models in Multiflash ................................................................. 45
How to change a model ............................................................................................. 45
Models for solid phases ........................................................................................................... 45
Hydrates .................................................................................................................... 45
Pure solid phases ....................................................................................................... 46
Waxes ........................................................................................................................ 47
Asphaltenes ............................................................................................................... 47
Combined Solids Model ............................................................................................ 48
Troubleshooting - models ........................................................................................................ 49
Model is not available ............................................................................................... 49
Groups not available for UNIFAC model ................................................................. 49
Binary interaction parameters .................................................................................................. 50
BIPs and models ........................................................................................................ 50
Temperature dependence of BIPs.............................................................................. 51
BIPs available in Multiflash ...................................................................................... 51
Viewing BIP values................................................................................................... 51
Units for BIPs............................................................................................................ 54
Supplementing or overwriting BIPs .......................................................................... 55
BIPs for CSMA and GERG mixing rule ................................................................... 56
Troubleshooting - BIPs............................................................................................................ 57
Units .......................................................................................................................... 57
BIP databank ............................................................................................................. 57

Components 59
Introduction ............................................................................................................................. 59
Normal components................................................................................................... 59
Petroleum fractions.................................................................................................... 61
Defining a mixture ................................................................................................................... 61
Specifying the data source......................................................................................... 61
Selecting components................................................................................................ 62
Adding, inserting, replacing and deleting components.............................................. 65
Viewing and editing pure component data ................................................................ 66
User-defined components ........................................................................................................ 68

User Guide for Multiflash for Windows Contents  v


Adding a user-defined component............................................................................. 68
Specifying data for a user-defined component .......................................................... 69
Models and input requirements ................................................................................. 70
Stream types ............................................................................................................................ 72
Hydrate inhibitors .................................................................................................................... 75
Inhibitor calculator: alcohols/glycols ........................................................................ 75
Salt calculator ............................................................................................................ 77
Troubleshooting - components ................................................................................................ 80
Databank not found ................................................................................................... 80
Databank not licensed................................................................................................ 81
Component cannot be found...................................................................................... 82
Too many components in the mixture ....................................................................... 83

Petroleum fluids 85
Introduction ............................................................................................................................. 85
PVT Lab Analysis input .......................................................................................................... 85
Component list .......................................................................................................... 87
Fluid composition...................................................................................................... 90
Molecular weight and specific gravity ...................................................................... 91
Total amount of fluid................................................................................................. 93
Water cut ................................................................................................................... 93
Total Wax Content .................................................................................................... 93
SARA Analysis ......................................................................................................... 94
Pseudocomponents .................................................................................................... 94
Characterisation......................................................................................................... 95
User Defined Cuts ..................................................................................................... 96
Saving a PVT Analysis.............................................................................................. 97
Black Oil Analysis ................................................................................................................... 97
Input data................................................................................................................... 98
Distillation curves .................................................................................................................... 98
TBP distillation.......................................................................................................... 99
ASTM D86 distillation ............................................................................................ 100
PVT Lab Analysis input with n-paraffin analysis.................................................................. 101
n-Paraffin distribution ............................................................................................. 102
Characterisation....................................................................................................... 103
Estimated n-paraffin distribution............................................................................. 105
Troubleshooting – PVT Analysis........................................................................................... 105
Sensitivity to characterisation.................................................................................. 105
Presence of water..................................................................................................... 105
Defining petroleum fractions ................................................................................................. 105
Basic characterisation properties ............................................................................. 106
Other properties....................................................................................................... 106
Entering petroleum fractions ................................................................................... 106
Editing petroleum fraction data ............................................................................... 108
Deleting petroleum fractions ................................................................................... 109
Problems defining a petroleum fraction .................................................................. 109
Delumping tool ...................................................................................................................... 110
How to use the delumping utility ............................................................................ 110
Matching using petroleum fraction properties ....................................................................... 112
Matching dew and bubble points............................................................................. 113
Matching Density/Volume ...................................................................................... 118
Matching wax data/WAT ........................................................................................ 119
Matching liquid viscosity ........................................................................................ 122
Problems when matching ........................................................................................ 123
Petroleum Fluid Blending...................................................................................................... 124
Blending method ..................................................................................................... 124
Fluid file name......................................................................................................... 125
Fluid amounts .......................................................................................................... 125
Model definition ...................................................................................................... 126

vi  Contents User Guide for Multiflash for Windows


Blending procedure ................................................................................................. 126
Example for blending .............................................................................................. 127
Example with waxy crudes...................................................................................... 128
Example with asphaltenic crudes ............................................................................ 130

Input conditions 133


Introduction ........................................................................................................................... 133
Specifying compositions........................................................................................................ 133
Specifying temperature, pressure and volume ....................................................................... 134
Specifying enthalpy, entropy and internal energy.................................................................. 135
Troubleshooting - input conditions........................................................................................ 135

Calculations 137
Introduction ........................................................................................................................... 137
The basis of a flash calculation.............................................................................................. 137
Flashes available in Multiflash .............................................................................................. 138
Isothermal (P,T) flash.............................................................................................. 138
Isenthalpic flashes ................................................................................................... 139
Isentropic flashes ..................................................................................................... 139
Isochoric flashes ...................................................................................................... 139
Bubble and dew point flashes.................................................................................. 139
Fixed phase fraction flashes .................................................................................... 140
Phase Envelopes ...................................................................................................... 144
Phase Envelopes for solids ...................................................................................... 153
Liquid dropout curve calculation............................................................................. 154
Hydrate calculations ................................................................................................ 155
Wax calculations ..................................................................................................... 155
Tolerance calculations ............................................................................................. 157
Reid Vapour Pressure .............................................................................................. 158
Property output in Multiflash................................................................................................. 160
Troubleshooting - flash calculations ...................................................................................... 161
Plot the phase envelope ........................................................................................... 162
Use the P,T flash ..................................................................................................... 162
Limit the number of phases ..................................................................................... 163
Consider all types of solution .................................................................................. 163
Provide a starting estimate....................................................................................... 163
Provide a key component ........................................................................................ 164

Units 165
Introduction ........................................................................................................................... 165
Default units .......................................................................................................................... 165
Changing units ....................................................................................................................... 166
Troubleshooting - units.......................................................................................................... 167

Output 169
Introduction ........................................................................................................................... 169
The results window................................................................................................................ 169
Font........................................................................................................................................ 170
Writing the results to a file .................................................................................................... 170
Printing the output ................................................................................................................. 171
Calculation output.................................................................................................................. 171
Manipulating the Output.......................................................................................... 173
Phase Labelling...................................................................................................................... 174
Enthalpy definition ................................................................................................................ 174
Activity Models ....................................................................................................... 175
Entropy definition .................................................................................................................. 175
Activity Models ....................................................................................................... 176

User Guide for Multiflash for Windows Contents  vii


Errors and warning messages ................................................................................................ 176
Displaying status for current settings..................................................................................... 176
Troubleshooting - output ....................................................................................................... 177
The output does not include everything expected ................................................... 177
Phase labelling......................................................................................................... 177
Fonts ........................................................................................................................ 177

Interfaces with other programs 179


Introduction ........................................................................................................................... 179
Pipesim PVT files .................................................................................................................. 179
OLGA .................................................................................................................................... 180
OLGA hydrate file................................................................................................... 182
OLGA wax file ........................................................................................................ 182
Prosper PVT files................................................................................................................... 183
To generate the file.................................................................................................. 183
CAPE-OPEN Interface .......................................................................................................... 184
PVTSim CHC file import tool ............................................................................................... 185

Help 187
Introduction ........................................................................................................................... 187
On-line help ........................................................................................................................... 187
Help Topics ............................................................................................................. 187
Multiflash Error Codes ............................................................................................ 189
Check for Updates ................................................................................................... 189
About Multiflash ..................................................................................................... 190
Website support ..................................................................................................................... 191
Technical support................................................................................................................... 191

Case studies - Pure component data 193


Introduction ........................................................................................................................... 193
Physical properties of a pure component ............................................................................... 193
Defining the problem in Multiflash ......................................................................... 193
Obtaining properties from the Pure Component Data option .................................. 195
Excel interface ......................................................................................................... 198

Case studies - Phase equilibria 199


Introduction ........................................................................................................................... 199
Oil and gas systems ............................................................................................................... 199
Calculating the bubble point curve .......................................................................... 200
Calculating the dew point curve .............................................................................. 201
Phase envelope ........................................................................................................ 202
Adding water to the system ..................................................................................... 203
Including a petroleum fraction ................................................................................ 204
Other flash calculations ........................................................................................... 206
PVT Analysis......................................................................................................................... 208
User defined carbon number cuts ............................................................................ 213
TBP curves .............................................................................................................. 215
Black Oil Analysis ................................................................................................................. 216
Delumping tool – Case study................................................................................................. 218
Refrigerant mixtures .............................................................................................................. 221
Polar systems ......................................................................................................................... 222
Modelling a polar mixture ....................................................................................... 223
Liquid-liquid equilibria ........................................................................................... 226
Vapour-liquid-liquid equilibria................................................................................ 227
Azeotropes............................................................................................................... 227
Eutectics .................................................................................................................. 228
Polymers ................................................................................................................................ 228

viii  Contents User Guide for Multiflash for Windows


Data input ................................................................................................................ 229
Co-Polymers............................................................................................................ 231

Case studies - Hydrate dissociation, formation and inhibition 235


Introduction ........................................................................................................................... 235
Defining the hydrate models.................................................................................................. 235
Fluid phase model ................................................................................................... 236
Hydrate model ......................................................................................................... 236
Nucleation model .................................................................................................... 237
Ice model ................................................................................................................. 237
Scale model ............................................................................................................. 237
Phases ...................................................................................................................... 237
Hydrate calculations with Multiflash..................................................................................... 238
Will hydrates form at given P and T ?..................................................................... 238
Hydrate formation and dissociation temperature at given pressure......................... 239
Hydrate formation and dissociation pressure at given temperature ......................... 242
Hydrate phase boundary .......................................................................................... 243
Other flash calculations with hydrates..................................................................... 243
Maximum water content allowable before hydrate dissociation ............................. 243
Calculations with inhibitors ................................................................................................... 244
Can hydrates form at given P and T ?...................................................................... 244
Hydrate dissociation temperature at a given pressure ............................................. 246
Hydrate dissociation pressure at a given temperature ............................................. 246
Hydrate phase boundary .......................................................................................... 246
Amount of inhibitor required to suppress hydrates ................................................. 247
Salt inhibition .......................................................................................................... 248
Scale precipitation ................................................................................................................. 250

Case studies – Wax precipitation 252


Introduction ........................................................................................................................... 252
Defining the wax model......................................................................................................... 252
Calculating wax appearance temperature (WAT).................................................................. 253
Calculating wax precipitation ................................................................................................ 256

Case studies – Asphaltene flocculation 259


Introduction ........................................................................................................................... 259
Input data ............................................................................................................................... 259
Defining the asphaltene model .............................................................................................. 260
Calculating asphaltene precipitation conditions .................................................................... 264
Sensitivity of calculations to variation in input data.............................................................. 268
Choice of Analysis method ..................................................................................... 268
Data Availability ..................................................................................................... 269
No reservoir or precipitation conditions .................................................................. 272
Gas injection .......................................................................................................................... 274
Titration ................................................................................................................................. 275

Case studies – Combined solids 279


Introduction ........................................................................................................................... 279
Asphaltene precipitation ........................................................................................................ 279
Wax and Asphaltene precipitation ......................................................................................... 280
Hydrates, Waxes and Asphaltenes......................................................................................... 281

Case studies – Excel spreadsheets 285


Introduction ........................................................................................................................... 285
UNFACFIT.xls ...................................................................................................................... 285
Notes........................................................................................................................ 285

User Guide for Multiflash for Windows Contents  ix


UNIFAC .................................................................................................................. 286
Activity model worksheets ...................................................................................... 286
VLEFIT.xls............................................................................................................................ 287
Solids.xls................................................................................................................................ 288
PVT Analysis .......................................................................................................... 288
Match bubble point.................................................................................................. 289
Wax ......................................................................................................................... 290
Asphaltenes ............................................................................................................. 291
Asphaltene with gas injection.................................................................................. 292
Hydrates .................................................................................................................. 293

Case study – Mercury partitioning 295


Introduction ........................................................................................................................... 295
Defining the mercury model .................................................................................................. 295
Calculating mercury partitioning ........................................................................................... 296
Calculating mercury dropout ................................................................................................. 298
Other calculations .................................................................................................................. 299

Appendix - Multiflash Commands 301


Introduction ........................................................................................................................... 301
Commands ............................................................................................................................. 301
When you may need to use commands.................................................................................. 301
Defining models..................................................................................................................... 302
What the model definition means ............................................................................ 302
Supplying an external file of BIPs ......................................................................................... 303
Defining phase descriptors and key components ................................................................... 304

Index 307

x  Contents User Guide for Multiflash for Windows


Overview

Introduction
Multiflash is a powerful and versatile system for modelling physical properties
and phase equilibria. It can be used as a stand-alone program or in conjunction
with other software. This manual describes the features of the Multiflash
Windows Graphical User Interface (GUI) and explains how it can be used to
solve engineering problems.

The Multiflash GUI


The Multiflash Windows GUI gives you access to the full capabilities of the
program, including:
 All the thermodynamic and transport properties needed for
engineering studies.
 Comprehensive fluid characterisation and model tuning for
petroleum fluids.
 Flash calculations to determine the phases present at specified
conditions and their type, composition and amounts.
 Modelling solids formation, including pure solids, halide scales,
hydrates, waxes and asphaltenes.
It is easy to set up all aspects of a study: components, models, units, type of
calculation etc. via menu options or tool bar buttons. This configuration can then
be saved for future use with the GUI or other applications.
Virtually any flash calculation can be carried out irrespective of the number and
type of phases present. Complete phase envelopes can be plotted showing phase
boundaries and critical points.

Multiflash Software System


In addition to the Windows GUI, it is possible to use the Multiflash calculation
engine in a variety of ways. There is a Multiflash add-in for Microsoft Excel and
an interface for use with Matlab. A CAPE-OPEN physical property package
interface allows Multiflash to be used by any application that is CAPE-OPEN
enabled. Multiflash may also be used with any software that can call a Windows
DLL. We provide support for applications written in various programming
languages including C++, Visual Basic and Fortran. Linux applications can also
be supported.

User Guide for Multiflash for Windows Overview  1


Separate documentation is available for each of these interfaces.

Document Organisation
The rest of this document is divided into the following sections.

New Features and Changes in Version 4.3


New developments and additions are listed, although more details of how to use
new features will be covered in the appropriate section. Information is also given
on changes to models or data which may give rise to different results from those
obtained with earlier versions of Multiflash.

New Features and Changes in Version 4.2


The developments done in the previous version are listed for reference.

Running Multiflash
Each section provides details on different aspects of the software.

Getting Started
Describes the different parts of the Multiflash main window and shows how to
use the program by running a simple example with step-by-step instructions.

Models
This section describes the mixture models available in Multiflash and shows how
to define a model. How and when to use models is reviewed, together with the
availability and use of model interaction parameters. Detailed specification of
the models can be found in a separate manual.

Components
The types of components that are available from Multiflash are defined, together
with a description of the physical property databanks available. This section also
shows how to search for and select components.

Petroleum Fluids
Covers a number of topics related to modelling petroleum fluids: how to use the
information measured by a PVT laboratory to produce a compositional fluid
model; how to define the properties of petroleum fractions (pseudocomponents);
how to use experimental data to tune the petroleum fluid model.

Input Conditions
The necessary conditions for carrying out different types of calculations are
defined, together with how to enter and change these within the program.

Calculations
The final step in running Multiflash, the specification of the calculations which
can be carried out, and the circumstances where they might be most appropriate
are outlined.

2  Overview User Guide for Multiflash for Windows


Units
This section defines the standard working units of the software, the range of
options available for input and output units and how to change them.

Output
This section reviews the different levels of output available, where output is
reported and how it may be saved.

HELP
The various types of help available and how to access them are reviewed.

Case studies
Additional examples of how to tackle typical problems using Multiflash are
provided.

Appendix - Multiflash Commands


The Multiflash command language is used to store information about the
problem setup (databanks, components, models etc.) in Multiflash .mfl files.
Although users should not need to understand the command language it is fully
described in the Multiflash Command Reference manual.
In some circumstances it may be necessary to use Multiflash commands to
configure the software. The Tools menu has a Command option which allows
commands to be entered. Those commands that users of the Multiflash GUI may
find useful are discussed in the appropriate sections of the User Guide or in the
Appendix.

Installation
Information on how to install Multiflash software is provided in the separate
Installation Guide for Multiflash for Windows.

User Guide for Multiflash for Windows Overview  3


New Features and Changes in
Version 4.3

Introduction
As usual the new version includes the results of general maintenance and
improvements in numerical methods over the past year, as well as performance
enhancements. Specific features are described below.

Models
Descriptions and references detailing the models are provided in the User Guide
for Models and Physical Properties.

Huron-Vidal-Pedersen mixing rule


This mixing rule has been implemented for both the Peng-Robinson and the
Redlich-Kwong-Soave equations of state.

Sutton Model for surface tension.


This model has been implemented to allow for a computationally inexpensive way to calculating the surface tension
of systems containing water.

LBC
It is now possible to specify a critical volume specifically for the LBC model for
each component, and to specify the LBC model parameters A1-A5.

Salt component
The salt pseudo-component can now be used with the following models: PR,
PRA, PRA-Infochem, PR78, PR78A, PR78A-Infochem, RKSA, and RKSA-
Infochem.

Performance enhancements
The cubic equations of state and the CPA equations have been optimized in such
a way that in version 4.3 it is possible to perform roughly about 1.5 to 2 times
more flashes per unit time with these models than in version 4.2.

User Guide for Multiflash for Windows New Features and Changes in Version 4.3  5
Windows GUI

PVTSim import tool


It is now possible to import characterised fluids from PVTSim if they were
exported to a CHC file. This tool accepts systems with aqueous components, and
allows the user to define the desired number of phases. From version 4.3.11 it is
possible to select an option to define models where the density of the gas phase
is calculated using the GERG 2008 model while the rest of the thermodynamic
properties is calculated using cubic models.

Models tab
From version 4.3.11, the "Select Model Set" tab for Cubic Eos now also has an
option where the GERG 2008 model can be used to estimate the density of the
vapour phase.

Inhibitor calculator
The salt component is again part of the inhibitor calculator.

Surface tension
The user can select the MacLeod-Sugden 2 phase variant for the calculation of
surface tension. This model can be selected under the MCSA (MCS-Advanced)
tab.

Pseudo component generation table.


The user can now specify the critical volume to use in the LBC model in the
pseudo component generation table. The property has the name VCLBC and is
only used in the LBC model.

Tables

OLGA tables
The OLGA table generator was made more robust and more compliant with the
file format accepted by OLGA.

6  New Features and Changes in Version 4.3 User Guide for Multiflash for Windows
New Features and Changes in
Version 4.2

Introduction
As usual the new version includes the results of general maintenance and
improvements in numerical methods over the past year. Specific features are
described below.

Models
Descriptions and references detailing the models are provided in the User Guide
for Models and Physical Properties.

CSMA model
New high accuracy corresponding state models are implemented for the
refrigerants: R1234YF and R1234ZE(E) in Multiflash 4.2.

Mercury
The mercury model has been extended, so that it can now be used in connection
with PR78A and CPA, as well as with RKSA.

Poynting correction
The Poynting correction has been modified to give zero correction to the
enthalpy and entropy at saturation pressure. The enthalpy, entropy and heat
capacity calculated with activity coefficient models with Multiflash 4.2 are
therefore different from the results with previous version, but the new pure
component values are closer to correlations for saturated liquid Cp.

Activity coefficient model for gas phase


A new model, ACG (activity coefficient model for gas phase), has been included
in Multiflash to allow the user to calculate thermal properties for the gas phase
based on correlations for saturated liquid heat capacity and heat of vaporisation.

User Guide for Multiflash for Windows New Features and Changes in Version 4.2  7
LBC viscosity model
The LBC viscosity model has been fixed to work properly with petroleum
fraction with carbon number lower than C7.

Binary Interaction Parameters


Several BIPs were added or corrected in Multiflash version 4.2.

CPA model CPA


water/Hg, MEG/Hg, correct BIP for ethane/MEG, THF/water, O2+H2O, O2+n-octane

RKSA-Info, CPA and PR


H2 + (methane, ethane, propane, n-butane, n-pentane, n-hexane, n-heptane, n-
octane, n-decane, n-dodecane, n-hexadecane, n-eicosane, n-octacosane, n-
hexatriacontane, carbon dioxide and water)

RKSA
O2+H2O

PRA
O2+n-octane

Multiflash phase equilibrium algorithm


Make the Pressure-Enthalpy and Pressure-Entropy flashes more robust in
particular in the single phase region.

Flash calculations
In Multiflash 4.2, the Reid vapour pressure calculation is implemented. The Reid
vapour pressure (RVP) is usually employed by refineries to quantify and modify
the vaporization of gasolines and other volatile petroleum products. For the
details, see the section on “Reid Vapour Pressure” on page 158.
When the flash calculation involves solid phases, the errors about not being able
to calculate viscosity of a phase were removed. It is not possible to calculate
viscosity of solid phases.
The Joule-Thompson coefficient has been added as an output property of the
flash calculations.

Databanks

Infodata
New components, R365mfc, R1234YF and R-1234ZE(E) are added into the INFODATA databank.
The ideal gas heat capacities of Na+, Cl-, Ca++ and Br- in the databank have
been revised.
The ions Mg++, Ba++, Sr++, H+, CO3--, HCO3-, OH- and SO4—have been
added to the INFODATA databank.

8  New Features and Changes in Version 4.2 User Guide for Multiflash for Windows
Windows GUI

PVTSim import tool


It is now possible to import characterised fluids from PVTSim if they were
exported to a CHC file.

Reid vapour pressure


It is now possible to calculate the Reid Vapour pressure via the calculation

Liquid dropout and Wax precipitation curve


The liquid dropout and wax precipitation curve tools have been improved to
allow more control of the plotting.

New icon for Asphaltene precipitation curve


A new tool was added to determine graphically the precipitation of asphaltenes
at constant pressure.

Phase envelopes for solids


The automatic calculation of the V/L phase envelope as well as solid phase
boundaries has been made more robust.
It is now possible to right click in area of this plot and to a PT flash.

Hydrate models
The RKSA-Infochem model has been removed from the hydrate model selection
form, so that it is now only possible to select CPA-Infochem, with or without the
electrolyte model. It is possible to load an .mfl file with the RKSA-Infochem
hydrate model defined and use it in Multiflash 4.2.

Inhibitor calculator
The salt component tab has been removed from the inhibitor calculator.

PVT Analysis
The PVT analysis tool has been updated to allow the user to specify density in
API degrees.

Retrograde Dew Point


A new button was added to the main window to calculate automatically the
retrograde dew point at a fixed temperature with having to resort to the Fixed
Phase Fraction tool.

Calculation options
The calculations options have been simplified. Now only “Normal”, “Upper
Retrograde” and “Unspecified” are show for the type of solution where that is
necessary.

User Guide for Multiflash for Windows New Features and Changes in Version 4.2  9
Usability
In the forms where is necessary to input data, such as the Matching forms or the
PVT Analysis input, the user is warned that those values are lost if the dialog
box is closed without performing any operation with the data.

Tables

OLGA tables
The OLGA table generator was made more robust and more compliant with the
file format accepted by OLGA.

Multiflash Excel Interface

Joule-Thompson coefficient
The Joule Thompson coefficient was added to the list of properties that is
possible to get in a flash calculation.

10  New Features and Changes in Version 4.2 User Guide for Multiflash for Windows
Getting Started

Starting Multiflash
Start Multiflash by clicking on the Multiflash 4.3 shortcut on the desktop.

Alternatively, from the Windows Start menu choose All Programs and then
Multiflash 4.3
The Multiflash Main Window will be displayed.

Multiflash Main Window

User Guide for Multiflash for Windows Getting Started  11


Conditions
The input conditions, such as temperature and pressure, used in Multiflash
calculations are shown below the Toolbar. The current units are shown next to
each value.

Fluid identification
A text box labelled Fluid identification is located above the Compositions button
in the Conditions section of the main window.
Use of the box is optional but it does allow you to add any comments or notes
and, subsequently, to save these as part of the .mfl file. This can be useful for
future reference, perhaps for identifying the study and the source of the fluid
data, etc. When the file is loaded again any notes will be shown in the Fluid
identification box.

Compositions
The Compositions button allows the fluid composition to be entered once
components have been selected.

Menu options
The menus allow you to control all aspects of running Multiflash. Options are
grouped under the main menu headings of File, Edit, Select, Tools, Calculate,
Table and Help.

File
The File menu controls the loading, saving, clearing and printing of setup files
and the saving and printing of results.

12  Getting Started User Guide for Multiflash for Windows


Where you need to define further items, such as the directory and file to be
loaded, a dialogue box will be displayed.
The last nine recently-used setup files are listed in the File menu. To load a file
from the list double-lick on the name.

Edit
This controls the normal windows editing functions of Cut, Copy and Paste,
which can be used on text in the results window.

Select
The Select menu option allows you to select the fluid-phase components,
components that may appear as pure solids (Freeze-out Components), petroleum
fluid characterisation (PVT Lab. Input) physical property models, level of
property output, stream types, units of measurement and the use of starting
values for calculations. All the menu options except Use Starting Values activate
dialogue boxes which are described in later sections of this guide..

User Guide for Multiflash for Windows Getting Started  13


Tools
The Tools menu groups together options for displaying information about the
current problem, utilities for handling data and settings that control the
calculations or other aspects of the way Multiflash works.

The Command option can be used to enter Multiflash commands (see the
Appendix on page 301). This is not normally necessary but may sometimes be
useful for setting options that are not, otherwise, accessible in the Multiflash
GUI.
Pure Component Data and BIPs options allow you to view and edit the
properties of any component in the mixture and any binary interaction
parameters being used.
The Inhibitor calculator allows you to add water and hydrate inhibitors (alcohols,
glycols, salts) in volume, mass or molar units. A salt analysis may be entered in a
variety of units.
The Matching function tunes the properties of petroleum fractions in the mixture
to reproduce user-supplied measurements. The quantities for which data may be
supplied are: dew points; bubble points/GOR; liquid viscosity and liquid density.
The wax model may be tuned to match a wax appearance temperature or
precipitation data and the asphaltene model parameters may be tuned to match
flocculation or titration data.
The Blend Fluids option allows the user to blend (mix) a number of fluids by
mass, volume or molar amounts.
The Preferences option allows the user to set the default behaviour when
Multiflash is started. You can set the preferred units and properties calculated,
the locations of files used by Multiflash, the appearance of the results in the
results window and the default models to be used for calculations. All these

14  Getting Started User Guide for Multiflash for Windows


preferences are stored in the Windows Registry. Any changed items will be used
the next time that Multiflash is started. Settings such as models and units may be
changed at any time during a Multiflash session using the Select menu but this
has no effect on the Preferences.
The Show option allows you to see the current problem status such as the whole
problem description or the models, pure component data source or BIP bank in
force.

Calculate
The Calculate menu provides a choice of flash calculations. Different types of
calculations are grouped together as: Standard Flashes; Bubble and Dew Point
Flashes; Fixed Phase Fraction Flashes; (see “Fixed phase fraction flashes” on
page 140), the tolerance calculation, (see “Tolerance calculations” on page 157),
the phase envelope calculation , (see “Phase Envelopes” on page 144) , phase
envelope for solids, special-purpose Hydrate and Wax calculations, liquid
dropout, waxes, asphaltene precipitation curve calculations, and Reid vapour
pressure calculation.

Table
The Table menu is for creating input files for use with other applications,
currently PIPESIM, OLGA and Prosper.

See “Interfaces with other programs” on page 179.

Help
The HELP menu enables you to get help on a variety of topics, see “Help” on
page 187.

User Guide for Multiflash for Windows Getting Started  15


The Toolbar
The Toolbar provides a quick way of accessing some of the most common
operations required to use Multiflash. Holding the cursor over a toolbar button
displays a tool-tip that describes its function. For example, the PT button for the
flash at fixed P and T calculation.

Defining a problem in Multiflash


This means selecting the components in the mixture and setting their
compositions, choosing the models you wish to use to calculate properties and
setting the input conditions (e.g. temperature and pressure). The steps are
described in detail in the appropriate sections below. In this tutorial we will first
use an existing problem file and then go through the steps required to set up a
problem from scratch.

Loading an existing problem file


Infochem supplies a series of sample problem setup files covering a variety of
typical problem types. These can be used as examples when testing the program
or can be used as a basis for defining your own setup files. By convention
problem setup files for Multiflash have the extension .mfl.
The file used for the simple tutorial is C4C5.mfl. The system is 0.4 moles of
butane and 0.6 moles of pentane. The model used to describe the system is the
Peng -Robinson equation of state with the pure component data taken from the
INFODATA databank.

Loading a problem setup file


The problem setup file for our tutorial is C4C5.mfl. To load the file:
1. From the File menu choose “Load Problem Setup”
Or
Click on the Load Problem Setup button on the toolbar.

This will display the file selection dialogue

16  Getting Started User Guide for Multiflash for Windows


which will show a list of available setup files (*.mfl) contained in the
problem files directory. By default this is the directory where Multiflash was
installed.
2. Select C4C5.mfl and click on Open or double-click on the file name. The file
will be read by Multiflash and the contents are echoed in the Results
window. The file contains the complete definition of the problem including:
 Data sources
 Models
 Phases
 Components
 Compositions
 Temperature and pressure
The input conditions section of the main window will look like this

Calculations
You can now carry out a flash calculation at the specified temperature and
pressure by clicking on the PT flash toolbar button

The results
The results of any calculations are displayed in the lower section of the main
Multiflash window.

User Guide for Multiflash for Windows Getting Started  17


You may need to scroll the window to see all the results.

Additional calculations
Any of the input conditions may be changed by entering new values to overwrite
or supplement those shown in the input section of the main window. Simply type
the value for the input condition in the appropriate text box, ensure that all
necessary input conditions are defined for the flash calculation you wish to carry
out and then click on the appropriate toolbar button or select the calculation from
the Calculate menu.
Compositions for a mixture may be altered by clicking on the composition
button and editing the right-hand column of the drop-down table where the
amounts of each component are defined.
To replace a component or to add new components see “Adding, inserting,
replacing and deleting components” on page 65.
Some simple changes are shown below:

Change the pressure


1. Click in the Pressure box of the Conditions panel in the main
window and change the pressure to 14e5 Pa.
2. Click on P,T flash toolbar button
or
use the Calculate menu and choose Standard Flashes and then P.,T
Flash.
3. The calculation shows that the system is a one-phase liquid under
these conditions.

Change the composition


1. Click on the Composition button in the Conditions section of the
main window. The component names are displayed in the first

18  Getting Started User Guide for Multiflash for Windows


column and the number of moles of each component in the mixture
is shown in the second column. Edit the “mole” column of the
drop-down table so that there are 9 moles of butane and 1 mole of
pentane.
2. Recalculate the P,T flash as above. The mixture is now two-phase.

Carry out an isenthalpic flash


1. Enter a value of 1000 in the Enthalpy box.

2. Click on the P,H flash toolbar button or use the Calculate


menu.

Setting up a new problem


To set up a new problem you must enter the following information:
 Data sources
 Models
 Components
 Compositions
 Input conditions

Clearing previous problems


You can restore the all the above settings in Multiflash to be the same as when
the program was started by selecting the “Clear Problem Setup” option from the
File menu.

Defining the components


Choose the components for any problem by clicking on Components in the
Select menu. Alternatively you can click on the Select Components toolbar
button, . Either will display of the Select Components Dialogue box.

The default data source is the Infochem fluids databank which is called Infodata.
If you have licensed the DIPPR databank this may be selected from the drop-
down list.

User Guide for Multiflash for Windows Getting Started  19


Components may be selected in a variety of ways e.g. by name, by scrolling
through a list or by searching for a formula or substring. The various methods
are fully described in “Selecting components” on page 62.
Choose the components needed for the problem, in this case butane and pentane
as follows:
1. Make sure the Name option button is selected.
2. Click in the box next to “Enter name” and type
butane
and then press the <Enter> key or click on the Add button.
BUTANE is transferred to the Components selected list. Do the
same for pentane.
3. Click on the Close button, this will return you to the Main
Window.

Defining the models


To define the models and phases to be used for the calculations choose Model set
from the Select menu.

Each tab of this window groups together similar types of model, e.g. cubic
equations of state, activity coefficient models and so on.
For general advice on which models to choose for a particular application and
more information about each model, see “What types of model are available?”
on page 27 or consult the “Models and Physical Properties” manual.
We will use the Peng-Robinson equation of state: click on PR. You can also
change the transport property models and the phases to consider but the default
set will usually be appropriate.

20  Getting Started User Guide for Multiflash for Windows


Click on the ‘Define Model’ button. The following message should confirm that
the models have been successfully defined.

Click on OK and then Close the Select Model set dialogue to return to the main
window.

Set Input Conditions


Before a flash calculation can be carried out you must define all necessary input
conditions, including the composition of the mixture. All input conditions are
specified in the input condition section of the main window.

Compositions
To enter the composition click on the Composition button. The drop-down table
shows the components in the left-hand column. The amount of each component
in the mixture is typed in the right-hand column. The default unit for amounts is
moles. Note that the amounts do not have to sum to 1 or 100 or any other value.
Click on the Compositions button and enter 0.4 for butane and 0.6 for pentane.

The composition table can be hidden by clicking on the up-arrow button

Pressure and temperature


Other input conditions will depend on the type of flash calculation to be carried
out, e.g. for an isothermal flash you must enter a pressure and a temperature in
the appropriate text boxes and in the units shown next to them. The units may be
changed as described in the section “Units” on page 165.
Type 9e5 in the Pressure box and 375 in the temperature box.

Carrying out the flash calculation


To carry out a flash calculation you either click on the appropriate flash button
on the toolbar or select the required flash from the Calculate menu.
The most commonly encountered flash options have been allocated toolbar
buttons; these are the isothermal flash, dew and bubble points, isenthalpic and
isentropic flashes at fixed pressure and fixed phase fraction flashes.
Other flashes, such as isochoric flashes or isentropic and isenthalpic flashes at
fixed temperature, are specified using the Calculate menu. To calculate the
bubble point at the pressure of 9 bar click on

To carry out an isothermal flash at 9 bar and 375K click on

User Guide for Multiflash for Windows Getting Started  21


A short description of the function of each toolbar button is displayed when the
cursor is placed over the button.

Other calculations
Any of the input conditions may be changed by entering new values to overwrite
or supplement those shown in the input section of the main window.
Compositions for a mixture may be altered as described above.
Ensure that all necessary input conditions are defined for the flash calculation
you wish to carry out and then click on the appropriate toolbar button or select
the required flash from the Calculate menu.
To replace a component or to add new components see “Adding, inserting,
replacing and deleting components” on page 65.

Phase envelope
You can plot the complete phase envelope by clicking on the phase envelope
button or selecting Phase Envelope from the Calculate menu.

Click on the VLE Autoplot button; the vapour-liquid phase boundary will be
displayed in a separate window.

22  Getting Started User Guide for Multiflash for Windows


The phase diagram may be edited or printed as described in, ”Customising the
phase envelope plot” on page 151. Alternatively it can be exported to Excel
(Excel 97 or later).

Saving the problem setup


Once you have defined the components and models you can create a problem
setup file containing this information for future use. If compositions and other
input conditions are set these values will also be saved in the file.

To save the setup either click on Save problem setup button, , or


select “Save Problem Setup” or” Save problem Setup As” from the File menu.
The dialogue box allows you to specify the name of the .mfl file and the
directory where you want it stored.

User Guide for Multiflash for Windows Getting Started  23


If the problem file to be saved is based on an existing file, the default file name
given will be the same as the existing one and a warning message will pop up.

Otherwise Multiflash will provide a default file name which can be overwritten.

Backup file
For any existing MFL files loaded to Multiflash, a backup file with a file
extension .MFB will be created if the existing MFL file is overwritten with the
changes.

Loading a pre-defined MFL file


A warning message is given when loading a saved MFL file to Multiflash to overwrite the current project.

Warning option for matching and PVT form


A warning message is given when leaving the form without matching the data
from all the matching forms and PVT forms.

Printing the output


You can print the output from your calculations by selecting “Print Results”
from the File menu or clicking on the Print Results button,
This Print dialogue (see below) allows you to select the printer and its settings
and print out all the output currently stored in the results window.

24  Getting Started User Guide for Multiflash for Windows


If you only wish to print part of the output you should select the relevant section
by highlighting it with the cursor. This time the print range in the print panel
shows you the option of printing out only the selected text.
Alternatively you can cut or copy the relevant sections and paste them to another
application, such as Word.

Saving the output


The output from Multiflash is described in detail elsewhere, see “Output” on
page 169. All the output from any Multiflash session is automatically stored in a
file called MFLASH.LOG. This file will be re-named the next time the program
is started. The names are allocated sequentially as MFLASH_1.LOG,
MFLASH_2.LOG, etc., up to MFLASH_9.LOG.
If you wish to save the output to another file, select Save Results from the File
menu.
A dialogue box allows you to choose the file name and directory. The
convention is that the extension for output files is .out, but you may alter this if
you wish.
Note that the amount of output produced by any calculation or problem setup file
is limited to 300kb of text. If there is too much output only the last 300kb is
displayed on the screen or in the log file.

How to exit the program


To exit Multiflash select Exit from the File menu. If the current fluid definition
has changed the user is asked if saving is necessary.

Technical support
For contact information see “Technical support” on page 191.

User Guide for Multiflash for Windows Getting Started  25


Models

Introduction
This section defines what a model is in terms of the Multiflash nomenclature,
what models are available and when you might wish to use them, as well as the
practical means of specifying and using them in Multiflash. For information on
specifying models, see “How to specify models in Multiflash” on page 43.
Detailed model descriptions may be found in our separate User Guide for
Models and Physical Properties.

What is a model?
Within the context of Multiflash, a model is a mathematical description of how
one or more thermodynamic or transport properties of a fluid or solid depends on
pressure, temperature and composition.

What types of model are available?


The key calculation carried out in Multiflash is the determination of phase
equilibrium. This is based on the fundamental relationship that at equilibrium the
fugacity of a component is equal in all phases. For a simple vapour-liquid system

fiv  fil
v
where f i is the fugacity of component i in the vapour phase and f i l is the
fugacity of component i in the liquid phase.
The models used in Multiflash to represent the fugacities in terms of
temperature, pressure (and composition) fall into two groups: equation of state
methods and activity coefficient methods. The basis of each of these methods is
described below.
With an equation of state (EOS) method all thermodynamic properties for any
fluid phase can be derived from the equation of state. With an activity coefficient
method the vapour phase properties are derived from an equation of state,
whereas the liquid properties are determined from a combination of models
which include a representation of the excess properties.
Multiflash may also be used to calculate the phase equilibrium of systems
containing solid phases, either mixed or pure. These may occur either when a
normal fluid component freezes or may be a particular solid phase such as a
hydrate, wax or asphaltene. Models used to represent these solids are discussed
below.

User Guide for Multiflash for Windows Models  27


The transport properties of a phase (viscosity, thermal conductivity and surface
tension) are generally derived from semi-empirical models which will be
discussed later.

Equation of state models


An equation of state describes the pressure, volume and temperature (PVT)
behaviour of pure components and mixtures. Most equations of state have
different terms to represent the attractive and repulsive forces between
molecules. Any thermodynamic property, such as fugacity coefficients and
enthalpies, can be calculated from an equation of state relative to the ideal gas
properties of the same mixture at the same conditions.

When to use equation of state methods


Equations of state can be used over wide ranges of temperature and pressure,
including the subcritical and supercritical regions. They are frequently used for
ideal or slightly non-ideal systems such as those related to the oil and gas
industry where modelling of hydrocarbon systems, perhaps containing light
gases such as H2S, CO2 and N2, is the norm. Equation of state methods do not
necessarily well-represent highly non-ideal chemical systems such as alcohol-
water. For this type of system, at low pressure, an activity coefficient approach is
preferable but at higher pressure you may need to use an equation of state with
excess Gibbs energy mixing rules, such as RKSA(Infochem).
All equations of state will describe any system more accurately when binary
interaction parameters (BIPs) have been derived from the regression of
experimental phase equilibrium data. BIPs are adjustable factors that are used to
alter the predictions from a model until these reproduce as closely as possible the
experimental data. The use of interaction parameters in Multiflash is discussed
separately, see “Binary interaction parameters” on page 50.
The thermal properties of any fluid phase can be derived from an equation of
state. However, one property which is often poorly represented by the simpler
equations of state is the liquid density. Multiflash offers enhanced versions of
both the Redlich-Kwong-Soave (RKS) and Peng-Robinson (PR) cubic equations
of state where the equation of state parameters can be fitted to reproduce both the
pure component saturated vapour pressure using a databank correlation and the
saturated liquid density at 298K or Tr=0.7 (Peneloux method). These are referred
to in Multiflash as the advanced version of the particular equation of state.

Equations of state provided in Multiflash


The following equations of state are available in Multiflash.

Ideal gas equation of state


This model is normally used in conjunction with an activity coefficient method
when the latter is used to model the liquid phase. It could also be used to
describe the behaviour of gases at low pressure.

Peng-Robinson equation of state


The Peng-Robinson (PR) equation is a cubic equation of state.

28  Models User Guide for Multiflash for Windows


Peng-Robinson 1978 (PR78) equation of state
The 1978 revised version of the Peng-Robinson equation has a different
treatment for the parameter  . This model removes a defect in the original
equation where heavy components with higher acentric factors become more
volatile than components with somewhat lower acentric factors. However, for
any mixture containing components with acentric factors greater than 0.49 the
PR78 equation will give different results and must therefore be treated as a
different model.

Redlich-Kwong (RK) and Redlich-Kwong-Soave


(RKS) equations
Like Peng-Robinson, the Redlich-Kwong and Redlich-Kwong-Soave equation
and its variants are examples of simple cubic equations of state.

Advanced Equation of state options


The advanced implementation of both the Peng-Robinson and the Redlich-
Kwong-Soave equations of state (PRA, PR78A and RKSA models) contain
additional non-standard features. These include the ability to match stored values
for the liquid density and the saturated vapour pressure and a choice of mixing
rule.

The Peneloux density correction


This correlation is used to match the density calculated from the equation of state
to that stored in the chosen physical property data system. For light gases, the
density is matched at a reduced temperature of 0.7 and the volume correction is
assumed constant. In Multiflash, for liquid components the volume shift is
treated as a linear function of temperature; the density is matched at 290.7K and
315.7K so as to reproduce the density and thermal expansivity of liquids over a
range of temperatures centred on ambient. However, a third term is available, see
the User Guide for Models and Physical Properties, and the user may enter all
three coefficients as pure component properties.

Fitting the vapour pressure curve


For each component the equation of state a parameter is fitted by linear
regression to the vapour pressure over a range of reduced temperatures
corresponding to the stored data. Up to 5 coefficients may be used but fewer
coefficients will be fitted if there are insufficient data or if the extrapolation to
low temperatures is unrealistic. If there is no vapour pressure equation for a
component, the standard expression for each equation of state is used.

Mixing Rules
The standard mixing rule for the cubic equations of state is the, so-called, van
der Walls 1-fluid mixing rule. This is a simple recipe for obtaining the properties
of a mixture by combining the pure-component properties. It is a widely used
and highly effective method for many non-polar mixtures encountered in the oil
and gas industries.
For highly non-ideal systems it is often useful to be able to use a Gibbs energy
excess model (e.g. UNIQUAC or NRTL) as part of the mixing rule for the
equation of state. The possibilities are outlined in the User Guide for Models and
Physical Properties.

User Guide for Multiflash for Windows Models  29


When to use cubic equations of state
The simple cubic equations of state, PR and RKS, are widely used in engineering
calculations. They require limited pure component data and are robust and
efficient. Both PR and RKS are used in gas-processing, refinery and
petrochemical applications. They will usually give broadly similar results,
although if one model has been fitted to experimental data and there are no
interaction parameters for the other then the optimised model is always
preferable. There is some evidence that RKS gives better fugacities and PR
better volumes (densities) but both can be improved if the Peneloux correction is
used.
For most applications we would recommend the use of the RKSA (or PRA,
PR78A) model sets which use the Peneloux correction, fit the EOS parameters to
match the vapour pressure and use the Van der Waals 1-fluid mixing rules.
RKSA with the Infochem mixing rules is used as part of the hydrate model and
provides extra flexibility to represent the highly non-ideal aqueous system. It
does, however, require suitable BIPs for such systems.
The API variant of RKS is applicable to petroleum systems and mixtures
containing hydrogen. The RK EOS may be used instead of the ideal gas model
for the vapour phase of systems where the liquid phase is being modelled with an
activity coefficient model.
Finally, the GUI provides a checkbox that allows the user to use the GERG
2008 model to calculate the density of the vapour phase while estimating the rest
of the thermodynamic properties (e.g., fugacity coefficients, vapour pressures,
etc.) with the selected cubic Eos.

Cubic plus association (CPA) model


The CPA model consists of the Redlich-Kwong-Soave equation plus an
additional term based on Wertheim’s theory that represents the effect of
chemical association.
The CPA model also uses the Peneloux density correction to match the liquid
density calculated from the equation of state to that stored in the chosen physical
property data system. The volume shift is a linear function of temperature which
is set to match the saturated liquid density at two different temperatures. For
light gases, a constant volume shift is used that is fitted to the gas’s liquid
density at a reduced temperature of 0.7.

When to use CPA.


The CPA model may be used for hydrate calculations with an aqueous phase
including methanol, ethanol, MEG, DEG, TEG and salts. For other components
it reduces to the RKSA EOS.

PSRK equation of state


This model consists of the RKSA equation of state with vapour pressure fitting,
the Peneloux volume correction and the PSRK type mixing rules. The excess
Gibbs energy is provided by the PSRK variant of the UNIFAC method. This is
the same as the normal VLE UNIFAC model except that the group table has
been extended to include a large number of common light gases.

When to use PSRK


The PSRK model is an extension of the UNIFAC method. It is intended to
predict the phase behaviour of a wide range of polar mixtures using the solution
of groups concept as embodied in UNIFAC. The main benefit of PSRK is that it
is able to handle mixtures containing gases much better than UNIFAC and unlike

30  Models User Guide for Multiflash for Windows


a normal equation of state it can handle polar liquids. This is because (a) it uses
an equation of state with an excess Gibbs energy mixing rule thereby avoiding
problems of how to handle supercritical components in an activity coefficient
equation; (b) the UNIFAC group parameter table has been extended in PSRK to
include 32 common light gases.

ZJ (Zudkevitch-Joffe) model
The ZJ equation of state model is a variant of the original RK cubic eos. Unlike
the original RK, the “a” and “b” parameters are expressed explicitly in terms of
the critical temperature and pressure, the “a” and “b” parameters in ZJ eos are
defined by simultaneously solving the equations of fugacity coefficients along
the saturation line and the equation of pressure for both vapour and liquid phase.

When to use ZJ model


The model provides a tool for giving better predictions on enthalpy departures of
saturated and compressed liquids, both pure and liquid mixtures with suitable
interaction parameters (BIPs). However the BIPs are required in order to use the
model as the default BIPs in our databank are not regressed against any
experimental data.

PC-SAFT equation of state


The PC-SAFT equation is a development of the SAFT model that has been
shown to give good results for a wide range of polar and non-polar substances
including polymers. Polymers are one of the most important areas of application
of PC-SAFT. The model appears to be one of the most accurate and realistic
equations of state currently available for modelling polymer systems.
PC-SAFT stands for the Perturbed Chain Statistical Associating Fluid Theory
and it incorporates current ideas of how to model accurately the detailed
thermodynamics of fluids within the framework of an equation of state. The
mathematical structure is very complex and cannot be conveniently described in
this guide. Further information and references are provided in the User Guide for
Models and Physical Properties.
The Multiflash version includes an implementation of the association term of
PC-SAFT which follows the same general structure as the association term in the
CPA model. We also include the dipolar and quadrupolar terms when the dipole
moment and quadrupole moments are available.
Polymers are not well defined chemical compounds but rather a distribution of
chain molecules of varying molecular weight. In Multiflash, polymers must be
represented by one or more pseudo components which must be set up as user-
defined components.
Using PC-SAFT, every pseudo component for a given polymer must be assigned
the same values of the pure-compound parameters SAFTSIGMA (in metres, not
Ångstrom units) and SAFTEK. In addition, the SAFTM parameter must be
specified. This is normally quoted as a ratio to the molecular weight, so it has to
be calculated for each polymer pseudo component knowing the molecular
weight. For polystyrene, for example, Gross and Sadowski give the ratio as
0.019, so for a polystyrene pseudo component of molecular weight 100000, the
SAFTM parameter should be set to 1000000.019=1900, etc.
Additionally, the user can define association parameters if the polymer forms
hydrogen bonds. These parameters are SAFTBETA which defines the
volumetric or entropic parameter, and SAFTEPSILON, the energy or enthalpy
parameter. Multiflash also provides an extension to the PC-SAFT definition: so
that the user can also supply a heat capacity parameter SAFTGAMMA for the
association term. For the association term to be non-zero, the user must also

User Guide for Multiflash for Windows Models  31


define the parameter SAFTFF which denotes the number of donor bonding sites
per segment of polymer.
Values of PC-SAFT parameters for polymers can be found in Modelling
Polymer Systems Using the Perturbed-Chain Statistical Associating Fluid
Theory Equation of State by Gross and Sadowski in Industrial and Engineering
Chemistry Research, 41, 1084, (2002) and in Modelling of polymer phase
equilibria using Perturbed-Chain SAFT by Tumakaka, Gross and Sadowski in
Fluid Phase Equilibria, 194-197, 541, (2002).
Multiflash allows the user to define up to four polymer segments which can be
used to define any number of homopolymers or copolymers following the
method of Tumakaka, Gross and Sadowski described in the reference above. If
the polymer is formed from only one type of segment, it is a homopolymer of
that segment; if it is formed of two or more types of segment, it is a copolymer.
Multiflash also has a version of PC-SAFT with simplified mixing rules as
proposed by researchers at the Danish Technical University. The same pure
component parameters can be used for this model variant but the model
interaction parameters will be different.

Lee-Kesler (LK) and Lee-Kesler-Plöcker (LKP)


equations of state
The LK and LKP methods are 3 parameter corresponding states methods based
on interpolating the reduced properties of a mixture between those of two
reference substances.

When to use LK or LKP


The methods predict fugacity coefficients, thermal properties and volumetric properties of a mixture. However, they
are rather slow and complex compared to the cubic equations of state and are not
particularly recommended for phase equilibrium calculations, although they can
yield accurate predictions for density and enthalpy. They would normally be
applied to non-polar or mildly polar mixtures such as hydrocarbons and light
gases.

Benedict-Webb-Rubin-Starling (BWRS) equation


of state
The method is an 11 parameter non-cubic equation of state. For methane, ethane,
ethylene, propane, propylene, isobutane, n-butane, isopentane, n-pentane,
hexane, heptane, octane, carbon dioxide, hydrogen sulphide and carbon dioxide,
the pure component parameters are set to values recommended by Starling in his
book ‘Fluid Thermodynamic Properties for Light Petroleum Systems’, Gulf
Publishing Co., Houston, 1973. For other substances the pure component
parameters are estimated using correlations developed by Starling and Han
which are given in the same book.

When to use the BWRS equation


The BWRS equation is included for the convenience of users that wish to
reproduce calculations based on this method. It is not generally recommended.
The BWRS equation can give accurate volumetric and thermal property
predictions for light gases and hydrocarbons. Given suitable interaction
parameters it should give reasonable vapour-liquid phase equilibrium predictions
but we do not provide many BIPs in our databank. Owing to its complexity, it
requires more computing time than the cubic equations of state.

32  Models User Guide for Multiflash for Windows


Multi-reference fluid corresponding states
(CSMA) model
The CSMA model is based on a collection of very accurate equations of state for
a number of reference fluids. It will provide accurate values of thermodynamic
properties for any of the reference fluids (see below for a list) and it uses a 1-
fluid corresponding states approach to estimate mixture properties. It is
formulated so that mixture properties will reduce to the (accurate) pure
component values as the mixture composition approaches each of the pure
component limits.

Reference fluids
The following substances are included in the model: ammonia, argon, n-butane,
iso-butane, 1-butene, cis-2-butene, trans-2-butene, cyclohexane, CO, CO2, COS,
ethane, ethanol, ethylene, fluorine, helium, heptane, hexane, iso-hexane,
hydrogen, H2S, krypton, methane, neon, nitrogen, NF3, octane, oxygen, n-
pentane, iso-pentane, neo-pentane, propane, propylene, SF6, SO2, toluene, water
(IAPSW 95), xenon, R11, R113, R114, R115, R116, R12, R123, R124, R125,
R13, R134a, R14, R143a, R152a, R22, R227fa, R23, R245fa, R32, RC318,
R1234YF and R1234ZE(E).
The equations of state are taken from various sources and do not all have the
same quality or range of applicability.
Other hydrocarbons and petroleum fractions are included using a generalised
equation of state.

IAPWS-95
The reference equation of state used for water is the IAPWS-95 scientific
formulation. It is also available as a separate model option. For water the
recommended equations for transport properties have also been implemented.

Carbon Dioxide high-accuracy model


The reference EOS of Span & Wagner and high-accuracy models for the
transport properties of carbon dioxide are available as a separate model option.

GERG-2008
The CSMA model also includes the GERG-2004/2008 natural gas model. This is
an industry-standard high-accuracy model for mixtures of natural gas
components: methane, nitrogen, C02, ethane, propane, n-butane, iso-butane, n-
pentane, iso-pentane, hexane, heptane, octane, nonane, decane, argon, oxygen,
hydrogen, CO, water, helium and H2S. The model includes appropriate BIPs for
all components in the list.
The model is fully described in the publication:, O. Kunz, R. Klimeck, W.
Wagner, M. Jaeschke, The GERG-2004 wide-range equation of state for natural
gases and other mixtures, GERG Technical Monograph 15 (2007).

Applicability
Applications of the model include: acid gas injection; natural gas pipelines and
processes; CO2 transport and carbon sequestration; water/steam systems; air;
instrument calibration and multi-phase meters.
The model performs best for mixtures that do not involve strong specific
interactions and for any of the pure substances in the list above. For mixtures,
appropriate binary interaction parameters are needed for good accuracy. BIPs are

User Guide for Multiflash for Windows Models  33


included for the following components: CO2, H2S, methane, ethane, propane,
butane, pentane, and water. The mixture model is applicable to systems that do
not contain free water.
The GERG-2004/2008 model is a well-verified standard. It is probably the best
model for natural gas mixtures containing the components listed above.

Activity coefficient methods


Liquid activity methods are based on the following equation for the fugacity of
component i in the mixture

f i l  xi i f i*, l
In an ideal solution the liquid fugacity of each component is directly proportional
to the mole fraction of the component, ie. the activity coefficient  i is equal to 1

The ideal solution assumes that all molecules interact with the same
intermolecular potential. This assumption is reasonable for molecules of a
similar size and similar type. However, most real mixtures deviate significantly
from ideality and the activity coefficient is different from unity.

Activity coefficient equations in Multiflash


A number of activity coefficient equations are available in Multiflash. Details of
each model may be found in the User Guide for Models and Physical Properties.

Ideal solution model


The ideal solution model may be used when the mixture is ideal, i.e. when there
are no mixing effects. It can also be used for single components to calculate
some pure component properties from the physical property databank.

Wilson E equation
This model may be used for vapour-liquid equilibrium calculations but it is not
capable of predicting liquid-liquid immiscibility. Binary interaction parameters
are provided in our INFOBIPS bank for some component pairs. If no BIPs are
included for your particular mixture then to obtain accurate predictions you must
supply binary interaction parameters values in the correct units.

Wilson A equation
This model, which is a simplified form of the Wilson E model, may be used for
vapour-liquid equilibrium calculations but it is not capable of predicting liquid-
liquid immiscibility. To obtain accurate predictions you must supply binary
interaction parameters (BIP) values, which are dimensionless.

NRTL equation
The NRTL model may be used for vapour-liquid, liquid-liquid and vapour-
liquid-liquid calculations (the VLE option should be used for VLLE). Again if
BIP values are not provided in the BIP databank, INFOBIPS, they must be
supplied for accurate predictions. In cases where the user does not specify any
value for the third adjustable parameter,  ij , it is automatically set to 0.3 if the
VLE version of NRTL is specified or to 0.2 if the LLE version is specified. Note
that  ij   ji so only  ij need be supplied.

34  Models User Guide for Multiflash for Windows


UNIQUAC equation
The UNIQUAC model may be used for vapour-liquid, liquid-liquid and vapour-
liquid-liquid calculations. There are UNIQUAC VLE and LLE variants as for the
NRTL equation. Again BIP values must be supplied for accurate predictions if
they are not included in INFOBIPS. For VLLE the variant chosen should be
guided by the BIPs available.

Regular Solution theory


Regular solution theory can be used for vapour-liquid calculations for mixtures
of non-polar or slightly polar components. The theory is applicable to systems
which exhibit negligible entropies and volumes of mixing. However, it has been
largely superseded by equations of state.

Flory-Huggins
The Multiflash implementation of Flory-Huggins theory includes a correction
term. The Multiflash expression reduces to the standard Flory-Huggins theory if
all interaction parameters are set to zero. However, to obtain reasonable results it
is usually necessary to adjust the values of the interaction parameters to fit the
data.
Flory-Huggins theory is able to describe systems which include some long chain
molecules. It has consequently been applied to model polymer systems but it has
been to some extent superseded by other models such as PC-SAFT. However,
Flory-Huggins theory still offers the advantages of speed and simplicity.

UNIFAC method
The UNIFAC method is similar to UNIQUAC but the interaction parameters are
predicted based on the molecular group structure of the components in the
mixture. The model is completely predictive and does not require the user to
supply BIPs.

Dortmund Modified UNIFAC method


For Dortmund modified UNIFAC, the two binary parameters between
components are treated as quadratic functions of temperature.
Dortmund modified UNIFAC is better able to represent the simultaneous
vapour-liquid equilibria, liquid-liquid equilibria and excess enthalpies of polar
mixtures than the original UNIFAC method. Like original UNIFAC, however, it
does not allow for the presence of light gases in the mixture.

Gas phase models for activity coefficient


methods
The normal choices for the gas phase model would be the perfect gas equation,
the RK equation of state or a virial equation of state. They are described in detail
in the "Models and Physical Properties Guide".
A second virial coefficient model such as Hayden and O'Connell (HOC) can
account for gas phase non-idealities up to pressures of about 5 to 10 bar. The
implementation of the HOC model in Multiflash allows the vapour phase
association of substances such as acetic acid to be represented.

When to use activity coefficient models


Activity coefficient models are usually used to model any combination of polar
and non-polar compounds including those exhibiting very strong non-ideality. If
the gas phase model is ideal pressures should be limited to 3-5 bar. If Redlich-

User Guide for Multiflash for Windows Models  35


Kwong or another equation of state is used to model the gas phase then the
pressure limit is higher, of the order of 10-20 bar. However, the mixture should
be subcritical. If the mixture contains some components which are above their
critical point, such as dissolved gases, then you should be aware that the
properties of such components, e.g. vapour pressure, will be extrapolated.
NRTL, UNIQUAC and UNIFAC may be used to model VLE, LLE and VLLE
but both Wilson models are limited to VLE only.
To obtain accurate predictions from any of the activity coefficient models,
except UNIFAC, it is necessary to use interaction parameters. If these are not
available in INFOBIPS for your system then you need to supply interaction
parameters for the missing values which match the model specification given
above and which are in the correct units. The parameters in Infobips are in
standard SI units, Jmol-1, except for Wilson A where the BIPs are dimensionless.
The user can supply BIPs in other units provided these units are specified
correctly.

Models for solid phases


Multiflash may also be used to calculate the phase equilibrium of systems
containing solid phases, either mixed or pure. These may occur either when a
normal fluid component freezes or may be a particular type of solid phase such
as a hydrate.

Solid freeze-out model


This model is used to calculate the thermodynamic properties of pure solid
phases formed by freezing one or more of the components in the fluid mixture.
It may be applied to any component where this may be a consideration.
Solid freeze-out can be used to model the solidification of compounds such as
water, carbon dioxide or methane, for example in natural gases. It can also be
used to model eutectics.

Scaling and general freeze-out model


In its general form, the freeze-out model can be applied to any solid phase of
fixed composition, which must be defined. The model can for example be
applied to hydrated salts such as monoethylene glycol (MEG) monohydrate or to
crystalline mineral salts, i.e. scales. The model is available as part of the hydrates
module where it may be applied to halide scales.

Modelling hydrate formation and inhibition


Natural gas hydrates are solid ice-like compounds of water and the light
components of natural gas. They form at temperatures above the ice point and
are therefore a serious concern in oil and gas processing operations. The phase
behaviour of systems involving hydrates can be very complex because up to
seven phases must normally be considered. The behaviour is particularly com-
plex if there is significant mutual solubility between phases, e.g. when inhibitors
or CO2 are present. Multiflash offers a powerful set of thermodynamic models
and calculation techniques for modelling gas hydrates.

Hydrate model
The recommended hydrate model is based on the CPA equation of state for the
fluid phases plus the van der Waals and Platteeuw model for the hydrate phases.
The original Infochem model is also available. It is based on a modification of

36  Models User Guide for Multiflash for Windows


the RKS equation of state (RKSAINFO) for the fluid phases. The two models
usually perform in a very similar way. The models also represent the inhibition
effects and partitioning between phases of the common hydrate inhibitors:
methanol, ethanol, MEG, DEG, TEG and salts.
The main features of the models are:
 Our description of hydrate phase behaviour uses a
thermodynamically consistent set of models for all phases present
including hydrate structures I, II and H, ice, water, liquid and gas.
The vapour pressures of pure water and sublimation pressures of
ice are very accurately reproduced.
 The following natural gas hydrate formers are included: methane,
ethane, propane, isobutane, butane, nitrogen, CO2 and H2S.

 Other hydrate formers that are not usually present in natural gas but
which form structure I or II are also included. These compounds
are: SF6 , ethylene, propylene, cyclopropane, oxygen, argon,
krypton, xenon and THF.
 Parameters are provided for the following compounds that form
hydrate structure II in the presence of small ‘help-gases’ such as
methane or nitrogen: cyclopentane, benzene and neopentane. These
compounds and the structure H formers listed below may be
present in condensate and oil systems.
 Structure H hydrates form in the presence of small ‘help-gases’
such as methane or nitrogen but the formation temperatures are
significantly higher (about 10 K) than pure methane or nitrogen
hydrate. In practice it seems that structure II hydrates form before
structure H but, if there is enough water, structure H may be
formed too. The structure H model includes parameters for:
isopentane
neohexane
2,3-dimethylbutane
2,2,3-trimethylbutane
2,2-dimethylpentane
3,3-dimethylpentane
methylcyclopentane
methylcyclohexane
cis-1,2-dimethylcyclohexane
2,3-dimethyl-1-butene
3,3-dimethyl-1-butene
cycloheptene
cis-cyclooctene
adamantane
ethylcyclopentane
1,1-dimethylcyclohexane
ethylcyclohexane
cyclohexane
cycloheptane
cyclooctane
 The thermal properties (enthalpies and entropies) of the hydrates
and ice are included allowing isenthalpic and isentropic flashes
involving these phases.
 Calculations can be made for any possible combination of phases
including cases without free water. No modification of the phase
models is required to do this.

User Guide for Multiflash for Windows Models  37


 The properties of the hydrates have been fixed by investigating data
for natural gas components in both simple and mixed hydrates to
obtain reliable predictions of structure I, structure II and structure
H hydrates.
 The properties of the empty hydrate lattices have been investigated
and the most reliable values have been adopted.
 Proper allowance has been made for the solubility of the gases in
water so that the model parameters are not distorted by this effect.
This is particularly important for carbon dioxide and hydrogen
sulphide which are relatively soluble in water.
 Correct thermodynamic calculations of the most stable hydrate
structure have been made.
The model is used to calculate the conditions (temperature or pressure)
corresponding to the experimental determination of the hydrate dissociation
point. This is equivalent to the conditions where the first very small quantity of
hydrate appears after a sufficiently long time: the thermodynamic formation
point. Before the thermodynamic formation point is reached hydrate cannot form
- this point is also called the stability limit. Beyond the stability limit hydrate can
form but may not do so for a long time.
The model has been tested on a wide selection of open literature and proprietary
experimental data. In most cases the hydrate dissociation temperature is
predicted to within ±1K.

Hydrates in water sub-saturated systems


Hydrates can form even in systems where there is no free water present. Our
hydrate model is capable of predicting this phenomenon, although the data
available for validating the results are very limited. What we have noticed is that
for systems with very little water and at high pressures the predicted hydrate
dissociation temperatures using RKSAINFO and CPA tend to diverge with
increasing pressure, with CPA predicting lower hydrate dissociation
temperatures than RKSAINFO. There are no data presently available to confirm
which is correct. We can provide alternative model parameters if it required to
change the behaviour of either model.

Nucleation model
The nucleation model was developed in collaboration with BP as part of the
EUCHARIS joint industry project. This model is an extension of the existing
thermodynamic model for hydrates described above. In order to extend the
nucleation model for use with Multiflash, the following enhancements to the
nucleation model were made:
 The model was extended to cover the homogeneous nucleation of
ice and fitted to available ice nucleation data.
 The model was generalised to cover, in principle, nucleation from
any liquid or gas phase.
 A correction for heterogeneous nucleation was included that was
matched to available hydrate nucleation data.
 An improved expression was adopted for fluid diffusion rates.
 More robust numerical methods were introduced into the program.
The nucleation model provides an estimate of the temperature or pressure at
which hydrates can be realistically expected to form. The model is based on the
statistical theory of nucleation in multicomponent systems. Although there are
limitations and approximations involved in this approach it has the major benefit

38  Models User Guide for Multiflash for Windows


that a practical nucleation model can be incorporated within the framework of a
traditional thermodynamic hydrate modelling package.
Comparisons of model predictions with experimental data have been made
where possible. In general measurements of hydrate nucleation result in an
experimental error of  2ºC and predictions are usually within this error band.
With the combination of the hydrate model and the nucleation model it is
possible to predict the hydrate risk area which lies between the formation and
dissociation boundaries.

Inhibitor modelling
Thermodynamic hydrate inhibitors decrease the temperature or increase the
pressure at which hydrates will form from a given gas mixture.
The CPA-based hydrate model includes parameters for water with methanol,
ethanol, MEG, DEG, TEG and salts. The RKSAINFO-based model also includes
parameters for some less-common inhibitors: iso-propanol, propylene glycol and
glycerol.
The treatment of hydrate inhibition has the following features:
 The model can explicitly represent all the effects of inhibitors
including the depression of the hydrate formation temperature, the
depression of the freezing point of water, the reduction in the
vapour pressure of water (i.e. the dehydrating effect) and the
partitioning of water and inhibitor between the oil, gas and aqueous
phases.
 The model has been developed using all available data for mixtures
of water with methanol, ethanol, MEG, DEG and TEG. This
involves representing simultaneously hydrate dissociation
temperatures, depression of freezing point data and vapour-liquid
equilibrium data.
 An electrolyte model is available in Multiflash, and a salinity
calculator tool is provided (see “Salt calculator” on page 77) which
allows the salt composition to be entered in a variety of ways. The
Electrolyte model includes the ions: Na+, K+, Ca++, Cl- and Br-,
and the salinity calculator can be used to convert a water analysis
that includes other ions into an equivalent amount of Na+, K+,
Ca++ , Cl- and Br-, or salt pseudo-component.
 The solubility of hydrocarbons and light gases in water/inhibitor
mixtures has also been represented.

Modelling wax precipitation


Waxes are complex mixtures of solid hydrocarbons that freeze out of crude oils
if the temperature is low enough. Under conditions of interest to the oil industry,
waxes consist mainly of normal paraffins. Waxes are thought to consist of many
crystals each of which is a solid solution of n-paraffins of a fairly narrow range
in molecular weight.
The wax model in Multiflash was developed by Coutinho. The main features of
the model are:
 It represents wax as a solid solution. There are two versions of the model,
the Wilson and UNIQUAC variants. The version normally selected in
Multiflash is the Wilson model which approximates the wax as a single
solid solution. This approach is relatively simple to apply and gives a
good representation of the data, so it is recommended for general
engineering use. The more complex UNIQUAC variant models the
tendency of waxes to split into several separate solid solution phases. The

User Guide for Multiflash for Windows Models  39


UNIQUAC variant can be activated by configuration files that can be
supplied by Infochem for users who wish to simulate the detailed physical
chemistry of wax precipitation.
 It gives good predictions of waxing behaviour, both wax appearance
temperature and the amount of wax precipitated at different temperatures.
The method is applicable to both live and dead oils.
 It requires that the normal paraffins are explicitly present in the fluid
model, as these are the wax forming components. It is essential to use the
Infochem petroleum fluid characterisation procedure to enter the
measured n-paraffin concentrations or else to estimate the n-paraffin
distribution. The composition of the wax phase is determined by the
known thermal properties (normal melting point, enthalpy of fusion, etc.)
of the n-paraffins combined with their solution behaviour in both oil and
wax phases.
 In principle the wax model can be used in conjunction with any
conventional cubic equations of state. The default option in the Multiflash
implementation is RKSA.

Modelling asphaltene flocculation


Asphaltenes are polar compounds that are stabilised in crude oil by the presence
of resins. If the oil is diluted by light hydrocarbons, the concentration of resins
goes down and a point may be reached where the asphaltene is no longer
stabilised and it flocculates to form a solid deposit. Because the stabilising action
of the resins works through the mechanism of polar interactions, their effect
becomes weaker as the temperature rises, i.e. flocculation may occur as the
temperature increases. However, as the temperature increases further the
asphaltene becomes more soluble in the oil. Thus, depending on the temperature
and the composition of the oil, it is possible to find cases where flocculation both
increases and decreases with increasing temperature.
The Multiflash asphaltene model is based on the RKSA cubic equation of state
with additional terms to describe the association of asphaltene molecules and
their solvation by resin molecules. The interactions between asphaltenes and
asphaltenes-resins are characterised by two temperature-dependent association
constants: K AA and K AR . The remaining components are described by the van
der Waals 1-fluid mixing rule with the usual binary interaction parameters kij so
the asphaltene model is completely compatible with existing engineering
approaches that work well for describing vapour-liquid equilibria. The model is a
computationally-efficient way of incorporating complex chemical effects into a
cubic equation of state.

Other thermodynamic models


Multiflash also includes the COSTALD a corresponding states method for
estimating the density of liquid mixtures.
The COSTALD method can provide very accurate volumes for pure substances
and simple mixtures, such as LNG. It is valid for liquids on the saturation line
and compressed liquids up to a reduced temperature of 0.9. It is not necessarily
accurate for heavy hydrocarbon mixtures with dissolved gases.

Transport property models


For each of the transport properties, viscosity, thermal conductivity and surface
tension, Multiflash offers several approaches to obtaining values for mixtures.
One route is to calculate the property for a mixture by combining the property

40  Models User Guide for Multiflash for Windows


values for the pure components of which it is composed; the mixing rule
approach. The other is to use a predictive method suitable for the property in
question.

Viscosity
SuperTRAPP Model
The SuperTRAPP method is a predictive extended corresponding states model
that uses propane as a reference fluid. It can predict the viscosity of petroleum
fluids and well-defined components over the entire phase range from the dilute
gas to the dense fluid. The Infochem implementation of SuperTRAPP model
includes modification to ensure that the viscosity of aqueous solutions of
methanol, ethanol MEG, DEG and TEG or salts and ions are predicted
reasonably well. Overall the SuperTRAPP method is the most versatile method
for viscosity predictions and its performance is generally better than the other
methods available in Multiflash. We would recommend this method for oil and
gas application. It is the default viscosity model for use with equations of state.
Reference: Huber, M. L. & Hanley, H.J.M. (1996) The corresponding-states
principle: Dense Fluids. In J. Millat, J. H. Dymond & C. A. Nieto (Eds.),
Transport properties of Fluids: Their correlation, Prediction and Estimation.
Cambridge University Press.

Pedersen Model
This is a predictive corresponding states model originally developed for oil and
gas systems. It is based on accurate correlations for the viscosity and density of
the reference substance which is methane. The model is applicable to both gas
and liquid phases. The Infochem implementation of the Pedersen model includes
modifications to ensure that the viscosity of liquid water, methanol, ethanol,
MEG, DEG and TEG and aqueous solutions of these components or salt are
predicted reasonably well. We would recommend this method for oil and gas
applications.
Reference: Pedersen, Fredenslund and Thomassen, Properties of Oils and
Natural Gases, Gulf Publishing Co., (1989).

Twu Model
This is a predictive model suitable for oils. It is based on a correlation of the API
monograph for kinematic viscosity plus a mixing rule for blending oils. It is only
applicable to liquids.
Reference: Twu, Generalised method for predicting viscosities of petroleum
fractions, AIChE Journal, 32, 2091, (1986).

Lohrenz-Bray-Clark method
This model is a predictive model which relates gas and liquid densities to a
fourth degree polynomial in reduced density.
In Multiflash the fluid densities are derived from any chosen equation of state,
rather than the correlations proposed by Lohrenz et al. This has the advantage
that there is no discontinuity in the dense phase region when moving between
liquid-like and gas-like regions.
Multiflash also allows two variants of the LBC model. The first uses the original
LBC method to estimate the critical volume of petroleum fractions and takes the
critical volume of other components from the chosen data source. The second
variant fits the critical volume of each component to reproduce the liquid
viscosity at the boiling point.

User Guide for Multiflash for Windows Models  41


The method is mainly applicable to the types of components found in oil and gas
processing but we would recommend that the SuperTRAPP method is normally
used in these cases.

Liquid viscosity mixing rule


This method obtains the liquid mixture viscosity by applying a simple mixing
rule to the pure component saturated liquid viscosities generated from a
databank. Each component in the mixture must have a liquid viscosity
correlation stored in the databank.

Vapour viscosity mixing rule


The viscosity of a gas mixture at low density is calculated from the databank
correlations for the zero pressure gas viscosities of the pure components. Each
component in the mixture must have a vapour viscosity correlation stored in the
databank.

Thermal conductivity
SuperTRAPP thermal conductivity method
The SuperTRAPP method is an extended corresponding states model that uses
propane as a reference fluid. It is applicable to both gas and liquid phases. The
model can be used for petroleum fluids and well-defined components. The
thermal conductivity is defined as the sum of internal and translational
contributions. The latter are divided into three contributions: dilute gas, residual
and critical enhancement. The Multiflash model does not include a critical
enhancement term. For pure substances this can result in under-prediction of the
thermal conductivity near the critical region. However for a mixture the critical
enhancement is usually very small and negligible. The performance of the Super
TRAPP method is generally better than the CLS method.

Chung-Lee-Starling thermal conductivity method


This is a predictive method for both gas and liquid mixture thermal
conductivities. It requires the critical properties, Tci , Vci and  ci for non-polar
components. For polar and associating fluids the dipole moment and an
association parameter are also required. Association parameters for water, acetic
acid and the lower alcohols are provided. The fluid density is required as part of
the calculation and this quantity may be obtained from any of the
thermodynamic models in Multiflash. This method can be used for oil and gas
processing and also for polar mixtures.

Liquid thermal conductivity mixing rule


This method obtains the liquid mixture thermal conductivity by applying a
simple mixing rule to the pure component saturated liquid thermal conductivities
generated from a databank. Each component in the mixture must have a liquid
thermal conductivity correlation stored in the databank.

Vapour thermal conductivity mixing rule


The thermal conductivity of a gas mixture at low density is calculated from the
correlations for zero density gas thermal conductivity of the pure components at
the same temperature.

42  Models User Guide for Multiflash for Windows


Surface Tension
Linear Gradient Theory model
The Linear Gradient Theory model uses the properties of the phases in
equilibrium to determine the interfacial tension. The key property is the density
gradient that exists across the interface. With this model it is possible to estimate
the interfacial tension between Liquid/Gas and Liquid/Liquid phases. It can be
used in combination with the any EOS-based fluid model except: LKP, CSMA;
the asphaltene model.
Reference: Zuo, Y. X. and Stenby, E. H., A Linear Gradient Theory Model for
Calculating Interfacial Tensions of Mixtures, Journal of Colloid & Interface
Science, 182 p12, Elsevier (1996).

Macleod-Sugden method (MCS).


This method predicts the surface tension (liquid-vapour) of a mixture based on
the pure component parachors stored in a databank. It is mainly applicable to the
types of component found in oil and gas processing. In this implementation the
vapour phase is described by the ideal gas equation.
Reference: Pedersen, Fredenslund and Thomassen, Properties of Oils and
Natural Gases, Gulf Publishing Co., (1989).

Macleod-Sugden 2-phase variant (MCSA).


This method predicts the surface tension (liquid-vapour) of a mixture based on
the pure component parachors stored in a databank. It is mainly applicable to the
types of component found in oil and gas processing. In this implementation the
gas phase is described by the selected model for the gas phase (instead of the
ideal gas equation) and therefore is more robust than the 1-phase variant.
Reference: Pedersen, Fredenslund and Thomassen, Properties of Oils and
Natural Gases, Gulf Publishing Co., (1989).

Surface tension mixing rule


The surface tension for a liquid mixture may be calculated from the correlations
for the surface tension of the pure saturated liquids at the same temperature and
pressure using a power law model.

Diffusion coefficient
Fuller method
The Fuller method calculates gas phase diffusion coefficients. It is an empirical
modification of Chapman-Enskog theory.

Hayduk-Minhas method
The Hayduk-Minhas method calculates liquid phase diffusion coefficients. It
consists of a number of empirical correlations for different classes of mixture.

How to specify models in Multiflash

Using the menu


From the Select menu choose Model Set. The models selection dialogue is
shown below.

User Guide for Multiflash for Windows Models  43


Each tab groups together similar types of models or models for different
applications. Unless you have already set other default model preferences (see
below) the Cubic EoS tab is displayed with RKSA as the default model. The
default transport property models are shown. Other models can be selected or the
transport property calculations can be turned off by selecting None. Diffusion
coefficient models can be added if required.
For most model choices up to four phases may be considered. These are: gas,
liquid1, liquid2 and water. You can limit the number of phases to be considered.
For example, you may know that your problem has only a gas and one possible
liquid phase. In this case deselecting liquid2 and water may speed up
calculations and make the phase equilibrium easier to solve.
Once you are satisfied with your model selection click the Define Model button
and you will see a message to confirming your choice.

Click OK and then Close to return to the main Multiflash window.

Loading a model from a .mfl file


When you load an .mfl file that includes model definitions you do not need to go
through the Select Model Set process unless you wish to change details of the
models or phases. The options shown in the Select Model Set window reflect as

44  Models User Guide for Multiflash for Windows


closely as possible the contents of the .mfl file loaded but it is possible to have
options in the file that do not correspond to options that can be displayed.

Setting up preferred models in Multiflash


If you wish to have Multiflash always start up with your preferred model
selection you can do this by selecting Preferences/Models from the Tools menu.
The options are as shown for Select/Model Set above. The preferred set of
models and phases is stored in the Windows Registry and will be in force the
next time you start Multiflash. You can still select any other models as required.

How to change a model


You may wish to compare the predictions from one model with those from
another. This is easily achieved. Selecting a new model set will remove all
existing model-related information including: thermodynamic models; transport
property model; phases and BIPs.
For example, all you need to do to change from using RKSA to Peng-Robinson:
open the Select Model Set dialogue from the Select menu and click on PR. This
action will remove the previous model definition and load a new one and you are
ready to repeat your earlier calculation with a new model or define a new
problem.
Similarly you may change the current methods for calculating the transport
properties.

Models for solid phases

Hydrates
From the Select menu choose Model Set and then click on the Hydrates tab.

The fluid model used in conjunction with the solid phase hydrate model is CPA-
Infochem. The model includes parameters to describe the effect of

User Guide for Multiflash for Windows Models  45


thermodynamic hydrate inhibitors on hydrate formation and the partitioning of
the inhibitor between aqueous, gas and oil phases. The inhibitors include:
methanol, ethanol, MEG, DEG and TEG.
To model the effect of salts it is necessary to select the “CPA-Infochem +
Electrolyte” model, which combines the electrolyte model in Multiflash with the
CPA-Infochem model. The model is described in the section “Inhibitor
modelling” on page 39.
The default setting is to include models for hydrate structures: Hydrate 1 and
Hydrate 2. In the majority of cases for natural gases, condensates or oils Hydrate
2 is the most stable hydrate form. However, there are some fluids, with certain
compositions such as those with high concentration of methane or H2S, where
the most stable hydrate structure can change from Hydrate 2 at low pressures to
Hydrate 1 at high pressures. Hydrate structure H is unlikely to be present in most
practical situations but may be selected if required.
Calculation of the hydrate dissociation temperature and pressure will be quicker
if you exclude the hydrate nucleation option. However, if you want to include
the nucleation model select Phase Nucleation from the list of phases.
With the electrolyte model it is possible to allow for the formation of Halide
scales. If this option is selected then the appropriate phases will be added
automatically, based on the component formula, e.g. NaCl, NaCl.2H2O, KCl,
CaCL2, CaCl2.2H2O, CaCl2.4H2O, CaCl2.6H2O, NaBr, NaBr.2H2O, KBR or
CaBr2.6H2O. The Halide Scales option will only be available if the Electrolyte
model is selected and will slow down calculations so should only be used if solid
formation is suspected.

Pure solid phases


The freeze-out model can be applied to describe any pure solid component such
as ice, CO2 etc. It may ne used in conjunction with any model set for the fluid
phases but most commonly will be used with one of the cubic EoS.
From the Select menu choose ‘Freeze-out Components’. This will produce a
window displaying the components in the stream, e.g.

Checking, or unchecking, the box next to each name allows you to add or
remove the freeze-out model for that component. Each solid component may
form a separate phase. There is a limit (20) on the total number of (fluid and
solid) phases that may be considered.
A message box will appear to confirm that the model has been defined (or
removed) for the selected compound, e.g.

46  Models User Guide for Multiflash for Windows


The name assigned to each pure solid phase is “SOLID” plus the compound
name, e.g. ‘SOLIDEICOSANE’ (except in the case of water where it will be
ICE).

Waxes
The wax model in Multiflash is the Coutinho model, described in “Modelling
wax ” on page 39. To define the wax model select the Waxes tab. Fluid phases
are represented by the RKSA model.
For more information on how to use the wax model see “Case studies – Wax
precipitation” on page 252.

The default phases include water. This may be deselected if no water is present.
The transport property models apply to the fluid phases. Click on Define Model
and then Close.

Asphaltenes
To define the asphaltene model select the ‘Asphaltenes’ tab. Fluid phases are
represented by the RKSA model. Water is not one of the default phases but may
be added if required. Click on Define Model and then Close.
For more information on how to make best use of the asphaltene model see
“Case studies – Asphaltene flocculation” on page 259.

User Guide for Multiflash for Windows Models  47


Combined Solids Model
The Combined Solids tab allows you to specify any combination of wax, hydrate
and asphaltene solid phases. The fluid phase model is RKSA and the effect of
salts on hydrates is represented by the electrolyte model.

If you define only one type of solid you will be asked to use the individual solid
model tab.

48  Models User Guide for Multiflash for Windows


Troubleshooting - models
Although each version of Multiflash is thoroughly tested it is always possible
that you may come across problems. Please report any errors to us so that they
can be investigated and corrected.
There are other problems related to using Multiflash that can be resolved by the
user. Some of those related to models are discussed below; others will be
outlined in the relevant section.

Model is not available


If a model on a Select Model Set tab is greyed out this usually means that it is an optional add-on and has not been
licensed. You may not have licensed all the possible model options. The optional
models include: hydrates; wax; asphaltenes; mercury; PC-SAFT; CSMA;
IAPWS-95 and the CO2 High Accuracy model.

Groups not available for UNIFAC model


The UNIFAC model generates the binary interaction parameters from group
contributions. Although the majority of components in both the INFODATA and
DIPPR databanks can be constructed from UNIFAC groups this is not possible
for all components. Complex cyclic components are typical examples. If this is
the case then you will see a warning message

and in the main window


*** WARNING -13201 ***
Missing UNIFAC structure for one or more components
However, if you define the model first this warning message will not be
generated until you have defined components and tried to carry out a calculation.
If you do encounter a situation where standard UNIFAC groups are
missing, particularly for light gases, you should try loading the PSRK
model. PSRK is a variant of UNIFAC with additional structural groups.
If there are missing groups then you should note that because UNIFAC is the
liquid phase model, if you try to carry out flashes involving the liquid phase, e.g.
dew and bubble point calculations the flash will fail. However, the gas phase for
the UNIFAC VLE model is defined with a separate gas phase model and
isothermal flashes will apparently work with the stream being reported as all gas.
It is possible to add user-defined UNIFAC groups, although there are no specific
menu options. You would have to enter commands through the command box.
Information on the commands can be found in the Multiflash Command
Reference Manual.

User Guide for Multiflash for Windows Models  49


Binary interaction parameters
Binary interaction parameters (BIPs) are adjustable factors that are used to alter
the predictions from a model until these reproduce as closely as possible the
experimental data. BIPs are usually generated by fitting experimental VLE or
LLE data to the model in question. For the UNIFAC and PSRK models, BIPs are
predicted by group contribution methods and BIPs apply between pairs of
components. However, the fitting procedure may be based on both binary and
multi-component phase equilibria information, the former being the most
common.

BIPs and models


The more a BIP varies from its default value, the greater the adjustment required
to make the underlying model fit measured data. For some models the BIPs have
some physical significance but they are usually treated as empirical adjustment
factors. Different models also require different numbers of BIPs.
The cubic equations of state (RK, RKS, RKSA, PR, PR78, PRA. PR78A, ZJ)
require only a single BIP that may be constant or linear or quadratic function of
temperature. The default value is zero. A BIP will usually have a small positive
or negative value and the magnitude is usually much less than 1. For LK, LKP
and CSMA the default value of the interaction parameter is 1.
When non-standard mixing rules are used, e.g. when using RKSA(Infochem),
then the number of BIPs increases. For the Gibbs excess energy type mixing
rules (MHV2-type and Huron-Vidal-type) the number of BIPs will be
determined by the activity coefficient model used to describe the liquid phase.
For the RKSA-Infochem mixing rule or the Huron-Vidal-Pedersen (HVP) 3
BIPs are needed.
It is important to note that the HVP mixing rule can work with two different
types of BIP sets. For information on how to indicate which BIP set is being
used, please refer to the User Guide for Models and Physical Properties.
PC-SAFT requires two symmetric BIPs, in addition to the pure component
model parameters. The default value for both is zero.
CPA uses the same interaction parameters as RKSA with the addition of three
association parameters to describe cross association and self association where
this occurs.
Activity models generally reduce to the ideal mixing model when all BIPs are
zero (the default value). The Wilson A and UNIQUAC models require two BIPs;
Wilson E needs the same number of BIPs, but these are not interchangeable with
Wilson A. NRTL needs two binary energy interaction parameters and a non-
randomness factor,  . With the exception of  , these BIPs may take a wide
range of numerical values and more that one set may adequately represent the
same experimental data. The BIPs for the activity models are asymmetric and it
is important to define the binary pair of components i and j in the correct order
to agree with the fitted or reported BIPs.
The NRTL  parameter defaults to 0.3 for VLE calculations and 0.2 for LLE
calculations. Values derived from fitting to experimental data will vary but are
unlikely to be much greater than 0.6.
The Regular Solution and Flory Huggins models both use a single symmetric
BIP with a default value of zero.

50  Models User Guide for Multiflash for Windows


Temperature dependence of BIPs
In most of the open literature sources the reported binary interaction parameters
will be temperature independent, i.e. constants. However, Multiflash allows for
any BIP to be temperature dependent with either a linear or a quadratic
dependence, although we do not recommend this for the NRTL  parameter.

BIPs available in Multiflash


Our main BIP banks are applicable to oil and gas processing operations and
called appropriately, OILANDGAS and INFOBIPS.
INFOBIPS contains all the BIPs for the cubic equation of state models PR, PRA,
PR78, PR78A, RKS, RKSA and RKSA (Infochem) for hydrocarbons, water,
methanol, glycols, H2S, CO2 and N2, and for the CPA model. It also includes
BIPS for WilsonE and the VLE variants of NRTL and UNIQUAC, based on the
data reported in the Dechema Chemistry Data Series. Other BIPs are also
included for models such as CSMA, GERG-2008, BWRS and LKP. These
values are generally for particular mixtures not covered in the standard
correlations.
OILANDGAS contains BIP correlations that can be used to estimate BIPs for the
LKP model for hydrocarbon and light gas mixtures. It also provides methods for
estimating BIPs for the PR, PR78, RKS and CPA equations for mixtures that
include petroleum fractions.
A BIP bank, INFOLLBIPS, stores BIPs for use with the LLE variants of NRTL
and UNIQUAC.
For the UNIFAC model, BIPs are predicted from group contributions. The data
records for pure components in the INFODATA databank contain information
on UNIFAC groups, where applicable, enabling the BIPs to be generated.
Groups for use with the PSRK and Dortmund Modified UNIFAC models are
also stored as part of the pure component UNIFAC record. Where the groups
vary, Multiflash applies the correct group structure to match the chosen model.
We have created an Infochem version of the DIPPR databank that includes the
same group information. You will see a warning message if the group
contributions are missing for any chosen component.
It is possible to have two BIP banks in force for any problem. When an equation
of state model is defined Multiflash will first search INFOBIPS and then
OILANDGAS. If any BIPs are still missing they will be set to default values.
The VLE variants of the activity methods only access INFOBIPS, but the LLE
variants access INFOLLBIPS, followed by INFOBIPS.

Viewing BIP values


You can look at the values of any BIPs used in Multiflash calculations, including
those from the INFOBIPS databank and any supplied by the user. To do this
Define your model and mixture or load a problem setup file.
From the Tools menu select BIPs. The Show BIP Values window will be
displayed. The following example shows BIPs for decane and water for the RKS
model.

User Guide for Multiflash for Windows Models  51


A BIP dataset is assigned when the model is defined. The number of BIP
datasets listed depends on the models that use BIPs and the number of BIPs for
the model (see below). In the above example RKSBIP identifies the BIPs for the
RKS EoS and LGSTBIP identifies the BIPs for the LG surface tension model.
Select the RKSBIP dataset and click on Edit to view or change BIP values or the
temperature dependence of the BIPs.

The Write to Output button displays the information in the results window:
show bipset RKSBIP;
BIPSET: RKSBIP
COMPS ORDER VALUES
1 2 0 0.5055762
TEMPERATURE FUNCTION: EOS UNITS: none
The output includes the name of the BIP set. The Infochem convention is to use
the name of the model followed by BIP, e.g. RKSBIP, PRBIP, PR78BIP,
PR78ABIP, RKSABIP, RKSABIP3 (for RKSA + Infochem mixing rule ),
LKBIP, LKPBIP, WILSONBIP2, NRTLBIP3, UNIQUACBIP2 for VLE
versions of the model, NRTLLLEBIP3, UNIQUACLLEBIP2 for the LLE
implementations. If the BIP name is followed by a digit, this indicates the
number of BIPs for the model or no digit means that there is only one BIP for the
model. For the CPA model the bipset name is ASSOCBIP, while the PC-SAFT
BIPs are designated by SAFTBIP and SAFTBIP-2. Regular Solution and Flory
Huggins BIPs are named REGULARBIP.
The components are referred to by the number they are assigned in Multiflash,
i.e. the sequence in which they appear in the components list.
The ORDER is the degree of the temperature dependence of the BIP. 0 means it
is temperature independent, i.e. constant, 1 that it has linear T-dependence and 2
that it has quadratic T-dependence.
The final line shows you the name of the temperature function. This will be EOS
for equations of state or a dimensionless BIP, such as REGULARBIP for Flory
Huggins or Regular Solution. Activity models are assigned an Activity
temperature function, while the first set of CPA or PC-SAFT BIPs (ASSOCBIP,
SAFTBIP) will be labelled EOS and the second (ASSOCBIP-2, SAFTBIP-2)
will be labelled Association. Multiflash will check that the correct temperature
function is used for the model selected. For equations of state (EOS) the function
is,

52  Models User Guide for Multiflash for Windows


kij  a0  a1T  a2T 2
For the association term, the first BIP adjusts the volume parameter, the second
the energy parameter and the third the heat capacity parameter.
The final element is the Unit for the BIP. See below for more information.
A second example shows output for the methanol plus water binary and the
RKSA (Infochem) model. The use of an NRTL type mixing rule means this
model requires two asymmetric parameters and one symmetric parameter.

In this case the water methanol asymmetric parameters have also been fitted with
a linear temperature dependence.
In a third example we consider a mixture of water, methanol, and methane, and
the RKS-HVP model. The HVP mixing rule can work with two different types
of BIPs, 1) "VDW-like" parameters (i.e., kij), which are symmetrical,
dimensionless, and are equal to those used in the classical mixing rule of the
RKS equation. 2) "HVP-like" parameters, which are composed of symmetrical
(ij) and asymmetrical (gij/R) BIPs, and where the asymmetrical parameters
have units of K.
We show below the output obtained for this mixture and model. In this case the
absence of symmetric BIPs indicates Multiflash that the parameters are "VDW-
like". However, if you introduce any value (including zero) in the symmetric
BIP section, that will indicate Multiflash that this particular interaction pair is
described by HVP-like parameters.

User Guide for Multiflash for Windows Models  53


If the user has access to "HVP-like" parameters, these can be easily introduced
by directly writing them in the output window.
We show this in the example below. Here, we have modified the BIPs for the
pairs water-methanol and methanol-methane with HVP-like values obtained
from the literature, but we have left the pair water-methane with the original
VDW-like BIP.

In the case of the asymmetrical parameters, care must be taken of introducing


them in the correct order. For example, if the BIP found in the literature indicates
that it corresponds to water-methanol it should be entered in the cell
corresponding to the row "water" and column "methanol" (i.e., in the example
above, the upper diagonal value of 254 K).

Units for BIPs


The BIPs for most equation of state methods, Wilson A, Regular Solution and
Flory Huggins are dimensionless. For other activity methods and the two CPA
association parameters the BIPs have associated units. The default units in
Multiflash are J/mole. If BIPs from external sources are used in Multiflash it is
important that either the BIP units are changed to match the input values or the
numeric values of the BIPs are changed to J/mole.

54  Models User Guide for Multiflash for Windows


The choice of units appears once the Units button is selected in the BIP display.

J/mol is the Multiflash standard for the dimensioned activity model BIPs.
cal/mol and K are the values used in the Dechema Data Series for activity model
VLE and LLE BIPs. The “Aspen” format allows you to transfer the BIP values
for the NRTL equation from Aspen Plus without further change.
The actual input functions for the activity BIPs are as follows:
In J/mol K Aij=a + bT + cT2
In cal/mol K Aij/4.184=a + bT + cT2
In K Aij/R=a + bT + cT2
Dimensionless Aij/RT=a + b/T + cT
Aspen format Aij/RT=a + b/T + cT
For the NRTL equation, the  parameter is defined as follows:
All formats except Aspen ij= a + bT + cT2
Aspen format ij= a + b(T-273.15) + c(T-273.15)2

Supplementing or overwriting BIPs


If you have interaction parameters available and wish to supplement or overwrite
those stored in Multiflash you can do this using Tools/BIPs from the menu.
However, you must make sure that the BIPs you supply conform to the model
definition used in Multiflash and, for activity models, that you have specified
and supplied BIPs in the correct units and in the correct order.
Once the BIPset is displayed, as shown above, you can type your own BIP
values into the appropriate cell to overwrite stored values.
To take a simple example, load the C4C5.mfl file used for the simple tutorial
Using Tools/ BIPs you can see that for the Peng-Robinson model the BIP for
butane/pentane is set to zero. Given the nature of the mixture this is the expected
value. However, you can enter a BIP and see the effect on the calculated results.
If you enter a value of 0.1 you can see that the calculated bubble point
temperature at 9 bar has changed from 371K to 359K.

User Guide for Multiflash for Windows Models  55


In the grid of BIPs you will notice that the symmetric BIP is displayed twice.
You need only edit one of the cells; Multiflash will automatically enter this value
in the other cell once you click on OK.
If the model is changed the user-supplied BIPs values will be retained unless a
model is selected that does not use the same BIP dataset. For example, if you
simply want to change the number of phases or use a different transport property
model, you don’t have to enter your user BIPs again.
You can save your new BIPs for the current case permanently by saving the
problem setup file. If, for certain binary pairs, you wish to overwrite the
Infochem supplied BIPs every time you run Multiflash you may wish to store
these in a separate input file. You should define the model and components and
then use the BIPSet window to enter the values and then save the file.
If the units of the BIPs you want to enter are different from the default units in
Multiflash you can change the units as described above before entering the
values. If you change the units after entering the BIP values or for existing BIPs
in Multiflash, the values will automatically be updated.
If you have a file of BIPs that contains values for components that are not in
your current stream you will see a warning message for each missing pair:
*** WARNING -223 ***
One or more components in this BIP set are not
currently defined
If you know the reason for the warning it may be ignored because BIPs for
components that are in the stream will be loaded and included in any subsequent
calculations.
You should note that if you change the model such that a different BIPset is
required then the BIPs read from a file will be discarded and replaced by those
from databanks or correlations included in the new definition.

BIPs for CSMA and GERG mixing rule


For the CSMA with GERG mixing rule or GERG-2008 models, three BIPs are
required for improving the critical temperature and volume of the mixture as
well as the weighting factor for the binary high accuracy departure functions.
The default names for the three BIPs with GERG-2008 model are GERGBIP 1,
GERGBIP-2 and GERGBIP-3. The first value ( 1.049708) in the BIP of the
GERGBIP 1 and GERGBIP-2 can be constant or linear function of temperature
which is symmetric. However the third value, 0.9963365 and 1.003677 as shown
below for methane and ethane is actually a reciprocal of each other. So when
entering this value, you need to be careful about the order of the BIP.

The BIP, GERGBIP-3 is the weighting factor of the binary high accuracy
departure functions. By default, it is set to zero. If the mixing rule has the
departure function equation available for the binary system, a non-zero value
will be displayed otherwise will be zero.

56  Models User Guide for Multiflash for Windows


Troubleshooting - BIPs

Units
Reference: We cannot stress often enough that to obtain correct results the BIPs entered
Dechema Chemistry Data must match the Multiflash definition and be in the correct units. A very good
Series (CDS) source of phase equilibrium data and BIPs is the Dechema Chemistry Data
ISSN 0840-9645 Series which is in several volumes. It is useful to note that their standard
Volume I to XVI convention is to report activity model BIPs for VLE in cal/mol. Either these
Publisher: Dechema need to be converted to J/mol for use in Multiflash or the Units for BIPs must be
changed to cal/mol. Similarly, the LLE BIPs for UNIQUAC and NRTL either
need to be multiplied by the gas constant R (8.314 JK-1mol-1) for use in
Multiflash or the BIP units must be set to K.

BIP databank
The names of the main BIP databanks for equations of state and activity
coefficient models are INFOBIPS and OILANDGAS, which are the names
included automatically in all the relevant model sets. From Multiflash 4.2, the
BIPs for all the relevant model sets are defined from INFOBIPS and BIPs
correlations are obtained from OILANDGAS.

User Guide for Multiflash for Windows Models  57


Components

Introduction
Multiflash recognises two types of component. Normal components are pure
compounds such as hydrocarbons, petrochemicals and chemicals which may
exist as gas, liquid or solid depending on conditions of temperature and pressure.
A petroleum fraction is a pseudo component, usually a complex mixture of
hydrocarbons, whose aggregate properties are characterised by standard tests, the
results of which may be found in PVT laboratory reports.
The physical properties for each type of component are stored or defined
differently.

Normal components
The physical properties of normal components are usually stored in databanks.
Multiflash offers two, INFODATA and DIPPRTM. INFODATA is the Infochem
fluids databank which contains data on several hundred compounds and is
always supplied as part of Multiflash. DIPPR, produced under the auspices of
AIChE, currently has data for around 2000 compounds, and is extended
annually. DIPPR is offered as an optional module for Multiflash. For details of
how to find a list of components or to search for a specific compound see
“Selecting components” on page 62.

Properties of normal components


Both INFODATA and DIPPR store data for each variable property (e.g. vapour
pressure, liquid density) of a component as a function of temperature. Properties
which are not temperature dependent are stored as constant values. A list of the
properties available in DIPPR and INFODATA is shown below. Some properties
may be missing for individual components.
Constant properties
Molecular Weight
Critical Temperature
Critical Pressure
Critical Volume
Critical Compressibility Factor
Melting Point
Triple Point Temperature
Triple Point Pressure
Normal Boiling Point (at 1 atm)
Liquid Molar Volume at 298.15K
Standard Ideal Gas Enthalpy of
Formation at 298.15K

User Guide for Multiflash for Windows Components  59


Standard Ideal Gas Gibbs Energy of
Formation at 298.15K
Standard Ideal Gas Entropy at 298.15K
Enthalpy of Fusion at Melting Point
Entropy of Fusion at Melting Point
Heat capacity change on fusion
Volume change on fusion
Standard Net Enthalpy of Combustion at 298.15K
Acentric Factor
Radius of Gyration
Parachor
Solubility Parameter at 298.15K
Dipole Moment
van der Waals Volume (UNIQUAC r)
van der Waals Area (UNIQUAC q)
Refractive Index
Flash Point
Lower Flammability Limit
Upper Flammability Limit
Autoignition Temperature
plus some model specific parameters.
In addition there is a group of properties that allow unique identification of the
name and type of the component. These are
TYPE
CAS number
FORMULA
FAMILY code
Normal databank components will be TYPE 1, petroleum fractions will usually
be TYPE 12.
Temperature Dependent Properties
Solid Density
Liquid density
Vapour Pressure
Enthalpy change on evaporation (latent heat)
Solid Heat Capacity
Liquid Heat Capacity
Ideal Gas Heat Capacity
Second Virial Coefficient
Liquid Viscosity
Vapour Viscosity
Liquid Thermal Conductivity
Vapour Thermal Conductivity
Surface tension
Both databanks, in addition to the properties above, also contain the UNIFAC or
PSRK group structures, where applicable.
The INFODATA databank also stores some additional properties
Constant properties
Polarizability
Quadrupole moment
PC-SAFT model parameters
Temperature Dependent Properties
Relative permittivity (dielectric constant)
These properties are available for a small proportion of components in the
databank.

60  Components User Guide for Multiflash for Windows


For temperature dependent properties both databanks contain information on the
upper and lower temperature limits for the correlation used for each component.
Extrapolation routines are included in Multiflash so that pure component
properties from either bank behave reasonably beyond the temperature limits of
the stored correlation.
INFODATA contains only a limited range of components mainly suitable for oil
and gas applications. Although every effort has been made to ensure that the data
stored are correct we do not offer INFODATA as a quality assured databank.
DIPPR is developed under the auspices of the American Institute of Chemical
Engineers. The databank contains a broad range of components including
hydrocarbons, petrochemicals, chemicals and some metals. The correlations used
in Multiflash are the recommended set for each property and component.
Questions concerning quality codes and sources of data for the DIPPR databank
should be referred to Infochem.

Petroleum fractions
Petroleum fractions are discussed in detail in the section

Defining a mixture
In this section we describe how to define a mixture containing normal
components. To define a mixture including petroleum fractions or to set up fluid
characterisation based on a PVT laboratory report see “Petroleum fluids” on
page 85.
The maximum number of components in any mixture in the
current version of Multiflash is 200.
From the Select menu choose Components or click on the Select Components
toolbar button
This will display the Select Components dialogue box

Specifying the data source


The Infochem fluids databank is the default data source. To choose any of the
other data sources click on the button to the right of data source and select the
required data source from the list.

User Guide for Multiflash for Windows Components  61


Selecting components
If the specified data source is a databank, e.g. INFODATA or DIPPR, then the
components for any stream can be selected in a variety of ways depending on
your knowledge of the contents of the databank and the name or synonym by
which your chosen component is listed in the bank. If you are uncertain about
any of these then there are various search strategies in place to help you find the
components you need.

Select components by name


This is a simple and rapid method once you know the components available.
Click the Name option button.

You can enter the name of the component you wish to add to the mixture in the
Enter Name box; it may be in upper- or lower-case or any combination. Press
<Enter> or click the Add button..
If you make a spelling error or if the component is not in the selected data bank
you will get an error message

Select components by scrolling through a list


Choose the All Components option button and a list of the standard names
for the compounds stored in the chosen databank will appear. You can then
scroll through the list until you see a component you require. This is quite
convenient for INFODATA but may take a long time for a large databank like
DIPPR. The component names are not sorted; they appear in the order of
components in the databank selected.

62  Components User Guide for Multiflash for Windows


The component may then be selected for use in Multiflash either by double-
clicking on the name or by clicking on the name to highlight the component and
then clicking the Add button. The name of the selected compound will then
appear in the “Components selected in Multiflash” box. Further components may
be selected in the same way.

Synonyms
If you are not certain whether a particular name in the databank list represents
the component of interest to you, or if are not sure that you have the correct
name for a component, you may wish to check the alternative names (synonyms)
stored for that compound.
Click the Synonyms option button and type the name in the Enter name box.
Press <Enter> or click the Search button.

The list of synonyms stored for this component will be displayed. If this proves
to be the component you wanted you can then choose the synonym to be used in
the Multiflash output to identify the component by selecting it in the normal way
(double clicking on the name or highlighting the name with a single click and
using the Add button).

User Guide for Multiflash for Windows Components  63


In the list of synonyms for ‘glycol’ shown above ‘ethylene glycol’ is the main
name for the component in the INFODATA databank but any of the alternatives
may be used. The last synonym in the list is 000107-21-1, which is the Chemical
Abstracts registry number.

Select components by formula


You may only know the formula of the component you wish to select. In this
case select the Formula option button and type the formula in the Enter
formula box. Compounds with matching formulas will be displayed and may be
selected in the usual way.

It is important that the formula is defined in terms of standard chemical symbols,


e.g. C6H10O, not c6h10o.
Neither of the compounds corresponding to the chosen formula are in
INFODATA, if you replace DIPPR with INFODATA as the data source and
repeat the search the you will see the following warning. This also contains a
reminder of the correct nomenclature for the formula in case this was the source
of the problem.

You can also search the databanks using a partial formula. You m ay
replace the number of any of the atoms in a component by a *, but you must
name all the different atoms in the compound you are searching for. For
example, C2Cl*H* will find all ethanes that contain chlorine.

Select components by substring


You may wish to search the bank using only a portion of the name: perhaps you
are interested in seeing which components contain a certain subgroup. Select the
Substring button and type the portion of the name which identifies the group
of interest in the text box. You can specify whether the string is to be at the start
of a name, at the end of a name or anywhere in a name using the * character. For
example methane* finds all names starting with methane; *methane finds all

64  Components User Guide for Multiflash for Windows


names ending in methane and *methane* finds all names containing methane.
Entering methane alone searches for an exact match.

Adding, inserting, replacing and deleting


components
You may add additional components to an existing mixture, replace components
or delete them. You can add a component into an existing mixture at any given
point in the selected list using the insert command.

Adding a component
Components are added to the selected list for a mixture as described earlier, by:
 Double clicking on a component in a list.
 By pressing the <Enter> key after entering a name in the text box
(with Name option button selected).
 By selecting the compound from a list and clicking on the Add
button.
If you try to add the same component twice you will be warned, for example,

and the action will not be allowed.

Inserting a component
If you want to add a component to the selected list, but in a particular position,
perhaps so that the compounds are in order of carbon number in the program
output, then:

User Guide for Multiflash for Windows Components  65


Select the new compound as usual by entering the name or highlighting it in a
list
Highlight (by clicking on it) the compound in the Compounds selected list above
which you wish to insert the new component
Click on the insert button.

Deleting components
If you wish to remove one or more components from the selected list then, in the
Compounds selected text box:
Select the component(s), then
Click on the Delete button
The compound(s) will then be removed from the list.

Replacing a component
If you wish to replace one component with another you can do this without first
deleting it from the selected list.
Select the component to be replaced
Select the new component (either by typing in the name or using one of the other
selection methods)
Click on Replace.
The new component replaces the highlighted component.
Note that when you replace an existing component the amount
of the new component in the mixture remains the same as the
amount of the component it replaced unless you change the
composition in the Composition drop down table.

Viewing and editing pure component data


If you wish to obtain the values of any property for a pure component at specific
conditions then you should consult the case study shown in “Case studies - Pure
component data” on page 193 in the printed User Guide. If, however, you want
to look at the stored data record for any component in the mixture then this can
be done by using the Tools/Pure Component Data menu option. The components
in your stream will be displayed in a subsidiary window together with a list of
stored properties.

66  Components User Guide for Multiflash for Windows


Highlight the component of interest and the property or group of properties
required, click on Edit and the relevant section of the data record will be
displayed.
For constants the individual property values will be shown:

User Guide for Multiflash for Windows Components  67


whilst for temperature dependent properties the coefficients of the correlation
equation will be displayed. For details of the correlations used see the User
Guide for Models and Physical Properties.

Any of these data may be overwritten by typing the new value in the appropriate
cell in the correct units. The units for the constant properties may be changed
using the Units button. Temperature-dependent property correlations always use
Kelvin as the unit of temperature. You can also use this Edit facility to change
the name of the component for the duration of any calculations.
The data record can also be displayed in the main window using the Write to
Output button.

User-defined components
You may add user-defined pure components, for instance when the component
you require is not available in our databanks. However, you should note that for
this option you must supply all the data required for the models you use. This
will include constants such as the critical properties and coefficients for the
temperature dependent correlations such as perfect gas Cp etc. The minimum
data requirements for different models are listed in “Models and input
requirements” on page 70. This option is not recommended for petroleum
fractions; see “Petroleum fluids” on page 85.

Adding a user-defined component


To add a new user-defined component open the Select Components dialog box
and select User-defined component from the Data source list. You should then
enter the component name and press <Enter> or click on Add. This operation
creates a new component with a name but no data.

68  Components User Guide for Multiflash for Windows


Specifying data for a user-defined component
The physical properties for this component will be specified using the
Tools/Pure component Data option in Multiflash main window. Return to the
main window and activate this option and select your user-defined component.

Constants
Click Edit to enter constant values.. The Value column will initially be empty.
Enter the property values for your component, e.g.

You can change the units if necessary. Not all properties must be given a value;
it depends on the models you use.

Temperature-dependent properties
To enter a temperature dependent property, such as the perfect gas heat capacity,
choose the property and click on Edit, or double click on the property
description. A form will be displayed showing the component name and property
but with the remaining text boxes blank.

User Guide for Multiflash for Windows Components  69


As soon as you enter the Equation number the correct number of cells for the
coefficients of this equation will be displayed and you enter the values of the
coefficients. The temperature limits for your correlation should also be entered.

The equation types available for each property are set out in the User Guide for
Models and Physical Properties, together with a description of each equation
and the number and order of the coefficients. All equations are specified as a
function of temperature in kelvin and you should only enter coefficients which
have been fitted in kelvin. Click on OK to define the property.

Models and input requirements


A basic minimum data set for any component should include the following:
molecular weight, critical temperature, critical pressure, acentric factor and
perfect gas heat capacity. The following table lists the data required in
addition to the above for each model.

70  Components User Guide for Multiflash for Windows


Model Additional data required
Thermodynamic
RKS None
RKSAPI None
RKSA vapour pressure and saturated liquid density
RKSAINFO As RKSA
RKS-HVP None
PR, PR78 None
PR-HVP None
PRA, PR78A As RKSA
PSRK As RKSA plus UNIFAC subgroup structures
LK, LKP None
BWRS critical volume (VCRIT)
CSMA critical volume (VCRIT)
CPA As RKSA plus association parameters (ASSBE,
ASSEP, ASSGA)
PC-SAFT PC-SAFT parameters (SAFTEK, SAFTSIGMA,
SAFTM, SAFTKAPPA, SAFTEPSILON,
SAFTFF
Note (1) critical properties and acentric factor are
used to generate starting values for flash
calculations but do not affect the computed
results from PC-SAFT. (2) SAFTKAPPA,
SAFTEPSILON and SAFTFF are only needed
for associating components.

Ideal solution vapour pressure, saturated liquid density,


enthalpy of evaporation
NRTL As Ideal
Wilson E As Ideal
UNIQUAC As Ideal plus UNIQUAC surface and volume
parameters (UNIQQ, UNIQR)
UNIFAC As Ideal plus UNIFAC subgroup structures
(UNIFAC)
Dortmund Modified As Ideal plus UNIFAC subgroup structures
UNIFAC (UNIFAC)
Regular Solution As Ideal plus solubility parameter (SOLUPAR)
and molar volume at 25°C (V25).
Flory-Huggins As Ideal plus solubility parameter (SOLUPAR)
and molar volume at 25°C (V25).
Ideal gas None
RK None
Hayden O’Connell radius of gyration (RADGYR), dipole moment
(DIPOLEMOMENT), Hayden-O’Connell
association parameter (HOCASS)

Pure solid freeze-out melting point (TMELT), enthalpy of fusion


(HMELT), heat capacity change on fusion
(CPMELT), volume of fusion (VMELT)
Hydrate potential parameters (HYD1, HYD2, HYD3),
cavity occupation code (HYDOC)
Wax melting point (TMELT), enthalpy of fusion
(HMELT), heat capacity change on fusion
(CPMELT), volume of fusion (VMELT)
Asphaltene vapour pressure, saturated liquid density

Transport properties

User Guide for Multiflash for Windows Components  71


Pedersen None
Twu boiling point (TBOIL), vapour pressure,
saturated liquid density
LBC critical volume (VCRIT), dipole moment
Lohrenz-Bray-Clarke (DIPOLEMOMENT)
CLS critical volume (VCRIT), dipole moment
Chung-Lee-Starling (DIPOLEMOMENT)
SuperTRAPP model critical volume (VCRIT), dipole moment
(DIPOLEMOMENT)
Macleod-Sugden parachor (PARACHOR)
Costald saturated liquid density
Liquid viscosity mixing liquid viscosity
rule
Vapour viscosity mixing vapour viscosity
rule
Liquid thermal liquid thermal conductivity
conductivity mixing rule
Vapour thermal vapour thermal conductivity
conductivity mixing rule
Surface tension mixing surface tension
rule
Diffusivity – Fuller's chemical formula (FORMULA), UNIFAC
method subgroup structures (UNIFAC).
Diffusivity - Hayduk- critical molar volume (VCRIT), normal boiling
Minhas method point (TBOIL), parachor (PARACHOR) dipole
moment (DIPOLEMOMENT), saturated liquid
density, chemical formula (FORMULA),
UNIFAC subgroup structures (UNIFAC).
Linear Gradient Theory surface tension (STENSION)
To save the pure component data you have entered you must save the data to a
file, using File/Save Problem Setup.

Stream types
It is possible to define a number of stream types in Multiflash. Each stream type
consists of a subset of all the defined components and may be associated with its
own set of models. The stream type concept is not particularly useful in the
Multiflash GUI. It is primarily intended to support process simulation
applications where different sets of components (with different models) may be
present in different unit operations or sections of a flowsheet.
A simple example, shown in the Multiflash Excel manual, is to describe a mainly
hydrocarbon stream containing some water and glycol using a cubic equation of
state for high and low pressure separator flashes but to change to an activity
model to look at glycol regeneration from the recombined water streams.
We will describe how to set up stream types in the Multiflash GUI. However,
using the GUI, the composition of a sub-stream cannot be changed without
altering the composition of the overall stream and it is difficult to show a
realistic practical application in the GUI.
Initially we have defined an input stream containing 4 hydrocarbons, a petroleum
fraction, water and MEG and supplied a composition.

72  Components User Guide for Multiflash for Windows


If you then activate the stream type selection using Select\Stream Types\Define
you will be asked to define a model for your stream, in this case PRA. The
format is exactly the same as the usual Select Model Set with the same options.

Once you have clicked on Define Model, a message box will confirm that the
model has been successfully defined. Click on OK to activate the Define Stream
Type text box.

User Guide for Multiflash for Windows Components  73


We will first define a stream type called ‘Overall’ that contains all the
components. Enter the name, make sure the ‘All components’ option button is
selected and click Define Stream Type.
Click Close to return to the Select Models dialog.
A second stream can be defined the same way. This time we have selected the
NRTL VLE model. Click the ‘Selected components’ option button, select water
and MEG and enter the stream name ‘MEG’.

Click on Define Stream Type, then Close and Close again to return to the
Multiflash main window.
You can use the Tools/Show/Streamtypes menu item to display the list of
defined stream types.
show Sts;
NO. OF STREAM TYPES 2
1 OVERALL
2 MEG
If you wish to assign BIPs for this stream you do this using Tools/BIPs, Click on
the model/BIP name for the stream and enter the values in the BIP grid.
If you try to define a further stream with the same name as a previous stream
type you will be warned that the stream exists and asked if you wish to replace it.

However, you can define a further stream with the same components and model
if you call it by another name.
To Delete a stream type choose the Select/Stream Type/Delete option, highlight
the name of the stream to be deleted and click on Delete Stream Type.

74  Components User Guide for Multiflash for Windows


When you wish to carry out calculations relating to a particular stream, activate
that stream using Select/Stream Types/Select Active, highlight the stream you
wish to work with and Select Stream Type.

You can then carry out any Multiflash calculations using that stream with its
selected components and the composition defined in the drop down Composition
table.

Hydrate inhibitors
Some of the pure components in INFODATA act as hydrate inhibitors, see
“Inhibitor modelling” on page 39. The most common are methanol, ethanol,
MEG, DEG, TEG and salts. Any of these can be included in the component list
and their composition defined as shown in “Specifying compositions” on page
133. Indeed this is the way you should specify isopropanol, propylene glycol and
glycerol. However, for methanol, ethanol, glycols and salt you can also use the
Inhibitor Calculator.

Inhibitor calculator: alcohols/glycols


The Inhibitor Calculator is included to simplify the addition of common
inhibitors. It is designed to calculate the amount of inhibitor or inhibitors to be
added to the amount of water present in the mixture in order to reach a user-
defined inhibitor concentration. This concentration may be specified in mass,
molar or volume units.
The Inhibitor Calculator can also be used to add both water and the inhibitors to
the components list. If they have not already been included they will
automatically be added to the components list along with the calculated amounts.
To calculate the amount of methanol, ethanol or glycols relative to the amount of
pure water present in the mixture:
From the Tools menu select Inhibitor Calculator and click on the
Alcohols/Glycols tab.

User Guide for Multiflash for Windows Components  75


Select a databank for the pure component properties; INFODATA is the default.
If you have already defined the amount of water in the stream it will be shown in
the dialog box. Otherwise, you must first enter the amount of water to which the
inhibitor is to be added. The units for the amount of water are the currently
selected units for component amounts and may be changed by clicking on the
Units button.
You can specify the amount of inhibitors as a mass %, mole % or volume % (at 1
atm and 60ºF). The concentration specified is the concentration of each inhibitor
as a percentage of the total amount of water plus inhibitors. In the example
shown below the amount of methanol added will be 10% by mass of the total
amount of (water + methanol + MEG).

Click the Add button. The components will be added to the component list with
the amounts as specified. The total percentages of all inhibitors must sum to be
less than 100.

Click Close button to return to the main window.

76  Components User Guide for Multiflash for Windows


The inhibitors are added in the selected input units for amounts even if the
concentration is specified in other units.
Note that specifying a given concentration of inhibitor (relative to water plus
inhibitors) does not mean that this will be the concentration in the aqueous phase
when the mixture is flashed. The inhibitor components and water will partition
between all phases present. For example, methanol will typically be present to a
significant extent in the oil and gas phases as well as in the aqueous phase.
If you are carrying out fixed phase fraction flashes with glycol inhibitors at high
concentrations (of the order of 75 wt% plus) you should allow for the possibility
of the glycol forming a solid phase. The melting points of the pure glycols are
relatively high. To do this you should set up a freeze-out model for the glycol
using the Select/Freeze-out Components option, see “The Solid Freeze-out
model”“Pure solid phases” on page 46.

Salt calculator
The salt calculator provides a way of specifying the concentration of various
salts in water using commonly-reported laboratory measurements. You can
include the ions in your component list by selecting them from INFODATA.
However, an easier approach is to use the “Salts / Ions” tab in the Inhibitor
Calculator.

Electrolyte model
The electrolyte model is a detailed model of the ionic species in mixed
electrolyte solutions. It includes the following ions: Na+, K+, Ca++, Cl- and Br- .
The effect of other ions is obtained by determining an equivalent amount of
those listed. Alternatively, the RKSA-Infochem model can deal with ions by
defining an equivalent amount of salt pseudo-component.
The water content of your mixture can be defined from Select Components and
the Composition box, or entered on the Alcohols/Glycols tab as described above.
Click on the “Salt / Ions” tab. You can then define your salt from:

User Guide for Multiflash for Windows Components  77


an Ion Analysis table

a Salt Analysis table

78  Components User Guide for Multiflash for Windows


or the total amount of dissolved solids.

Clicking on the Add button initiates the calculation of the amounts of salt
pseudo-component or Na+, K+, Ca++, Cl- and Br- ions to be added to the
mixture in the input units set for amounts.
In the cases of an ion analysis or a salt analysis you can choose to express the
salt concentration in terms of equivalent amounts of salt pseudo-component,
Na+, K+, Ca++, Cl- and Br- ions, or just in terms of Na+ and Cl- ions by
clicking the corresponding option button.
Clicking on the Add button will display a table of the salts added, e.g.

The corresponding ions or the salt pseudo-component will be added to the list of
components in Multiflash and the amount of salt pseudo-component or of each
ion will be entered in the Composition drop-down table.
If you define only negative or positive ions in an Ion Analysis table an error
message will be displayed.

User Guide for Multiflash for Windows Components  79


If you try to add more salt than is physically realistic the Salt Calculator does not
generate a warning but the amounts of the ions may be not realistic.
If you enter values on more than one analysis option the amount of salt to be
added will be taken from the table for which you activate the Add button.
In the case of adding ions explicitly (i.e., not salt pseudo-component), the
electrolyte model can only be selected as part of the hydrate model, i.e. in
conjunction with the CPA fluid phase model. The model selection is made using
the Hydrates tab in Select Model Set dialog.
If you have added ions to the mixture and then select a model that does not
include the electrolyte model a warning is displayed. For example

If you have selected a fluid phase model that does not include the electrolyte
model and then use the salt calculator to add ions a warning will be displayed.

If you wish to add both inhibitors such as methanol and salts you should enter
the required concentrations in the Alcohols/Glycols tab and then the salts in the
Electrolyte Model tab. Clicking on Add will then add the correct level of chosen
inhibitors and ions.

Troubleshooting - components

Databank not found


All licensed databanks will be placed in the installation directory. However, it is
possible that the files may have been moved or overwritten. If a databank cannot
be found then the following warning message will appear when you use the
Select Component dialogue box.

80  Components User Guide for Multiflash for Windows


If you attempt to load a Multiflash problem file that defines the databank and the
databank cannot be found a message similar to the following will appear.

The message in the results window will be something like::


*** ERROR 12952 ***
Cannot open databank files: check for correct file
name and location.
The path used by Multiflash to find databank files is set in the Preferences
Window under Folders. Initially this will be the installation directory but you can
change the path if you have moved the databank to another location.

Databank not licensed


If you have not licensed DIPPR then warnings will appear.

User Guide for Multiflash for Windows Components  81


If you have an earlier version of DIPPR and try to run Multiflash with the latest
version, then following error message will appear.

The only corrective action is to substitute INFODATA as the data source or


extend your licence.

Component cannot be found


The component you need may not be stored in the selected databank. The
warning message is self-explanatory

Before you accept this, however, it is worth checking


 That you have spelt the name correctly
 That a formula or substring search cannot identify the component
under another name
 That formula searches are specified in standard chemical
nomenclature
If a component is not present in the INFODATA databank you should try the
DIPPR databank if you have a license. If you are planning a study and find that a
component is missing please check with Infochem. We may be able to locate the
required data.

TIP If the component you cannot find in the databank is present only in small or
trace amounts it may be possible to substitute a similar compound without
significant error. However, this will clearly depend on the particular calculation
and application.

82  Components User Guide for Multiflash for Windows


Too many components in the mixture
The maximum number of components in a mixture in the current version of the
software is 200. If you try to select more components you will be warned that the
limit has been reached.

TIP If you have some components of similar type and size in your mixture,
preferably present in small amounts, then it may be worth combining them to
reduce the overall number of components. This is particularly useful when
dealing with natural gases and gas condensates that have been analysed in great
detail.

User Guide for Multiflash for Windows Components  83


Petroleum fluids

Introduction
Petroleum fluids are typically complex mixtures consisting of many thousands of
hydrocarbon components. It is not practical to indentify all these components by
analytical methods. Even if it were possible to carry out an analysis it would not
be feasible to model the physical properties of the fluid by including all the
identified components.
The practical approach adopted in the oil and gas industry is to base the model of
a fluid on limited compositional analysis and other standard tests that are carried
out by commercial PVT laboratories. In this section we describe how to use the
information in a PVT laboratory report to construct a compositional fluid model
in Multiflash; this is what is meant by the term characterisation. Characterising
a petroleum fluid is an essential pre-requisite to studying the phase behaviour
and other properties of the fluid. Many applications are discussed in the Case
Studies that are included in this User Guide.
The objectives of the Multiflash characterisation procedure can be summarised
as:
 To make optimum use of measured data.
 Construct a compositional model that is not restricted to a
particular thermodynamic model.
 Ensure that phase behaviour calculations not sensitive to the
number of pseudocomponents.
 Achieve high fidelity based on compositional information.
 Allow model tuning to reproduce reliable experimental
measurements.

PVT Lab Analysis input


The primary information in a PVT lab report is a compositional analysis of the
fluid. This analysis is normally carried out by gas chromatography. The gas and
liquid from a separator test or bottom-hole sample are analysed separately and
the results are usually recombined to give a reservoir fluid composition. The
lighter hydrocarbons such as methane, ethane, propane etc. are individually
identified along with some inorganic compounds such as nitrogen, CO2 and
H2S. The analysis for hydrocarbons with more than 6 or 7 carbon atoms is
generally reported as single carbon number fractions (SCNs) which are actually
represent compounds in boiling point ranges. For example, a C9 SCN contains
all hydrocarbons that boil between the normal boiling point of n--octane + 0.5ºC

User Guide for Multiflash for Windows Petroleum fluids  85


and the normal boiling point of n-nonane + 0.5ºC. The analysis stops at a certain
C-number which is reported as a plus fraction. The plus fraction amount contains
all the material in the heavy end of the fluid and often represents a substantial
proportion of the fluid.
A typical example of a reservoir fluid analysis is shown below. It extends to
C36+

To enter the compositional data into Multiflash click on the button or the
Select/PVT Lab input menu item.

86  Petroleum fluids User Guide for Multiflash for Windows


The following sections describe how to use this form.

Component list
A list of possible components is provided based on what is typically reported by
a PVT laboratory. The data for real components is taken from the databank
specified at the top of the form. From C9 onwards the list contains SCNs. The
real components in the list may be configured to your requirements.
If there are components included that do not appear in your analysis they may be
ignored or, if you prefer, they may be deleted by selecting them and clicking the
Component Delete button.
If you have additional components that you wish to add put the cursor in the
component cell below which you wish to add a new compound and click on
Component Insert. You will be able to select from a list of valid components:

User Guide for Multiflash for Windows Petroleum fluids  87


By default the “Databank Component” option is selected, but blank lines can be
inserted in order to add more petroleum fractions, for example, C120, if
necessary.
Only hydrocarbons can be added to the component list in the PVT Analysis. If
you try to add a component such as acetone then you will see a warning message
to indicate that the component cannot be added.

If you wish to add this component to carry out phase equilibria calculations then
you should characterise your fluid without the component present, return to the
main window and then add the component using Select Components.
If a proposed new component is already in the list and the amount of the
component is left blank, then the component will be ignored and the PVT
characterisation will proceed as normal. If the component is already in the list
with either a positive or zero amount then an error message will be generated
when you try to do the characterisation.

When adding a blank line, and you mis-spell the component name or the
component you wish to add is not in the data source of your choice another error
message will be generated.

88  Petroleum fluids User Guide for Multiflash for Windows


Only one data source can be active when carrying out PVT characterisation. This
means that if the component you wish to add is only available in DIPPR (if you
have licensed this) changing the data source from Infodata to DIPPR will also
change the source of pure component properties for all the discrete components.
If you wish the component list of your choice to be generated automatically you
can do this by adding the PVT Analysis component list to your MFCONFIG.dat
file. The location of the MFCONFIG.dat file is set under
Tools/Preferences/General, and will be the same path as for the Problem Files
(.mfl).

The mfconfig.dat file is an ASCII text file that needs to contain the following
type of instructions.

The file must start with the keywords “pvtanalysis info components” in that
order separated by blanks. Then the user types in the names of the components to
be displayed. Single carbon number cuts are specified by the letter “C” followed
by the carbon number. The ampersand is shorthand for creating a list of single
carbon number cuts, so in this example “C6 & C100” creates a list of all the cuts
from C6 to C100 inclusive. The ampersand can only be used once before the last

User Guide for Multiflash for Windows Petroleum fluids  89


name in the list of components. The file must be terminated with two
semicolons.

Fluid composition
How you enter the fluid composition will depend on the information supplied by
the PVT Laboratory.
If you have a recombined reservoir fluid analysis (as shown above) you should
use the ‘Single Fluid’ input. If possible, enter the compositional data in mass
units rather than molar units. The reason for this is that the GC analysis measures
compositions by mass rather than by moles and it is best to use values that are as
close as possible to the actual measurements.
If you only have the separator gas and separator liquid analysis you should use
the Gas _ Liquid tab on the form as shown below.

In this case it is necessary to enter the correct value of the recombination gas-oil
ratio (GOR) as reported by the laboratory. Often there are several GORs reported
that refer to different separators and it is essential to make sure that the
appropriate value is used. The gas composition may be entered in either molar or
mass units since all the gas phase components have a well-defined molecular
weight. The liquid phase composition should be entered in mass units if possible.
It is usually best to use the reservoir fluid composition provided by the
laboratory because this avoids the complication of recombining the gas and
liquid.
Compositions can be entered in either mass or mole % by using the drop down
menu at the top of the column and different units can be chosen for gas and
liquid. However, changing from mass % to mole % once amounts have been
entered will not lead to a unit conversion, the same values will be retained but in
different units.

90  Petroleum fluids User Guide for Multiflash for Windows


As amounts are entered the Total % will be updated. If the Total % does not
equal 100% you will be offered the option to normalise the percentages before
the characterisation is carried out. Although the pseudo components will
normally run sequentially in terms of single carbon number it is possible to have
data from a non-laboratory source where the SCNs are not sequential. You can
still enter these, leaving gaps as appropriate; if the PVT analysis is saved or
recalled zero amounts will be allocated for SCNs where no composition was
provided.
You can paste fluid compositions into the PVT Analysis form. For example, if
you receive your report from the PVT laboratory as an Excel spreadsheet, then
provided your PVT Analysis component list matches (or you have altered it to
match) that from the laboratory, you can simply copy the reported composition
from the spreadsheet and paste it into the appropriate column in the PVT
Analysis form.

Molecular weight and specific gravity


It is usually helpful to provide additional information on the molecular weight
(MW) and specific gravity (SG) of the fluid. If you have entered a single fluid
composition the options are:

For the Gas+Liquid input the ‘Single fluid’ field is replaced by a ‘Total liquid’
field.
SG is the specific gravity relative to water at 60ºF and 1 atm. It is also possible
to specify the density in API degrees. You can convert from API gravity to SG
gravity using the following formula:
SG = 141.5/(API + 131.5)
The MW and SG of the Stock Tank Oil (STO) can be measured quite reliably
and are the best values to enter. The properties of the heaviest SCN (plus
fraction) are not normally measured and are obtained by calculation. The values
should not be used unless no other information is available. The ‘Single fluid’
MW value will be obtained by ‘recombining’ a gas MW and separator liquid
MW and is a reasonably reliable value.
If none of these values is supplied Multiflash will estimate the values based on
the fluid distribution you have supplied.
Our general advice is that if you have a lean gas or light condensate, i.e. where
the C6+ fraction is only a minor proportion of the total fluid, you should allow
the program to estimate the MW and SG. For heavier condensates with a detailed
analysis to C20 or above it is also probably better not to specify a MW. For oils
you should, preferably, enter the MW and SG of the STO as these are usually
measured values.
In order to provide some guidance when running Multiflash we have supplied
some warning messages. If the molar fraction of C6+ is <0.5 and you supply a
molecular weight or specific gravity a warning message will be generated to ask
you if this is correct.

User Guide for Multiflash for Windows Petroleum fluids  91


Conversely, if you have an oil where the mole fraction of C6+ is > 0.5 and you
fail to supply either molecular weight or specific gravity a similar warning
message will ask you to check this.

Also, if you supply a molecular weight which does not appear compatible with
the carbon number distribution you have entered you may see either of the
following warning messages:

or

If the molecular weight appears to be too large this may still be correct you
should just check the entry. If the molecular weight appears to be too small, it is
probably because the molecular weight of the heaviest SCN is less than that
allocated to the previous SCN in the distribution. This usually indicates a
mistaken entry, but this is not always the case and the program will continue
with the characterisation should you choose to ignore the warnings.

92  Petroleum fluids User Guide for Multiflash for Windows


Total amount of fluid
If you wish to specify the total amount of fluid that will be generated you can do
this by entering a value in the ‘Total amount of fluid’ box. You can choose the
units from the drop-down list. The value does not affect the composition; it is
simply used to scale the amounts.
If the amount is left blank the amount generated depends on the way the
composition is entered. For example, if the composition is entered in mass units
and the sum is 100 then 100 g of fluid will be generated.
If a water cut is specified (see below) the total fluid amount will include the
water.

Water cut
The Water Cut box allows you to add water to the fluid. The amount can be
specified as a volume percent of the hydrocarbon liquid phase at standard
conditions (60 ºF, 1 atm).
You should note the following points
 The procedure used is approximate but does allow for loss of water
to the vapour phase.
 If you have already defined an aqueous phase by using the inhibitor
calculator (or otherwise), entering a water cut value will alter the
amount of water in the mixture but leave the composition of
inhibitors unchanged, effectively altering the inhibitor
concentration.
 Entering 0% for the Water cut will leave water in the component
list but overwrite any existing water amount by zero concentration.
 Leaving water cut blank will leave any aqueous phase already
defined unaffected.
Adding water will not affect the hydrocarbon fluid characterisation although it
may, of course, affect the subsequent phase equilibria calculations.
As an alternative you can specify the water cut as part of the petroleum fluid
property matching: see “Matching dew and bubble points” on page 113.

Total Wax Content


The Total Wax Content box provides the simplest means to enter information
which can be used to model waxing behaviour. Modelling fluids including wax
is discussed in the section “Case studies – Wax precipitation” on page 252.
The Total Wax Content value is interpreted as the C20+ n-paraffin content (by
mass) in the stabilised oil. It corresponds to the values given by the UOP 46
method. The wax content is used to estimate the n-paraffin distribution in the
fluid which, in turn, is used in the Coutinho wax phase model. It is also possible
to get Multiflash to estimate the wax content by ticking the Estimate Wax
Content box but this should only be used for oils and only if no other
information is available.
If wax is specified the characterisation procedure will generate both n-paraffin
components and non-n-paraffin pseudocomponents. However, to model the solid
phase wax formation the wax model must be selected from the Select Model Set
dialog.
The recommended analytical information for modelling wax is a measured n-
paraffin distribution and this input is described in the section “PVT Lab Analysis
input with n-paraffin analysis” on page 101.

User Guide for Multiflash for Windows Petroleum fluids  93


SARA Analysis
A SARA analysis defines the relative amounts of components that are saturates,
aromatics, resins and asphaltenes. The analysis is expresses as mass % in the
stabilised oil.
This information is not required The amounts of saturates and aromatics are used
in some characterisation schemes. The current characterisation method does not
use this information but future extensions may do so.
The SARA analysis is used to create resin and asphaltene components that are
used by the asphaltene model. The asphaltene modelling procedure is discussed
in the section “Case studies – Asphaltene flocculation” on page 259.
If the amount of asphaltene or the resin/asphaltene ratio is unknown, it can be
estimated by the characterisation procedure by ticking the Estimate RA box.
However, we recommend that you should use the measured values if at all
possible.
The SARA analysis values should only be entered if you intend to use the
Multiflash asphaltene model. Other models may produce results with the
asphaltene and resin components but will not give the correct phase behaviour.

Pseudocomponents
The Pseudocomponents section of the form provides control on how the
petroleum fraction pseudocomponents are generated.

The ‘Start pseudocomponents at’ box sets the lowest SCN at which to generate
lumped pseudocomponents, i.e. pseudocomponents that represent a group of
SCNs. The default setting is C6 but it may be changed using the scroll buttons.
For example, if set to C10 this means that C6, C7, C8 and C9 will be represented
by individual pseudocomponents and lumped pseudocomponents will start at
C10.
The smallest SCN from which you can start the pseudo component split is C6.
The largest number depends on the carbon number distribution and on the SCN
components defined in the component list. If you try to start from a larger SCN
than the heaviest SCN in the component list you will get a warning:

If you wish to start the pseudocomponent split at a larger SCN than the heaviest
SCN you will need to add additional SCN components to the component list.

94  Petroleum fluids User Guide for Multiflash for Windows


The ‘Number of pseudocomponents required’ box sets the number of lumped
pseudocomponents that will be generated. The default value is 15 but in many
cases a smaller number of pseudocomponents will be quite adequate.
The maximum number of components in Multiflash is 200. If you input a larger
number of pseudo components than that Multiflash will change it to 200.
If a wax content has been specified the corresponding boxes for n-paraffin
pseudocomponents will be active.

Characterisation
The characterisation procedure is started by clicking on the ‘Do
Characterisation’ button. You should see a message to indicate that the
characterisation has been successfully completed

The carbon number distribution entered and the function used to extrapolate the
heavy end will be displayed.

The values can be exported to Excel by Clicking the “Write To Excel” button on
the plot form.
If you do not wish to see this plot then it can be disabled by unchecking the
“Display SCN distribution” check box in the bottom left-hand corner of the PVT
Lab Analysis form.
Close the C-number distribution plot and the PVT Lab Analysis form. The
components and amounts generated will be displayed in the main window. For
example

User Guide for Multiflash for Windows Petroleum fluids  95


The numbers in the first column are simply sequence numbers for the
components. Pseudocomponents have a P appended to the number. The second
column contains the component name. Lumped pseudocomponents are allocated
names that correspond to the carbon number range, eg. C6-19. The third column
gives the amount of each component in the selected input units. The final column
shows the lower- boundary for the SCNs included in each lumped
pseudocomponent.

User Defined Cuts


Multiflash will automatically adjust the boundaries between the lumped
pseudocomponents to give the optimal approximation to the full SCN
distribution for the number of pseudocomponents specified. However, you can
also control the boundaries between the pseudocomponents by ticking ‘User
Defined Cuts’ and pressing the ‘Define Cuts’ button. A drop-down box allows
the user to define the required boundaries as carbon numbers. These carbon
numbers represent the point in the distribution where one pseudo component
finishes and the next one starts; they are the lower boundaries of each pseudo
component, not the average carbon number of the pseudo component.
The following example, showing part of the ‘PVT Analysis’ form, illustrates a
case where the user wishes the distribution to split above C10. The boundaries
are set at 10, 15, 20, 30 and 40 allow the user to create the following pseudo
components: C10-15, C15-20, C20-30, C30-40 and C40+. Note that when you
specify the carbon number boundaries, the first boundary determines where the
pseudo components must begin, and it overrides the entry in the box ‘Start
pseudo components at’

96  Petroleum fluids User Guide for Multiflash for Windows


If you leave all the entries blank in the carbon numbers drop-down box,
Multiflash estimates the pseudo component boundaries automatically, just as if
you had not specified user-defined cuts. If you only partially fill the carbon
numbers box, generation of pseudo components stops when a blank entry is
encountered.
Multiflash also expects that the carbon numbers will be entered in a sequence of
increasing values. If this is not done, some entries will be skipped, and a reduced
number of pseudo components will be produced.
The carbon numbers must all be greater than 5.5. If they are too small the
following warning appears.

The facility allows you to define compatible pseudo components for several
fluids with the same carbon number ranges.

Saving a PVT Analysis


Before you can save your PVT fluid composition you must have carried out a
successful characterisation. Once this has been done your input file can be saved
as usual and when reloaded the original fluid composition will be displayed
allowing you try different characterisations.

Black Oil Analysis


In some circumstances a user may have very limited compositional data for a
fluid. A compositional analysis may not have been measured or the data may
have been generated from another application.
The Black Oil analysis provides a way of constructing a compositional fluid
model from limited data.
The Black oil input is the third tab in the PVT Lab Fluid Analysis form.

User Guide for Multiflash for Windows Petroleum fluids  97


Input data
The minimum data required are:
 Gas gravity. This is the MW of the gas divided by the MW of air
(28.964).
 Stock Tank Oil specific. gravity (relative to water at 60ºF).
 Solution GOR: the amount of gas relative to oil at standard
conditions.
Additional data that may be entered if available but is optional:
 Watson K factor for the oil.
Kw = (Tb)1/3 / SG, where Tb is the boiling point in ºR
 Gas Analysis. The gas analysis need not be complete; only the
mole percentages of the components named on the form can to be
entered, and they need not sum to 100%.
Other inputs are as for the compositional PVT Analysis.

Distillation curves
Distillation curves are generated by standard experiments that report the amount
of an oil that is distilled as a function of temperature. They are more common for
refinery applications than in the upstream oil industry. The fourth tab on the
PVTLab Fluid Analysis form may be used to enter either TBP data or D86 data.

98  Petroleum fluids User Guide for Multiflash for Windows


TBP distillation
True boiling point (TBP) distillation is the default distillation type on the
‘Distillation Curves’ tab.

The TBP values are entered against the cumulative amount distilled as a volume
percent. The temperature units can be selected using the drop-down list on the
form. The molecular weights and specific gravities are optional and need only be
entered if they have actually been measured. Note that they describe a TBP cut;
for example the cut from 0% to 10% by volume has a molecular weight of 136
and a specific gravity of 0.782. However, the TBP of 165.6 °C corresponds to
0% distilled off and 176.7 °C corresponds to 10% distilled off, so the first cut is
that which distils between 165.6 and 176.7 °C.
On Pressing the ‘Do Characterisation’ button, the characterisation proceeds in
the same way as for a standard compositional analysis except that the result of
the regression is conventionally expressed in terms of cumulative amounts as
shown below for the same example.

User Guide for Multiflash for Windows Petroleum fluids  99


If the software cannot represent the data then a warning message will be shown
to indicate that the characterisation procedure has failed. It may be that the data
has been entered incorrectly or is inconsistent.

ASTM D86 distillation


D86 is a standard analytical procedure that resembles TBP distillation but is
simpler. The oil sample is placed in a single vessel and progressively heated to
drive off gas. To enter a D86 analysis, the ‘Distillation Curves’ tab is used as
above, but the D86 button is selected. The cumulative volume distilled is entered
in the table together with the temperatures, but unlike TBP curves, there is no
option for entering molecular weights or specific gravities as these cannot be
measured by the D86 procedure. The example below shows a D86 analysis for a
gas oil.

100  Petroleum fluids User Guide for Multiflash for Windows


Multiflash converts D86 curves into an equivalent TBP curve using the method
of Riazi and Daubert which is described in Analytical Correlations Interconvert
Distillation Curve Types from Oil & Gas Journal, 84, 50, 25 August 1986. The
resulting TBP curve is then characterised on pressing the ‘Do Characterisation’
button. The regression for this case is shown in the following plot.

PVT Lab Analysis input with n-paraffin analysis


For modelling phase behaviour including waxes the input information should
ideally include a compositional analysis of the fluid plus an analysis of the n-
paraffin content. There is a separate PVTLab Fluid Analysis input form to
handle this sort of data.

User Guide for Multiflash for Windows Petroleum fluids  101


Click on the toolbar button or use the Select/PVT Input for n-paraffins
menu item. The form has four tabs which allow for different types of fluid
analysis and n-paraffin analysis.

n-Paraffin distribution
In the first tab the total fluid composition is entered as for the standard PVT
analysis in mole or mass percent, which would be expected to add to 100%. If it
does not a warning message provides the opportunity to normalise it. The n-
paraffin distribution is that measured for the STO, again in mass or mole%.
These units can be set independently of those used for the total fluid. The n-
paraffin distribution in the stock tank oil would normally be expected to sum to
substantially less than 100%. We check that the total for the n-paraffins is less
than 100%.

The second tab allows for n-paraffin data which have been measured differently.
In this case the total fluid composition is entered in the normal manner as mole
or mass percent. However, the n-paraffin distribution is described as the fraction
of each individual SCN (single carbon number cut) above C6 which is n-
paraffin. In this case the unit, mass or mole, for the n-paraffin distribution must
match that of the Total fluid composition – and the unit heading will reflect this.

102  Petroleum fluids User Guide for Multiflash for Windows


The remaining two tabs operate the same way but allow for the overall fluid to
be described in terms of gas plus liquid with a recombination GOR. In this case
the fraction of n-paraffin will be that proportion of the liquid phase rather than
the overall fluid.
In any case if you try to enter an n-paraffin fraction or percentage for cuts below
C6 a warning message will be issued.

Characterisation
You can control the starting point for n-paraffin lumped pseudocomponents and
the number of lumped n-paraffin pseudocomponents in a similar way to the
procedure described on page 94.
The default starting point for n-paraffin pseudocomponents is N6 (n-paraffin
with 6 C atoms) and the default number of lumped n-paraffin pseudocomponents
is 15. It may be possible to use fewer pseudocomponents but if the number is too
small the wax phase will not be well-described.
Clicking on the Do Characterisation button will analyse the data and start the
characterisation procedure.. The measured and fitted distributions are displayed
for n-paraffins and non-n-paraffins. An example is shown below.

User Guide for Multiflash for Windows Petroleum fluids  103


After closing this form and the PVTLab Fluid Analysis form the list of n-
paraffin and non-n-paraffin pseudocomponents is displayed in the main window.

The n-paraffin pseudocomponents are denoted by an N prefix, eg. N6-8. The


non-n-paraffin pseudocomponents are denoted by an I prefix, eg. I6-22.

104  Petroleum fluids User Guide for Multiflash for Windows


Estimated n-paraffin distribution
If you do not a have measured n-paraffin distribution Multiflash can estimate the
distribution and generate n-paraffin pseudocomponents. On the standard
PVTLab Fluid Analysis form you can specify the wax content, or get Multiflash
to estimate the wax content; see “Total Wax Content” on page 93.

The starting point and number of n-paraffin pseudocomponents should be


specified as described above.
Clicking on the Do Characterisation button displays a warning that the n-paraffin
distribution will be estimated

Troubleshooting – PVT Analysis


This section describes some common problems that may be encountered.

Sensitivity to characterisation
Not all the PVT analyses we have tested are well reproduced by the PVT
characterisation fitting method. If this happens, it may be due to the
inconsistency between the SCN distribution and the information for the
molecular weight and/or specific gravity for the plus fraction or STO or total
fluid. If you do see a warning related to the inconsistency, use the phase
envelope tracer to see how the phase envelope is affected by characterising the
fluid with and without the information for the molecular weight and/or specific
gravity.

Presence of water
Defining a water cut using the PVT analysis form will alter the amount of water
in the overall stream but without changing the amounts of any components
which are not hydrocarbons and are not in the list of discrete components. It can
therefore affect the composition of an aqueous phase defined elsewhere in the
program.

Defining petroleum fractions


If the petroleum fractions in your mixture have been pre-assigned, their
properties and amounts can be entered directly using the "Add/Remove
Petroleum fractions" input form from the Select Components form. The most
common reason for doing this is to re-use a characterisation from another
application such as a process simulation package.

User Guide for Multiflash for Windows Petroleum fluids  105


Basic characterisation properties
The list of properties that may be used to support characterisation of petroleum
fractions is:
Component name
Carbon number
Molecular weight (g/mol)
Specific gravity at 60ºF relative to water at 60ºF
Normal boiling point
Critical temperature
Critical pressure
Pitzer’s acentric factor
However, not all of these are necessary. The minimum input sets are the
component name together with the carbon number or molecular weight or
specific gravity or boiling point or the information of critical temperature,
critical pressure and acentric factor. Other properties that are not specified will
be calculated by Multiflash.

Other properties
The properties that are estimated, if they have not been provided, are:
Carbon number
Molecular weight
Normal boiling point
Critical temperature
Critical pressure
Critical volume
Acentric factor
Parachor
Dipole moment
Enthalpy of formation
Standard entropy
Melting point
Enthalpy change on melting
Entropy change on melting
Heat capacity change on melting
Perfect gas Cp
Saturated liquid density
Saturated vapour pressure
Enthalpy of evaporation
Liquid Cp
Liquid viscosity
Liquid thermal conductivity
Vapour viscosity
Vapour thermal conductivity
Surface tension

Entering petroleum fractions


Click on the Select Components toolbar button or choose the Select/Components
menu option.
You will probably wish to define a number of real components as already
described in the section “Defining a mixture” on page 61.

106  Petroleum fluids User Guide for Multiflash for Windows


To define a petroleum fraction click the “Add/Remove Petroleum fractions”
button to launch the Petroleum Input form.

If you have a pseudo component reported to be, say, C7 but have no physical
properties for this cut you can simply type in the component name and the
carbon number, e.g. C7, then click on “Calculate” button. The remaining
physical properties required to characterise the fraction will be calculated from
the generalised table of petroleum fraction properties recommended by Riazi and
Al-Sahhaf in Multiflash.

On the form, the user-entered values are displayed in red and the calculated
values by Multiflash are in black. By default the type of petroleum fraction is set
to Normal that is given in the form under the Extended properties Tab. Then
click the OK button to close the form.

User Guide for Multiflash for Windows Petroleum fluids  107


If not all the properties are known, the rest of the physical properties for the
petroleum fractions will be allocated by Multiflash and will be displayed in black
as shown below.

The default display for the number of petroleum fractions on the form is set to 25
but the maximum number of petroleum fractions can be entered in this form is
100. After defining the petroleum fractions, click OK button or click the
Calculate button to define the fractions in Multiflash before closing the form.
If a set of characterised petroleum fractions are needed to be defined, this new
Petroleum Input form allows you to import the physical properties by copy and
paste from Excel spreadsheets. To do this, right-click the mouse to select the
options to do the Copy and Paste on the form.
Note that there is a Units button available in the Petroleum Input form. Check
the units before entering data to define the fractions.
The reference for the physical property correlations: Riazi, M.R. and Al-Sahhaf,
T.A., Fluid Phase Equilibria 117 217 1996.

Editing petroleum fraction data


Having defined your petroleum fractions and carried out some calculations it is
possible you may wish to change the definition slightly. For instance you may
wish see how a different data input set alters a phase envelope. This should be
done by going to the petroleum Input form.
To edit and replace the petroleum fraction definition:
Return to the Select Components Window by clicking on the Select Components
button or using the menu option
On the Select Components form, click the “Add/Remove Petroleum fractions”
button to open the Petroleum Input form. On the form all the necessary physical
properties of the defined petroleum fraction will be displayed. Delete the values
for any data you wish to recalculate, e.g. any of the critical properties, then
change or add values for the remaining input definition.
Click on Calculate button or OK button to update the physical properties of the
fractions in Multiflash so that the new or modified fraction definition will be
loaded.

108  Petroleum fluids User Guide for Multiflash for Windows


Alternatively, you may wish only to change a single property of a petroleum
fraction without recalculating any other properties which depend on it, perhaps
to determine the sensitivity of a calculation to that property alone. This should be
done using the Tools/Pure Component option and changing the stored property
value. If you change the molecular weight of a petroleum fraction this way then
the critical properties of the fraction will not be re-calculated.

Deleting petroleum fractions


Deleting one or group of petroleum fractions on the Petroleum Input form,
highlight the row or rows and then right-click the mouse to select the Delete
Selected Rows option to delete the fractions.

To confirm the deleting by click the Yes button on the following message dialog.

Then click the calculate or OK button to close the form. Please note that click
Cancel button to close the form will not load the change onto Multiflash and the
petroleum fractions will be not fully updated.

Problems defining a petroleum fraction


The properties you enter to characterise a petroleum fraction on the Petroleum
Input form will be checked when you click on the Calculate/OK button on the
form. If they are physically unrealistic or cannot be processed by the petroleum
fraction suite of correlations you will be warned and the warning or error
message may be given in a message dialog box or displayed on the main window
of Multiflash, and the fraction will not be accepted by Multiflash.
The obvious problems will be entering a negative number for a quantity which
must be positive, e.g. molecular weight, specific gravity, critical temperature and
pressure or acentric factor. The warning message will be pop-up after the
Calculate or OK button is clicked.

User Guide for Multiflash for Windows Petroleum fluids  109


The detailed message will be displayed on the main window.

It is possible for a temperature to be negative in the chosen units, but if it is also


negative in absolute units a slightly different message will appear. The best
advice we can offer is to make sure that you check that the units (displayed next
to each of the input text boxes) match the numerical values you are putting in. A
different section will discuss how to change units, see “Changing units” on page
166.

Delumping tool
The PVT Analysis tool in Multiflash is used to characterise a fluid based on an
existing analysis carried out in the PVT lab. As mentioned in the previous
chapter, the objective of the characterization procedure is to produce a mixture
of components that more closely describes the analysed fluid.
The produced components can be lumped into pseudocomponents in order to get
a simpler mixture while preserving the main characteristics of the fluid such as
bubble points.
If the fluid is characterized in Multiflash all the PVT analysis inputs are stored so
it is easy to re-characterized the fluid with different setting as necessary. For
example it may be needed to reduce or increase the number of pseudo
components or add other inputs such as the molecular weight of the fluid.
If the fluid was characterized in a different software package it is now possible to
re-characterize the fluid using the delump tool.

How to use the delumping utility


The delumping tool can be used with any previously characterized fluid. It can
also handle fluids where asphaltenes and waxes are present. In the case with
waxes the n-paraffin components will also be delumped.

To launch the Delump tool click the Delump button: . The following
window will appear if there is a current defined fluid.

110  Petroleum fluids User Guide for Multiflash for Windows


The Current Fluid table (1) displays the components and amounts of the current
fluid. After delumping it will display the components and amounts of the
delumped fluid.
The Delumping status (2) shows the current status of the delumping tool. In this
case it shows that the current fluid is not delumped.
The Fluid summary (3) lists the number of components of each type:
 Real components: methane, ethane, etc
 Petroleum fractions: standard petroleum fractions, C6, C7, C7+, etc
 Normal paraffin fractions: fractions n-paraffin components, N6, N7,
N7+, etc
 Iso-paraffin: petroleum fractions that are not part of the n-paraffin
distribution, example I6, I7, etc
 Resin fractions: petroleum fractions constituted by resins, example R6,
R7, etc
 Asphaltene: the amount of the asphaltene component in the current
units.
The fluid is ready to be delumped. Click the “Delump” button. The resulting
fluid is displayed in the described fields.
NOTE: Any Matched information such as bubble points, dew points, density
will be discarded when the fluid is delumped.

User Guide for Multiflash for Windows Petroleum fluids  111


The number of components of each type has increased and new options are now
available for the delumped fluid.
Clicking the “Revert” button puts the fluid in its original lumped state.
It is now possible to export the delumped fluid to the PVT Lab Fluid Analysis
tool by clicking the “Open PVT tool” button. It will open the standard PVT lab
Fluid analysis tool if no n-paraffins are present and the PVT lab Fluid analysis
with n-paraffin distribution tool otherwise.
If the fluid has no n-paraffin analysis, one can be added by ticking the “Add
n-Paraffin analysis” on the Delump Fluid form.

By ticking this option the “PVT lab Fluid analysis with n-paraffin distribution”
tool will open instead of the standard one.
After the PVT tool is opened the user has the option to change the number of
pseudo-components, add molecular weight, specific gravity, SARA analysis and
water cut if necessary and the re-characterise the fluid.

Matching using petroleum fraction properties


Sometimes the properties calculated for your fluid will not correspond to known
or measured values for that property. Where the mixture includes petroleum
fractions it is possible to adjust properties of the petroleum fractions to modify a
property of the overall mixture. Typical mixture properties that can be adjusted
by altering fraction properties are the dew and bubble points, the viscosity, the
volume/density and, when the model is available, the wax appearance
temperature. The asphaltene precipitation point is matched by adjusting the
model parameters rather than the properties of any fractions and will be
discussed in the relevant section.

112  Petroleum fluids User Guide for Multiflash for Windows


Matching of dew and bubble points, bubble point/GOR/Water cut or
density/volume is only available with variants of RKS, PR or CPA model
options, although the flexibility and method of fitting will vary.

Matching dew and bubble points


Your petroleum fraction can be re-defined by adjusting the properties of the
petroleum fractions to reproduce known experimental data, e.g. the dew point or
bubble point of a mixture.
The reflected changes of the properties of a petroleum fraction to re-produce the
dew point or bubble point experimental data depend on the equation of state
models used when matching. If the RKSA, PRA, PR78A, or CPA models are
used, the vapour pressures of each of the pseudo components are modified. The
modifications are defined by two Mathias Copeman parameters. The keywords
saved to the .mfl file are model-dependent. For example the keywords
MCRKSA1 and MCRKS2 are for RKSA model, MCPRA1 and MCPRA2 for
PRA model. If other equation of state models are used (such a standard RKS) the
acentric factor of the pseudo components are adjusted to match the dew point or
bubble point experimental data.
Matching is carried out using the Tools/Matching menu option. The matching
function works with any number of fractions.
Typically you may know an experimental upper retrograde dew point. You
define your stream including one or more petroleum fractions and, if you wish,
check the calculated dew point pressure or temperature using a fixed phase
fraction flash, see “Fixed phase fraction flashes” on page 140.
Our example has 9 petroleum fractions, the properties of the heaviest, C20+, are
shown below.

If the calculated dew point does not match the experimental values, activate the
matching facility using Tools/Matching/Dew point menu option.

User Guide for Multiflash for Windows Petroleum fluids  113


and enter the values for one or more experimental dew points and the type of
dew point you are calculating (the Upper retrograde solution is the default setting
for dew point). Click on the Match button and the vapour pressure of the
fractions will be adjusted until the calculated and experimental values match.
A plot will show a comparison of the matched data to the experimental data -
and the unmatched calculations.

The two adjusted Mathias Copeman parameters will be reported in the main
window together with the critical temperature and pressure.
match table dewpoint upper retrograde temperatures 305.35 340.95
398.55 442.55;pressures 462.8 401.6 303.5 229.6;;;
PETROLEUM FRACTIONS PHYSICAL PROPERTIES:
TC/K PC/bar MC1 MC2
11P 515.614 31.2927 1.0045936 -0.12532595
12P 545.103 31.0298 1.0698024 -0.18301678
13P 570.756 29.346 1.142895 -0.23326444

114  Petroleum fluids User Guide for Multiflash for Windows


14P 597.629 27.167 1.2325474 -0.28864297
15P 666.44 21.7559 1.5491369 -0.46237886
16P 734.346 17.2713 1.8226226 -0.62069818
17P 734.346 17.2713 1.8226226 -0.62069818
18P 734.346 17.2713 1.8226226 -0.62069818
19P 749.95 16.2654 1.9057277 -0.66510979
EXPERIMENTAL AND CALCULATED VALUES: DEWPOINT
T(exp)/K P(exp)/bar P(calc)/bar
305.35 462.8 450.52454
340.95 401.6 413.32432
398.55 303.5 319.64004
442.55 229.6 207.69892

where C17+ is the 19th component. The adjusted Mathias Copeman parameters
MCRKS1 and MCRKS2 for the RKSA model will be reflected in the pure
component record.

The new fraction properties can be saved using File/Save Problem Setup. The
second Mathias Copeman Parameter MCRKS2 values may not be displayed if
they do not result in a better fit to the dew point line or there is only one
dewpoint specified in the matching form.
Since Multiflash version 3.9 the matching facility for bubble points has been
expanded to include GOR, liquid density and optionally the water phase fraction
(Water cut). This is accessed through the Tools/Matching/Bubble point/GOR
option.

User Guide for Multiflash for Windows Petroleum fluids  115


If only bubble point data are available then these are entered using the bubble
point data table. If no bubble point data is available at all, it is still possible to
match GOR. To fit the GOR then you must enter the conditions at which the
supplied GOR were measured and the GOR itself. The units may either be
standard cubic feet per barrel of liquid at the T,P specified or the equivalent in
standard m3/m3. The liquid density is optional but, if provided, must be at the
same T,P conditions as the GOR. The experimental value for water phase
fraction has to be expressed as volume percentage of the total liquid phase
obtained at the separator condition: hydrocarbon and water. A choice of units is
provided for liquid density including specific gravity in relation to water. The
GOR and liquid density units in the bubble point matching form are not affected
if the Units option is changed. The T,P units may be changed but in GOR
conditions and bubble point units must be the same. The plot will show the phase
envelope before and after matching with the information specified in the Match
bubblepoint / GOR data form.
For the case with watercut specified in the matching, the phase envelopes for
both the unmatched and matched case are the fluid without presence of water.

116  Petroleum fluids User Guide for Multiflash for Windows


The output in the results window will show the adjusted property values for each
of the properties matched, and the comparative values to experimental data. For
the bubble point matching the Mathias Copeman parameters are changed as
described for the dew point matching. For fitting to liquid density the Peneloux
shift parameters are altered as described below for density/volume matching.

The GOR and the water phase fraction are matched by changing the fluid
composition: change non-aqueous components to match GOR and change water
amount to match water cut. The output shows the original and adjusted
composition for each fluid component and the ratio of the two. The initial
amount of water will always be set to zero, even if it is not zero before using the
matching facility.

Although some warning messages are triggered, e.g. entering a GOR but without
T,P conditions, it is not possible to trap inconsistencies in the entered data. The
best way of spotting major inconsistencies is the comparison of the matched and
unmatched phase envelopes. If, for instance, the GOR is entered in the wrong
units then there may be a good match for bubble point, density and GOR but the
phase envelope change is significantly different and merits closer inspection of
the experimental data.

User Guide for Multiflash for Windows Petroleum fluids  117


The ratio of adjusted composition to original data may also indicate possible
inconsistencies.
Similarly any GOR entered as part of the PVT Analysis and used to calculate the
recombined fluid composition is ignored for the purposes of Bubble point/GOR
matching and is not checked for consistency. Any amount of water added during
PVT characterization, where a water cut was asked, will also be discarded.
Major differences in the phase envelopes may indicate that it is worth checking
and eliminating inconsistencies.

Matching Density/Volume
The procedure for matching density/volume is similar to matching dew and
bubble points. The matching is flexible and, as with the viscosity, the phase to be
matched can be specified.

118  Petroleum fluids User Guide for Multiflash for Windows


In this case the amended property values are the coefficients for the Peneloux
volume shift parameter.

PETROLEUM FRACTIONS PHYSICAL PROPERTIES: PENELOUX VOLUME


SHIFTS/(m3/mol)
CONST. TERM TEMP. DEP. TERM
10P 0.00171839 -4.31382E-6
11P 0.00198798 -5.00294E-6
12P 0.00222093 -5.58758E-6
13P 0.00241593 -6.07539E-6
14P 0.00261675 -6.57719E-6
15P 0.00283127 -7.11674E-6
16P 0.00309332 -7.77269E-6
17P 0.00328365 -8.24893E-6
18P 0.00353665 -8.88117E-6
19P 0.00387479 -9.72486E-6
20P 0.0042509 -1.06627E-5
21P 0.0047303 -1.18573E-5
22P 0.00514017 -1.28798E-5
23P 0.00526666 -1.31955E-5
24P 0.00557851 -1.39722E-5

EXPERIMENTAL AND CALCULATED VALUES: VOLUME


T(exp)/K P(exp)/bar Vol(exp)/kg/m3 Vol(cal)/kg/m3
381.15 360. 262.375 263.20947
381.15 350. 258.229 258.47254
381.15 340. 253.93 253.59631
381.15 330. 249.228 248.57439
350. 100. 93. 94.583391
350. 80. 73. 73.892152
350. 60. 55. 53.908961
350. 40. 35. 34.831117

Matching wax data/WAT


The method used for matching the wax precipitation curve or wax appearance
temperature (WAT) to experimental data is to adjust the melting temperature of
the petroleum fractions in the mixture. From Tools/Matching menu, Select Wax
Phase to activate the Wax data dialog box.

User Guide for Multiflash for Windows Petroleum fluids  119


The table can be used to match WAT or the amount of wax precipitated for a
given pressure as the temperature falls. In the case of WAT you may wish to
give the amount of wax as zero mass(or mole)%, in which case it does not matter
of you specify the wax as a function of the oil plus wax phase or total fluid.
However, it may be more realistic to give a positive amount of wax that reflects
the nature of the measurement technique used. We recommend 0.045mass% for
CPM or 0.3mass% for DSC.
Once you have entered the data , click on the Match button and the melting
temperature and the enthalpy of melting of petroleum fractions will be adjusted
to match the information provided. The adjusted melting temperature or
enthalpies will be displayed in the main window.

120  Petroleum fluids User Guide for Multiflash for Windows


After matching a plot will be generated but the type of plot depends on the data
entered on the form. If it is a set of wax precipitation data at a given pressure or
temperature, wax precipitation curves as a function of temperature/pressure are
plotted.

If the data are for a fixed wax phase fraction, the wax phase boundary line at the
fixed phase fraction is plotted.

User Guide for Multiflash for Windows Petroleum fluids  121


The new fraction properties can be saved using File/Save Problem Setup for
future use. With the Coutinho wax model the adjustment is made only to the n-
paraffin pseudo-components as it is these which form the wax phase.

Matching liquid viscosity


This facility allows you to match a known total hydrocarbon liquid viscosity to
the stock tank oil viscosity. It cannot be used to match the viscosities of gas,
water or solids.
From the Tools/Matching menu Select Viscosity

Choose the correct phase from the list of possible phases and enter the
temperature and pressure conditions and the liquid viscosity or viscosities to be
matched. The matching procedure works by altering the reference viscosity of
the fractions and these will be reported in the main window, together with a
comparison of the experimental and fitted values of viscosity. For example

122  Petroleum fluids User Guide for Multiflash for Windows


Prior to this a comparison plot will be generated for any isotherm or isobar for
which experimental data was supplied. If only a single viscosity point is matched
the plot will be supplied for the isotherm.

The reference viscosities will also be reflected in the pure component data record
for the petroleum fractions.
The matching facility will attempt to match the data supplied whether or not it is
appears physically realistic. No warning will be issued if liquid viscosities
increase with increasing temperature.

Problems when matching


It is possible that matching to a particular property, such as the bubble point,
may require a significant change to the properties of the petroleum fractions. If
the petroleum fraction property that is adjusted is altered by more than 10% then
you will see a warning message. For example:
match bubblepoint;
*** WARNING -13581 ***

User Guide for Multiflash for Windows Petroleum fluids  123


Adjustment to petroleum fraction properties is probably
physically unrealistic
However, the adjusted property, e.g. acentric factor, may still be reasonable, in
which case you should continue with your calculation. If you consider the
adjusted properties to be physically unrealistic you need to check the
compatibility of the characterisation and bubble point data you have entered.
If Multiflash is unable to reconcile the petroleum fraction characterisation with
the value to match the error message will be
match bubblepoint;
*** ERROR 20565 ***
Quadratic extrapolation failed to improve solution
*** ERROR 20404 ***
The Matching procedure has failed
*** ERROR 448 ***
The matching calculation has not converged.
Significant differences in the matched and unmatched phase envelopes when
matching multiple properties, such as bubble point, GOR and density, may
indicate inconsistent experimental data but this may not generate a warning
message.

Petroleum Fluid Blending


The blending option allows mixing, or blending, of already characterised
petroleum fluids to provide a new fluid characterisation, for example when two
pipes intersect.
The blending facility allows up to four separate fluids, each of which must be
defined in a problem file (.mfl) or be the current fluid in use in Multiflash , to be
blended together in relative amounts specified by the user to produce a new fluid
described by its own set of pseudo-components. The properties and relative
amounts of the blend’s pseudo-components are automatically calculated by the
Multiflash blending procedure.

To display the blending form, click on the button or the Tools/Blend Fluids
input menu item.

Blending method
The blending method first picks out the discrete components such as methane,
ethane, carbon dioxide, etc. from each fluid and adds them together in the correct

124  Petroleum fluids User Guide for Multiflash for Windows


proportions. The method then picks out the dominant pseudo-components from
the mixture. It adds all the non-dominant pseudo-components to the most
physically similar dominant pseudo-components and averages the physical
properties of the resulting blended pseudo-components. The dominant pseudo-
components are those with the highest concentrations in the mixture for each
range of molecular weight and also those that occupy the extreme positions of
the molecular weight distribution. The method has the following advantages:
It is automatic and requires no user intervention.
It works for any type of fluid that can be represented in Multiflash and saved in
problem files, although it does work best if the fluids and the pseudo-component
distributions are similar.
The properties of the blend change smoothly with changing blend ratios. The
properties of the unblended fluids also change smoothly as small amounts of
other fluids are added, i.e. the method shows correct limiting behaviour.
The method of averaging the properties of the blended pseudo-components is
exactly the same as that used in the PVT analysis procedure to create the pseudo-
components used to represent the properties of the original petroleum fluids.
The method also handles waxy and asphaltenic crudes thereby predicting the
likely wax or asphaltene formation from the fluid blend.
For any volume blending, it is recommended that the fluid model is defined in
the original MFL files so that the density can be calculated at the standard or the
given condition if the density is not specified. Without knowing the density, the
volume blending will fail.

Fluid file name


The user can specify up to three different problem files describing different
fluids that are to be blended. In addition, the fluid that is currently loaded in
Multiflash can also be one of the fluids to be blended. The file names can be
directly entered in the text boxes, or alternatively the user can click on Browse to
search for each file in turn.

Fluid amounts
The relative amounts can be entered for each fluid in a variety of volume, mass
and molar units which can be selected from the drop-down list. If an amount is
left blank or set to zero, none of that fluid is added to the blend. So, if the fluid
currently loaded in Multiflash is not required in the blend, its amount is omitted
or set to zero.
If a volume unit is selected, the program needs to calculate the density of the
fluid as part of the blending procedure. The program uses the information
provided in the window ‘User Specified Conditions for volume blending’ to find
the fluid density. By default the ‘standard condition’ is ticked, in which case the
program uses the model defined for that fluid to calculate its density at standard
conditions (1 atm and 60degF). If no model is defined for that fluid, Wilson
correlation is used to estimate the K values and then the fluid is flashed at the
standard condition to find the fluid density.
If ‘standard condition’ is not ticked, the user has two other options. If the density
is entered, its value is used directly to calculate the blend ratio. Alternatively, if
the density is not specified but the temperature and pressure are, the program
uses the model for that fluid to calculate its density at the specified temperature
and pressure.
Note that the table for ‘User Specified Conditions for volume blending’ can only
filled in if volume units are selected for the fluids.

User Guide for Multiflash for Windows Petroleum fluids  125


Model definition
One of the fluids can be selected as providing the model definition for the fluid
blend. The models and phases defined for the blended fluid are then the same as
for the selected fluid. Likewise the information stored for all the associated
utilities such as matching, PVT analysis, the inhibitor and salinity calculator, etc.
will be taken from the same selected fluid. Alternatively, no fluid need be
selected in which case the definition of blended fluid will include only the
components and their properties with no associated model definitions or utility
information.
If the blended fluids are asphaltenic, the parameters of the asphaltene models for
each of the constituent fluids will be averaged to give a prediction of possible
asphaltene precipitation in the blend. However, to obtain this prediction the user
must select a model definition for one fluid as, if no models are selected, the
asphaltene model parameters will be lost.

Blending procedure
The blending procedure is initiated by clicking OK. If there is a fluid currently
defined in Multiflash, a warning will appear as follows:

On clicking Yes, the previous fluid definition is lost, and the blend becomes the
currently defined fluid. If No is clicked, nothing happens giving the user the
option to save the current fluid description, for example, before proceeding.
In the example below, 5 kg of fluid described in file oil1.mfl is blended with 1
kg of fluid described in file oil2.mfl. The models and associated information for
the blend are set the same as those in file oil2.mfl.

Once the blend is defined as the current fluid, the properties of the blend can be
modified just like any other Multiflash fluid, and the fluid definition can be
saved at any time. If suitable information is available about the properties of the
blend, the model can be modified by fitting to this information using the
Multiflash match utilities.

126  Petroleum fluids User Guide for Multiflash for Windows


Example for blending
The case below uses two standard Multiflash examples of petroleum fluid
models defined in petfluid.mfl and blackoil.mfl. The first is an oil for which a
PVT analysis is provided and which is characterised by 5 pseudocomponents.
The second is an oil for which no analysis exists, the properties of which have
been estimated by the Multiflash black-oil input option. The second case is
characterised by 15 pseudocomponents, so the two cases are sufficiently
different to present a demanding test of the blending procedure.
Start by loading file petfluid.mfl using the menu option File/Load Problem Setup
option. Click the phase envelope button and press VLE Autoplot. The phase
envelope appears (after you select continue twice). Without clearing anything, go
back to menu option File/Load Problem Setup to load file blackoil.mfl. Repeat
the VLE Autoplot again using Continue. Both phase envelopes are now visible
on the same plot as shown:

Now a number of blended fluids can be set up using the blend facility. Without
deleting the phase envelopes, press the blend button in the main Multiflash
window and select both fluids using the browse buttons if desired. Start by
mixing 0.25 moles of petfluid.mfl into 0.75 moles of blackoil.mfl as illustrated:

User Guide for Multiflash for Windows Petroleum fluids  127


The model definitions used in blackoil.mfl are selected as the ones to be used for
the blended fluid. On pressing OK, the blending procedure creates a model for
the fluid blend in Multiflash. The phase envelope for the blend can then be added
to the existing plots using VLE Autoplot. The procedure can then be repeated by
going back to the Blend Fluids window and specifying ).5 moles of both oils,
pressing OK and calculating the phase envelope. Finally the process can be
repeated with 0.75 moles of petfluid.mfl and 0.25 moles of blackoil.mfl. The
resulting diagram will appear as shown:

As expected, the phase envelopes of the blends move between the two outlying
envelopes of the original fluids depending on the blending proportions.

Example with waxy crudes


The next case involves two standard examples of waxy crudes defined in
waxycondensate.mfl and waxycrude.mfl. The first is a condensate crude with an
n-paraffin distribution estimated from the total wax content; the second has a
measured n-paraffin distribution. The second is much heavier and more waxy as
its n-paraffin number goes to much higher molecular weights termination at
nC80+ as opposed to nC62+.
First load waxycondensate.mfl and use the VLE Autoplot button on the phase
envelope window to plot the fluid phase envelope. On the phase tab select the
wax phase and press the Plot button to obtain the wax line. The result is as
shown below. (The pressure axis is limited to 450 atm. This is done by selecting
the Frame tab in the phase envelope window and entering 450 in the maximum
pressure box for plotting.). Note that the phase envelope calculations are time
consuming because these examples have a very large number of components.

128  Petroleum fluids User Guide for Multiflash for Windows


Next the same calculations are repeated for waxycrude.mfl and the results to
give the following phase diagram. The wax line occurs at a higher temperature
for waxycrude.mfl because the fluid contains heavier n-paraffin components.

Now the two crudes can be blended together using the blending procedure. To
illustrate, the following plot shows a mixture of 0.25 mole for the
waxycondensate.mfl and 0.75 mole for waxycrude.mfl with the final model set
to that of waxycrude.mfl, although it does not matter which fluid definition is
used as the models for both are the same.

User Guide for Multiflash for Windows Petroleum fluids  129


As expected, the vapour-liquid phase envelope for the blended crude has mixed
effects from both crudes. The waxy oil is much heavier and has much stronger
effect on the phase envelope of the blended crude at the higher temperature end,
whereas the waxy condensate has more contribution to lower temperature end.
However, the blended wax line is very similar to that of waxycrude.mfl because
the heavier n-paraffins in waxycrude.mfl continue to dominate the point of wax
precipitation in the blended mixture.

Example with asphaltenic crudes


In this example two asphaltenic crudes asphex2.mfl and asphex3.mfl are used.
First, asphex2.mfl is loaded and the bubble point line is plotted by clicking the
VLE Autoplot button in the phase envelope window. The asphaltene envelope is
added by selecting the asphaltene phase and plotting from 8500 psia downwards.
The result is characteristic of an asphaltenic oil where asphaltene precipitation
occurs when the temperature falls below the plotted asphaltene boundary.

Next the asphaltenic crude asphex3.mfl is loaded and the bubble point line is
plotted. The asphaltene line is then selected and plotted from 150 bar upwards.

130  Petroleum fluids User Guide for Multiflash for Windows


Finally 0.5 moles of both oils are blended together and the bubble point and
asphaltene lines of the mixture plotted. The result is shown below. The bubble
point line is intermediate between those of the two original oils. The properties
of the resins and asphaltenes in the blend is calculated from those of the original
oils using simple averaging rules; in this case the predicted asphaltene line of the
blend is closer to that of asphex2.mfl. The predicted behaviour is highly
speculative as there are no data in the public domain which can be used to
support any model for the blending of asphaltenic crudes. So for engineering
calculations the predictions must be treated with great caution.

User Guide for Multiflash for Windows Petroleum fluids  131


Input conditions

Introduction
Once you have chosen the model for your mixture and selected the components,
the next step is to specify the input conditions for the problem. In Multiflash
these may be:
 Component compositions
 Temperature
 Pressure
 Volume
 Enthalpy
 Entropy
 Internal energy
The component compositions must be specified but only a subset of the other
conditions are needed depending on the calculation to be carried out. Input
conditions may be specified in a wide range of units; for information on how to
change the units see “Changing units” on page 166. The units currently selected
are displayed next to each input field.
As you may wish to change the input conditions frequently, the majority are
grouped together in the Conditions section of the main window.

If input conditions are defined in a problem setup file they will be displayed
when the file is loaded.

Specifying compositions
Component compositions can be specified or modified in three places. Normally,
they will be defined in the drop down table under Compositions. However, it is
possible to enter them under the PVT Lab. Fluid Analysis Form (see ”PVT Lab
Analysis” on page 85) or to enter the composition of an inhibitor through the
Inhibitor Calculator (see “Inhibitor calculator” on page 75).
To specify the amount of any component in a mixture using the drop down table
under Compositions activate the table by clicking on the Compositions button.

User Guide for Multiflash for Windows Input conditions  133


The table lists the selected components and the compositions should be entered
in the right-hand column, in the units shown. If the composition has been defined
in a problem setup file it will appear in the table.
The compositions can be changed by overwriting any of the set values.
In the drop down table all input units for compositions (amounts) are total
amounts in either molar or mass units. There is no requirement that they sum to
one or any other value. If you wish to enter mole fractions then the units should
be set to mole, and you must ensure that the values sum to one. Otherwise they
will be totalled in moles and the fractions scaled accordingly. To enter mass
fractions select a mass unit for amounts, eg. g, and enter values that sum to one.
When using the stream type option to allocate a selection of the components in
the overall stream to a sub-stream the amounts of the components in that sub-
stream remain those designated in the Composition drop down table. If they are
altered there this will be also be reflected in the overall composition of the
stream.
N.B. In the Inhibitor Calculator and the PVT Analysis Forms the compositions
are specified as mole, mass and occasionally volume%. When specifying
composition using the PVT Analysis Form you have the opportunity to
normalise the compositions if they do not add up to 100%.
Certain criteria apply to all three ways of specifying composition, although the
warning messages may differ slightly. The messages shown here are generated
from the Composition drop down table.
You must define a non-zero amount for at least one component in a mixture for
any calculation to proceed, although you may set amounts for some components
in a mixture to zero in order to remove them temporarily from the mixture
definition.
If no composition is defined, i.e. all entries are set to 0, then you will be warned
when activating a flash calculation,

If you enter an unacceptable value, e.g., a negative amount in the composition


column you will be asked to re-enter the amount once you try to activate a flash
calculation or enter another input condition, for example

Note that you can copy the composition of a phase from the results window and
paste this into the Composition table to carry out further calculations.

Specifying temperature, pressure and volume


For most of the standard flashes you must define either temperature or pressure
plus one other input variable. For an isothermal flash, of course, you need both P
and T.

134  Input conditions User Guide for Multiflash for Windows


The numerical value for the temperature, pressure or volume should be entered
in the appropriate text box, in the units shown. If the quantity has been set in a
problem setup file it will be displayed.
The values entered are checked when you move to another input condition or
attempt to do a calculation or display another dialogue box. If the value is
unacceptable, eg. a negative absolute temperature, you will be asked to re-enter
the value.
If you fail to enter temperature, pressure or volume and this is required for the
flash calculation chosen then a warning will be given. For example, if you try to
carry out an isothermal flash at fixed P,T specifying a pressure but not specifying
an input temperature the following error will be reported
Flash at fixed P and T:
*** ERROR 259 ***
Temperature not specified - Calculation not carried out

Specifying enthalpy, entropy and internal energy


These input conditions are used when calculating isenthalpic and isentropic
flashes and flashes at fixed internal energy.
Enthalpy, entropy and internal energy are defined relative to an arbitrary zero
point or datum (see below). Consequently they can take both positive and
negative values and, therefore, there is no check on the value entered. If the
value entered for any one of them is physically unrealistic you may fail to get a
converged solution for a flash calculation and the error message will report this
failure.
The default datum points for enthalpy and entropy set the value of both to zero in
the perfect gas state at 298.15K and 1 bar for each compound. Multiflash
provides other choices for the datum points which can be set in the units tab for
the property. The enthalpy datum may be set as compounds or elements and for
entropy there is a further choice of standard. Compounds corresponds to the
default described above. The other settings might be useful in the context of
chemical reactions. More complete descriptions of how these properties are
defined is given in the sections Enthalpy definition on page 174 and Entropy
definition on page 175.
As with temperature, pressure and volume if you fail to set an input value for any
of these quantities and choose a flash calculation involving them you will see the
related error message warning that they have not been specified and that the
calculation has not been carried out.

Troubleshooting - input conditions


It is always possible to make mistakes when entering numerical values. You
should therefore check carefully, particularly if you feel the results appear
unusual, that
 the values for the input conditions are correct
 they are in the correct units and that
 if they are fixed quantities for the flash calculation chosen, they
appear correctly in the output
Another problem relating to units may occur if the input conditions are set in a
problem setup file, but the input units are not specifically defined. In this case,
when the file is loaded, it will be assumed that the values correspond to the units
currently set in Multiflash. If this is not your intention it will clearly lead to an
incorrect result in your terms, but may not be reported as an error in Multiflash.

User Guide for Multiflash for Windows Input conditions  135


Calculations

Introduction
The calculations available in Multiflash may be divided into two broad
categories. Firstly there are simple flash calculations where two quantities such
as pressure and temperature are specified and the amounts and compositions of
all phases at equilibrium are calculated. Other calculation options such as the
Phase Envelope or Reid Vapour Pressure depend on a sequence of flashes to
follow a phase boundary or to simulate a laboratory procedure.
Before carrying out any calculation you must specify the components,
compositions and model(s). The other input conditions appropriate to the
calculation must also be set. For example, the pressure and temperature for a PT
flash. After you have performed a calculation any of the input conditions can be
changed and further calculations carried out.
Most of the calculations in Multiflash work with a single fluid composition and
return a result for a single set of input conditions. If you need to carry out many
calculations and generate tabular output this can be done easily using the
Multiflash Excel interface.. See the separate document User Guide for Multiflash
Excel Interface for details.

The basis of a flash calculation


In a flash calculation the overall composition and any two of the following
variables are fixed:
 Temperature (T)
 Pressure (P)
 Volume (V)
 Enthalpy (H)
 Entropy (S)
 Internal energy (U)
 Amount of a phase
The flash calculation allows you to determine, subject to the constraints imposed
(the two fixed quantities), the number and type of phases present and the
composition and properties of those phases. This is based on the thermodynamic
principles that at equilibrium
 The fugacities of each component in all phases are equal
 The temperatures of all phases are equal

User Guide for Multiflash for Windows Calculations  137


 The pressures of all phases are equal
Multiflash offers a comprehensive range of flash calculations, a list of which is
given below. The most widely used of these are then discussed individually.

Flashes available in Multiflash


The following flashes may be calculated in Multiflash.
Standard flashes
P,T flash Isothermal flash
P,H flash Isenthalpic flash at fixed pressure
T,H flash Isenthalpic flash at fixed temperature
P,S flashIsentropic flash at fixed pressure
T,S flash Isentropic flash at fixed temperature
H,S flash Flash at fixed enthalpy and entropy
P,V flash Isochoric flash at fixed pressure
S,V flash Isochoric flash at fixed entropy
T,V flash Isochoric flash at fixed temperature
U,V flash Flash at fixed internal energy and volume
P,U flash Flash at fixed internal energy and pressure
T,U flash Flash at fixed internal energy and temperature
Bubble and dew point flashes
P, Dew point Dew point at fixed pressure
T, Dew point Dew point at fixed temperature
T, Retrograde dew Upper retrograde dew point at fixed
point temperature
P, Bubble point Bubble point at fixed pressure
T, Bubble point Bubble point at fixed temperature

Fixed phase fraction flash


P, Fixed phase fraction Flash with a fixed amount of a specified
phase and fixed pressure
T, Fixed phase fraction Flash with a fixed amount of a specified
phase and fixed temperature
All the above flashes may be activated from the Calculate menu and selecting
the flash type and, where appropriate, the particular flash. The flash conditions
are taken from the Conditions section of the main window.
The most widely used flashes can also be activated by clicking on the
appropriate button in the tool bar.

Isothermal (P,T) flash


A calculation of the equilibrium conditions of a given mixture at specified
pressure and temperature is called an isothermal or P,T flash. It allows you to
determine the number and type of phases present and the properties of those
phases. It is the most widely applicable and the most reliable of the flash
calculations. It also has a unique solution.
To carry out an isothermal flash for a given mixture:

138  Calculations User Guide for Multiflash for Windows


Ensure you have chosen a model
Enter the temperature and pressure in the Conditions section

Click on the tool bar button , or, alternatively, choose P,T, Flash from the
Standard Flashes list in the Calculate menu.

Isenthalpic flashes
These are flashes at fixed enthalpy. The most useful is the P,H flash which is
used when studying flow through valves or pipelines. A typical calculation
sequence is:
Determine the enthalpy of a stream at a given P,T (isothermal flash) and enter
the calculated enthalpy in the Conditions section
Drop the pressure by entering a lower pressure under Conditions

Click on the button or specify P,H flash from the menu bar.
The P,H flash also has a unique solution.
You can also plot lines of constant enthalpy on a phase diagram. See the
description on page 144.

Isentropic flashes
The isentropic, fixed entropy, flashes are used when you are looking at adiabatic
and reversible processes such as a turbo expander where you would use the P,S
flash. Like the P,H flash the P,S flash has a unique solution. The H,S flash has
applications in the turbine industry.
As with the isenthalpic flash, enter the value for the entropy which you want to
remain fixed in the Entropy box, and enter the value for the other variable
(usually P or H). The P,S flash may be activated through either the tool bar
button or the menu, but the latter is the only option for activating the H,S flash.
You can also plot lines of constant entropy on a phase diagram. See the
description on page 144.

Isochoric flashes
The isochoric or fixed volume flashes are used when looking at closed systems,
such as vessels. The two most used are the T,V flash where you know the
temperature and the U,V flash where you know the internal energy. Both of
these flash specifications have unique solutions. Neither of these flashes has a
tool bar button assigned, both are activated only through Calculate in the Menu
bar.
You can also plot lines of constant volume on a phase diagram. See the
description on page 144.

Bubble and dew point flashes


In a simple two phase system a dew point is the first point at which liquid
appears. This will be a temperature if the pressure is fixed and a pressure if the
temperature is fixed. In a multiphase situation it is possible to have more than
one dew point (you will probably have more than one liquid phase). The dew
point calculation will return the primary normal dew point, ie. the temperature
(at fixed pressure) at which the first liquid phase appears as the temperature is
reduced or the lowest pressure at which a liquid phase appears (at fixed
temperature).

User Guide for Multiflash for Windows Calculations  139


In most oil and gas systems there is also a retrograde dew point corresponding to
retrograde condensation or condensation of liquid from a gas phase as the
pressure is reduced. The retrograde dew point pressure (at fixed temperature) is
the pressure at which a liquid phase appears as the pressure is reduced
Dew point calculations can be activated from the Calculate menu or toolbar
buttons: and for normal dew points and for retrograde dew points.
Dew point calculations are particular applications of a fixed phase fraction flash
(see below). Dew points corresponding to the appearance of each liquid phase
can be calculated with the fixed phase fraction flash by specifying the name of
the phase and setting the fixed amount of the phase to zero. A common
application is to calculate both the hydrocarbon liquid dew point and water dew
point in oil and gas systems.
The bubble point is the first point at which gas appears as the pressure is reduced
at fixed temperature or the temperature is increased at fixed pressure.
Bubble point calculations can be activated from the Calculate menu or toolbar
buttons: and .
Depending on the temperature or pressure specified and where this is in relation
to the phase envelope and critical point it is possible that a dew point or bubble
point calculation does not have a solution.

Fixed phase fraction flashes


This is a flash where the temperature or pressure is fixed plus the fraction of one
of the possible phases for a given mixture. The phase fraction may be defined in
molar, mass or volume units. The fraction may take any value between 0 and 1.
The Fixed Phase Fraction Flash (FPFF) is a generalisation of the dew and bubble
point calculations described above.

Phases
Multiflash is a multiphase phase equilibrium program that can handle up to
twenty possible phases at any time with the current configuration. Any
individual calculation will consider the possibility of all specified phases but the
maximum which may exist together at equilibrium is limited to seven. The phase
types that are included in the current version of Multiflash are
 Vapour
 Liquid
 Pure solid
 Fixed composition solid
 Hydrate
 Wax
 Asphaltene
It is clearly possible to have more than one of all these types except vapour.
However, the software and models are structured such that it would not be
sensible to define more than one wax or asphaltene. In order to identify each
phase uniquely they are assigned names and, in some cases, key components, see
“What the model definition means” on page 302. The standard set of names used
for the different phases is listed below.

Phase names
GAS vapour phase

140  Calculations User Guide for Multiflash for Windows


LIQUID1 first liquid phase
LIQUID2 second liquid phase
WATER liquid phase with key component water
ICE solid phase with freeze-out model used for water
HYDRATE1 hydrate phase, structure I
HYDRATE2 hydrate phase, structure II
HYDRATEH hydrate phase, structure H
WAX wax phase
ASPHALTENE Asphaltene phase with key component asphaltene
If you apply the freeze-out model to any phase the default name is generated by
adding “solid” before the component name, e.g. SOLIDDECANE.
Fixed composition phases are included for the halide scales: NaCl, NaCl.2H2O,
KCl, CaCl2.2H2O, CaCl2.4H2O, CaCl2.6H2O, NaBr, NaBr.2H2O, KBr and
CaBr2.6H2O.
It is possible to create phases with any name, not just the standard list shown
above. If you load a problem setup file that was not created in the Multiflash
GUI you may see other names.
The phase names are used to identify the different phases when carrying out
fixed phase flashes and to identify the phases in the Multiflash output.
A supercritical phases (often termed ‘dense phase’) represented by equation of
state models cannot be assigned an unambiguous phase type. In other words
there is no way to distinguish between a gas phase and a liquid phase. The rule
used in Multiflash is that a supercritical phase is labelled as GAS if VT2 > VcTc2,
where Vc is the pseudo critical volume and Tc is the pseudo-critical temperature.

Key components
A key component helps to identify a particular phase. The rule used is that the
key component should be present in the phase to the maximum amount relative
to the total mixture composition. Alternatively a minimum key component can
be specified; this means that the component should be present in the phase in the
minimum relative concentration.
The phases set up by the Multiflash GUI identify one liquid phase (WATER)
with water as the key component and the other two liquid phases (LIQUID1 and
LIQUID2) with water as a minimum key component.
A key component is only needed when a flash calculation must identify a phase
uniquely (e.g. search for a particular phase fraction). Examples are the fixed
phase fraction flash or a phase envelope calculation.
If you request any of these calculations for a phase without a specified key
component, an error message will be returned. For example, if you try to
calculate a water dew point when there is no water in the mixture you will see
the following message:

The other two liquid phase descriptors are not distinguished in terms of key
component as these are set in the model definitions prior to any components

User Guide for Multiflash for Windows Calculations  141


being defined. In most cases the fixed phase fraction flashes and phase envelope
calculations will solve without any additional information. However, if the lack
of unique identification may lead to problems in reaching the correct solution a
warning will be issued.
*** WARNING -20131 ***
Key component not specified for multiple
liquid/solid phases
To prevent potential problems you should nominate a key component for at least
one of your two non-aqueous liquids. To do this it is necessary to use the
Command window from the Tools menu. See ‘Defining phase descriptors and
key components’ on page 304.
For example the following command will set heptane as the key component
(present in highest concentration) for the phase liquid1.
key liquid1 heptane;
Another possibility is to use the following specifications for selecting the lightest
and heaviest liquid phases:
key liquid1 heaviest;
key liquid2 lightest;
Whilst the latter may appear convenient you should remember the rule that the
key component should be present in the phase to the maximum amount relative
to the total mixture composition. If you have a mixture rich in methane then
when the first liquid forms it may have more methane than the heaviest
component and thus be labelled liquid2. For the same reason when specifying a
liquid in terms of a specific component it is often more useful to choose one in
the middle on the component range, e.g. heptane, rather than the heaviest
hydrocarbon.
Another occasion when you need to be particularly careful in your choice of key
components is when using an Excel spreadsheet to carry out linked flashes or
recycles where the composition of your streams can change significantly and
hence the phase labelling can change even though there is no actual phase
change.

Using the fixed phase flash


To use the fixed phase flash either click on the fixed phase flash button for fixed
pressure or fixed temperature or select the option from the Calculate
menu.
The following dialogue box will be displayed.

142  Calculations User Guide for Multiflash for Windows


To see the list of possible phases click on the arrow to the right of the Select
Phase list box. Select the phase you want to fix by clicking on the phase
name; this will then appear as the selected phase.
Then select the basis for the fixed phase fraction flash. The options are mole
fraction, mass fraction and volume fraction for general use and nucleation for
use in hydrate calculations.
Enter the fraction of the phase that you want to fix. This fraction must be
between 0 and 1. To search for the temperature or pressure at which the phase
first appears (the phase boundary) set the phase fraction to 0. However you can
also look for the conditions at which there is a specified fixed amount (>0) of
any phase. Finally click on Do flash.
For systems exhibiting normal dew and bubble points the section to the left of
the dialogue box labelled “type of solution” can remain with the Normal (default
solution) option button selected. However, most oil and gas systems exhibit
more complex phase behaviour. A typical phase diagram is shown below.

The critical point is where the gas and liquid phases become identical, having
the same density and composition. It is also possible to have liquid-liquid critical
points where two liquid phases become identical. The cricondentherm is the
maximum temperature at which a two phase mixture can exist and the
cricondenbar is the maximum pressure at which a two phase mixture can exist.
If the pressure is reduced along an isotherm from the liquid or dense gas region
(to the left of the critical point) it reaches its bubble point, where the light
components no longer remain dissolved in the heavier liquid components and
separate off as a gas.
In gas condensates the gaseous components are in excess and the heavier liquid
components in the minority. In this case, as the pressure is reduced (to the right
of the critical point) the liquids drop out of the gas phase at the retrograde dew
point and the amount of liquid increases as the pressure decreases. This is known
as retrograde. condensation.. As the pressure is reduced further, the liquid
components evaporate again and the liquid disappears at the normal dew point.
For example, consider the phase envelope shown above, which has a large
retrograde region. Taking a temperature of 300oF, for example, there are two
dew points; one at 2.5 psia (the normal dew point) and one at 2977 psia (the
retrograde dew point). The Type of Solution setting allows Multiflash to
calculate either the normal or retrograde solution to a fixed phase fraction flash.

User Guide for Multiflash for Windows Calculations  143


In the special case of the dew point there are dedicated calculation options as
described previously.
The Unspecified setting for the type of solution is sometimes useful when
dealing with complex phase behaviour that does may be quite different from the
familiar Vapour + liquid situation discussed above. The Unspecified setting will
cause Multiflash to search for the nearest solution to its starting point without
any distinction between normal and retrograde behaviour. One example of where
Unspecified may be needed is when calculating an asphaltene phase boundary
above the bubble point.
TIP If you find a situation where you get failures for dew and bubble point
calculations, or the solutions are not in the region you expect, then it is worth
carrying out some isothermal (P,T) flashes or to plot the phase diagram.

Phase Envelopes
The Phase Envelope utility will trace any phase boundary including gas, liquid
and solid on pressure-temperature co-ordinates. The phase envelope utility will
work with any Multiflash model but some models, such as activity coefficient
models, are only valid at low pressures and will not produce closed phase
boundaries.
Other features include:
 the ability to trace selected phase boundaries on the basis of mass
or volume fraction in addition to mole fraction and the nucleation
boundary.
 the flexibility to include the plotting of constant enthalpy, entropy,
volume or free energy boundaries.
 A generalisation of the plotting facility so that for any chosen
phase boundary it is possible to plot any phase or property against
another.
The use the Phase Envelope utility click on the Phase Envelope toolbar button,

or select the option from the Calculate menu.


A window similar to the following is displayed:

144  Calculations User Guide for Multiflash for Windows


The buttons along the bottom of this window perform calculations or other
actions the three tabs that control what is calculated and plotted.

VLEAutoPlot
The VLEAutoPlot button will generate a vapour-liquid phase boundary starting
from the dew point line at low pressure. This is the usual phase envelope
calculation. None of the settings on the Phase tab or Initial Values tab are used
by this option.
It is possible that the message box shown below will be displayed

The default for the maximum number of points to calculate is 100. This may not
be sufficient to complete the phase boundary. Clicking on Yes will allow the
calculations and plot to continue. If the calculations have reached any limit
within the 100 points the message will not appear.

Phase tab
The Type of Solution, Select Phase, Select Basis and Phase Fraction boxes are
used when you click on the Plot button.
The Select Phase box allows you to select the specific phase for which you wish
to plot a boundary, for example WATER. The Phase Fraction box sets the value
of fraction of the phase selected to be plotted. For example, to plot the water dew
point line select the WATER phase and set the phase fraction to 0 and click on
Plot. A phase fraction of zero should always be used to plot the boundary where
a phase first appears (or disappears). Phase fractions greater than zero will plot
lines where the selected phase is present with the fraction specified. As with the
dew, bubble and fixed phase fraction calculations there may not be a solution for

User Guide for Multiflash for Windows Calculations  145


the specification made. For example, if the phase fraction of the water phase is
set as 1.0 it is unlikely that there will be a solution unless the composition is
almost pure water.
The Type of Solution settings have the same meaning as discussed previously.
Normal should usually be selected.
The Select Basis box allows you to select the property to be plotted.

The mole fraction, mass fraction and volume fraction properties refer to the
fraction of the specified phase. To calculate a phase appearance boundary (with a
fraction of 0) it is recommended that you select the mole fraction basis.
Selecting enthalpy, entropy, volume or internal energy will disable the Type of
Solution and Select phase boxes because the property line plotted is the total for
all the phases present. The value of the property to be plotted should be entered
in the units shown. The units can be changed by clicking on the Units button.
Click the Plot button to plot the constant property line.

146  Calculations User Guide for Multiflash for Windows


Initial Values Tab
The settings on the Initial Values Tab are used when the Plot button is clicked.
They are disregarded for the VLEAutoplot operation.

The Initial Values section allows you to set a pressure or temperature value for
the start of the phase boundary or property plot.. The Start from setting selects
either the pressure or temperature as the starting point and the Initial value to
section sets the initial direction for the pressure or temperature.
Pressure increasing from 1 bar is the default setting and is usually a good choice
for many phase boundaries. However, you should be aware that occasionally
there may not be a solution for a particular boundary at this pressure and it may
be necessary to vary initial conditions to start the tracing of the phase boundary.
When plotting phase boundaries for solids it is often a good strategy to start from
a high pressure and change the direction to decrease.

User Guide for Multiflash for Windows Calculations  147


If the boundary still proves difficult to trace, starting values for both the
temperature and pressure can be provided. Checking the Use starting value box
will then provide Multiflash with an initial guess for the starting point and may
make it possible to trace the phase boundary.

Frame Tab
The Frame tab allows you to set P,T boundaries for the calculation and to set the
properties you wish to see displayed on the x and y axes.

The section headed For Calculation allows setting of minimum and maximum
values for temperature and pressure that will be used when calculating a phase
boundary or property line. It is usually best not to enter any limits because the
ranges for the calculation are usually unknown in advance. If the initial point on
a line falls outside the specified range no further calculations will be done.
The For Plotting section controls how the results of the calculation are
displayed. Normally the x-axis displays temperature and the y-axis displays
pressure. However these settings can be changed to enthalpy, entropy, volume,
internal energy or the fraction of any phase. All the possibilities are shown in the
drop-down list for each axis. The minimum and maximum values for plotting on
each axis can also be set. If the T,P range for calculation is limited then the
plotted values will also be limited irrespective of the plotting range set.

148  Calculations User Guide for Multiflash for Windows


A typical phase envelope plot might be a VLE plot for a hydrocarbon fluid. The
axes will be pressure versus temperature.

By changing the plotting variables it is also possible to look at the liquid mole
fraction as a function of temperature.

User Guide for Multiflash for Windows Calculations  149


Before the new plot is displayed you will be reminded that you have altered at
least one of the axis properties and that boundaries plotted on the previous axes
will be lost.

If you wish to return to the standard P,T axes to plot you must remember to alter
the axes yourself in the Frame tab, they will not be reset automatically.
The Frame tab also allows you to change the maximum number of points
calculated at any one time. A limit is needed because some phase boundaries do
not have a natural end point or form closed loops. The default value for the
maximum is 100. This limit can be increased if desired.

Phase Envelope Output


A typical phase envelope output is shown below. The boundary labelled V/L=0
is generated with the VLEAutoPlot function. The other phase boundaries are
added one at a time with the Plot function.

150  Calculations User Guide for Multiflash for Windows


Any critical points are labelled with a C and discontinuities, where phase
boundaries cross, are marked with a D.
The numerical values for each point plotted are displayed in the main window.
Critical points or discontinuities are marked with a C or D in the table.
Phase envelope output:
T/K P/bar
39 294.300 110.80
40D 294.300 110.80
41 294.304 110.95
42 294.306 111.03
The first column is the number of the point plotted.

Customising the phase envelope plot


From the Phase Envelope window you can choose to keep or delete the most
recently plotted phase boundary or to clear the whole plot. If you do not clear the
plot any new phase boundaries will be added to the existing plot. This is a useful
way to look at how multiple phases relate to each other or to plot quality lines
(lines for differing amounts of a liquid phase) for any phase envelope.

Options
The Options button allows you to delete or customise each line on the plot.

You can change the label, the colour and line style. Tool bar buttons on the plot
window also give access to the controls of the graphics package. The Edit button

provides detailed adjustments.

User Guide for Multiflash for Windows Calculations  151


Add Data
The Add Data button allows you to add data points to the plot. These would
typically be experimental points that you wish to compare with predictions.
Clicking on Add Data displays a table.

Enter the data to be plotted (which can be pasted) and click on Save and Plot.
Several data series can be added.

Write to Excel
Although you can call all Multiflash functions directly from an Excel
spreadsheet, including the Phase envelope function, you can also transfer the plot
and phase boundary points generated in the Multiflash GUI to Excel. Once you
are happy with a plot clicking on Write to Excel will generate a spreadsheet with
a Chart corresponding to the tabular values reflected in the main window with
the values themselves posted to a worksheet.
The “Write to Excel” facility is supported for Excel 97 onwards.

152  Calculations User Guide for Multiflash for Windows


PT flash
It is possible to do a PT flash at any point on the phase diagram plot. Moving the
cursor across the plot displays the temperature and pressure as X, Y coordinates
above the plot.

Right-clicking the mouse displays the PT Flash button. Click on this button to
carry out a PT flash at the conditions shown. The output is displayed in the main
window.

Phase Envelopes for solids


The phase envelopes for solids button, is designed to make it easier to
generate all the fluid and solid phase boundaries simultaneously by just clicking
the button. The phase boundaries plotted depend on the models and phases
currently defined. If there are no solid phases present, only the V/L phase
envelope will be plotted. A PT flash can be carried out by right clicking with the
mouse as described above.
The following plot shows an example including hydrates, ice, water, liquid
hydrocarbon and vapour phases.

User Guide for Multiflash for Windows Calculations  153


The next example shows a complex phase diagram including hydrate, ice, wax
and asphaltene phases together with the usual vapour, hydrocarbon liquid and
water phases.

Liquid dropout curve calculation


Liquid dropout curves are routinely measured by PVT Laboratories as part of a
constant mass expansion experiment on condensates. The liquid dropout is
defined as the volume percentage of the hydrocarbon liquid phase at a given
pressure relative to the total volume of the mixture at the upper retrograde
dewpoint. The experiment is carried out at a fixed temperature.
To calculate a liquid dropout curve choose the option from the Calculate menu
or click on the toolbar button
A typical example of liquid dropout curves at two different temperatures is
shown below.

It is possible that an upper retrograde dewpoint is not found at the given


temperature, ie. the condition is on the bubblepoint side of the critical point. In
such cases the volume of the liquid phase is calculated relative to the total fluid
volume at the saturation point (bubble point) at the given temperature. An
example is shown below.

154  Calculations User Guide for Multiflash for Windows


Hydrate calculations
All the flash calculations in Multiflash can include solid phases such as hydrates.
The hydrate dissociation temperature or pressure can be calculated using the
Fixed Phase Fraction Flash. However, since there is a possibility of up to three
hydrate phases (with different structures), specific calculation options for
hydrates are provided to simplify the task.
To calculate the hydrate dissociation temperature at fixed pressure or hydrate
dissociation pressure at fixed temperature select the Hydrates option from the
Calculate menu or click on the appropriate toolbar button: or . The
flash will return the temperature or pressure at which a hydrate phase is present
in zero amount (the dissociation point). The hydrate structure and all the phase
properties are also displayed.
For more information on calculations with hydrate see the section Case studies -
Hydrate dissociation, formation and inhibition on page 235 .

Wax calculations
As with other solids, a wax phase can be included in any flash calculation in
Multiflash. In addition there are two dedicated calculations involving wax.

Wax Appearance Temperature


The wax appearance temperature (WAT) is the temperature at which a small
amount of wax phase appears as the mixture is cooled at a specified pressure. An
experimental measurement of the WAT requires a detectable, non-zero, amount
of wax to be formed. However, the calculation of the WAT is very sensitive to
small amounts of heavy alkanes in the mixture so very different WAT values can
be obtained depending on the criteria for detectability. The two most common
experimental techniques are Cross Polar Microscopy (CPM) and Differential
Scanning Calorimetry (DSC). The CPM technique is more sensitive than DSC
and, in general, detects the presence of a smaller amount of wax. Hence the
WAT measured by CPM will usually be higher than the measurement by DSC.
After reviewing the WAT measurements in our database we have developed
guidelines for detectability limits for the two techniques and these are included
in the WAT calculator.

To do a WAT calculation click on the toolbar button or select the Wax


option from the Calculate menu. The following window is displayed.

User Guide for Multiflash for Windows Calculations  155


For CPM we suggest a criterion of 0.045 mass percent wax as the detectability
limit and for DSC the suggested value is 0.3 mass percent. It must be emphasised
that these figures are guidelines and may not apply in all cases.
Clicking the Calculate WAT button will calculate the temperature
corresponding to the wax percentage specified at the pressure set in the input
conditions.

Wax Precipitation Curve


The wax precipitation curve option calculates the amount of wax precipitated as
a percentage of the wax plus oil phases as a function of temperature.
Measurements of the amount of wax formed as a function of temperature are, in
general, more reliable than WAT measurements which, by definition, are at the
measurement limit.

To calculate a wax precipitation curve click on the toolbar button or select


the Wax option from the Calculate menu. A window similar to the following is
displayed

Enter the pressure for the calculation in the pressure box and click Calculate. The
curve is displayed in the plot window and a table of values is shown in the
Multiflash output window
Wax Precipitation Curve
Pressure: 1. bar

T (degC) Wax mass percent in liquid(+wax)


0. 5.12253
4. 4.52423
8. 3.89114
12. 3.23714
16. 2.57435
20. 1.93908
24. 1.40141
28. 1.00565

156  Calculations User Guide for Multiflash for Windows


32. 0.725042
36. 0.525915
40. 0.377582
44. 0.271559
48. 0.195085
52. 0.131349
56. 0.0696203
60. 0.0172402
64. 0.00132507
66.4078 0.
The starting temperature is 0°C, or the equivalent in other units, and the finishing
temperature is the calculated WAT for zero % wax. The maximum number of
points is twenty but the actual number of points will depend on the WAT, the
units used and the step size.

Tolerance calculations
Tolerance calculations are used to determine the amount of a component or
mixture that must be added to the original stream to achieve a given phase split.
A typical application is to determine how much inhibitor is required to suppress
hydrate formation. Another example might be to determine the amount of water
needed to saturate a gas. Tolerance calculations are carried out at fixed
temperature and pressure and for a fixed phase fraction specified in moles.
To carry out a tolerance calculation specify the model and the components in
your stream. These should include the component or components for which you
wish to determine the amount to be added. In the Composition table specify the
composition for your mixture. The component/components for which the
tolerance calculation is being carried out need not be there in zero amount if they
are already present in the stream. However, it is more usual to set their
composition to zero, for example zero amount of methanol when you wish to
calculate the amount needed to inhibit hydrate formation. Using
Calculate/Tolerance Calculation opens the following window

In the Phase Specified tab window set the phase and the fraction of that phase
for the fixed phase element of the flash. In the Composition of Second Fluid tab
enter the amount of the single component (usually 1.0) or the composition of the
mixture to be added to the main stream to meet the phase fraction constraint set.

User Guide for Multiflash for Windows Calculations  157


Assuming you have already set the temperature and pressure click on the
Calculate button. The results in the main window will show the amount of
second fluid to be added to the original stream to meet the set constraints. In the
example this is the amount of methanol to be added to the original inhibitor free
stream to meet the condition of zero hydrate phase, ie. to prevent hydrate
formation at the given conditions..

Reid Vapour Pressure


The Reid vapour pressure (RVP) is usually employed by refineries to quantify
and modify the vaporization of gasolines and other volatile petroleum products.
RVP is a measure of the volatility of a fluid; it is reported as the gauge pressure
of a unit volume of the petroleum fluid in equilibrium with 4 unit volumes of air
at 100 °F (37.8 °C). The Reid vapour pressure of a fluid is different from its true
vapour pressure, as it is calculated considering air as part of the fluid
composition.
Reid vapour pressures are obtained experimentally according to the ASTM-D-
323 test method. This standard is for volatile crude oils and volatile non-viscous
petroleum liquids and it excludes liquefied petroleum gases.
To calculate the RVP of a mixture select Reid Vapour Pressure from the
Calculate menu.
The calculation mimics the experimental procedure, as described in the ASTM-
D-323 method. This standard requires that the mixture is one phase liquid or
liquid + vapour at the simulated experimental conditions. Water should not be
present in the mixture. Other phase behaviour, such as multiple liquid or solid
phases are not allowed by the experimental method and Multiflash will generate
and an error message
No liquid phase or multiple condensed phases were
found at the flash conditions
Another error message will be shown if the fluid is not sufficiently volatile to be
considered a volatile petroleum product:

158  Calculations User Guide for Multiflash for Windows


Negative Reid Vapour pressure obtained. Mixture
pressure is lower than 1 atm
Reid vapour pressure calculations can be done with both real components and
petroleum fractions using any appropriate thermodynamic model. However,
special care is recommended when selecting the model for the calculation. While
for most of the standard volatile fuels any cubic equation of state can be selected,
when dealing with oxygenated fuels, such as mixtures with ethanol, the CPA
Infochem model should be used to ensure that the correct phase behaviour is
predicted.
The following example uses a mixture of 93.57 mol % isopentane and 6.43 mol
% ETBE (ethyl tert-butyl ether) (file ReidVP_ex1.mfl). The reported
experimental Reid vapour pressure is 19.1 psi. Using the RKSA model s
calculated value of 18.8 psi is obtained.

Note that ETBE must be selected from the DIPPR databank because it is not one
of the components in Infodata.
Other example is provided in the file ReidVP_ex2.mfl. This is a mixture of
different gasoline components (in the range C5-C7) and ethanol. As ethanol is
part of the mixture, the CPA model should be used to ensure realistic predictions
(the RKSA model will wrongly predict liquid-liquid phase splitting).

User Guide for Multiflash for Windows Calculations  159


The calculated value is now 10.8 psi. A low volatility gasoline will have a Reid
vapour pressure around 6 psi, while a high volatility gasoline will be in the range
of 15 psi. The example presented thus corresponds to a hypothetical gasoline of
intermediate Reid vapour pressure

Property output in Multiflash


Multiflash provides several levels of physical property output following a flash
calculation. The default is to list the phases present , with their amounts,
compositions, thermal and volumetric properties. It is possible to get more
output such as heat capacities and compressibility and fugacity and activity
coefficients for each component in each phase. You can also calculate and
display diffusivity provided you have checked the “include diffusivity
coefficient” box when defining the model set. The output can also be reduced to
a minimum of phases and compositions.
The level of output can be set using the Select/Property Output menu option. The
following dialogue box will be displayed

160  Calculations User Guide for Multiflash for Windows


You can also trigger the same dialogue box using Tools/Preferences to set your
preferred level of property output as the default.
Activity coefficients may not be a valid property for all components in all
phases. This will depend on the component and the model. If the property is not
valid N/A will be displayed.
The default setting is equivalent to the first two options being selected plus the
transport properties. The later will be omitted if no transport models are defined
To reduce the amount of output deselect any properties not of interest. If you
choose Heat Capacity and Speed of Sound etc. the phase amounts and
composition plus the volume and thermal property output are also automatically
selected. Examples of the property output options are shown in “Calculation
output” on page 171.

Troubleshooting - flash calculations


This is the most difficult area for which to give general guidance. Multiflash is
capable of handling complex mixtures which may exhibit multiphase phase
equilibrium.
Some flash calculations gave a unique solution. These include (P,T), (P,H),
(P,S), (T,V), (U,V) and (S,V). In principle, these flash calculations should
always have a solution. However, in practise, the range of conditions for which a
solution can be found depends on the models used. For example, if the volume
specified for a flash is smaller than the b parameter for a cubic equation of state
it is not possible to solve any flash that includes the volume.
Dew and bubble point calculations (and fixed phase fraction flashes in general)
are common cases of flashes that may have no solution, a single solution or
multiple solutions. When one of these calculations fails it will produce output
similar to the following in the main output window
Bubble point at fixed P:
*** ERROR 20292 ***
Cannot find converged point - max. iterations
*** ERROR 20024 ***

User Guide for Multiflash for Windows Calculations  161


Cannot find starting point for calculation - there
may be no solution.
*** ERROR 344 ***
The flash calculation has not converged
The difficulty is to assess the reason for the error and how best to investigate the
cause and take corrective action. An error may be reported when there is
genuinely no solution to the problem posed. The error above, for example,
resulted from asking for a bubble point at a pressure above the cricondenbar for
the gas condensate discussed earlier. As you can see from the phase diagram
presented there is no bubble point at this pressure as it is above the pressure at
which the two phase mixture will exist. In general you will not be able to solve
bubble or dew point problems at pressures above the cricondenbar or
temperatures above the cricondentherm.
Another type of phase envelope where problems can arise is shown below

As you can see the phase envelope turns up at low temperatures and high
pressures. This is also typical of phase envelopes with a significant amount of
hydrogen where you may not find a solution for the bubble point at low
temperatures.
What can you do if the method used to find a solution is not capable of solving
the problem posed? There are various strategies which may help:

Plot the phase envelope


The phase envelope plotter is a convenient way to determine the phase
boundaries and what phases you might expect to be present under given
temperature and pressure conditions. For information on plotting the phase
envelope see “Phase Envelopes” on page 144.
However, plots at high pressure based on activity models will not be meaningful.

Use the P,T flash


The P,T flash is the most reliable of the flashes and the least likely to fail. It can
be used where you are experiencing problems with other flashes to see where
you are in terms of the phase envelope.
Even the P,T flash may occasionally have problems. Again hydrogen containing
mixtures can pose difficulties; it may not be possible to find a solution where the
mixture is all liquid even using an isothermal flash.

162  Calculations User Guide for Multiflash for Windows


You can use a right click in a phase envelope plot to carry out a PT flash
anywhere on the plot. See the description on page 153.

Limit the number of phases


Multiflash is designed to consider the possibility of all the phases specified in the
Model Set being formed and to establish the most stable solution. The model sets
for equations of state are generally configured for four phases, GAS, LIQUID1,
LIQUID2 and WATER. If you are having problems finding a solution and think
you know there are fewer phases, possibly only GAS and LIQUID1, or
LIQUID1 and LIQUID2, then it may be worth while reducing the number of
phases to be considered. This can be done by switching off one of the phases in
the Model Set dialog box.

Consider all types of solution


As we have discussed above, for complex mixtures and phase diagrams you may
not find the solution in the region you want by the “normal” solution route. Plot
the phase envelope or carry out some P,T flashes to see what type of phase
envelope you have and whether you should be seeking a retrograde solution.

Provide a starting estimate


If you feel you have specified the flash, correct input conditions and correct type
of solution but convergence errors are still being reported it may be worth
providing a starting guess for temperature or pressure. This is useful for any
flash other than the PT flash where both quantities are already specified.
From the Select menu click on Use Starting Values.

User Guide for Multiflash for Windows Calculations  163


Carry out the flash calculation. The temperature or/and pressure (as appropriate
for the flash calculation) set in the input conditions text box will be used as the
starting value for the calculation.
To turn off the use of starting values, use the Select menu again and click to
remove the check mark by Use Starting Values .
Unfortunately in the vicinity of the critical point the use of starting values may
not be sufficient to give convergence as calculations in this region can be
particularly sensitive to estimates of the composition.

Provide a key component


As we have discussed earlier, “Key components” on page 141,. default key
components are defined for the standard phase descriptors. If difficulties occur in
uniquely identifying a phase then providing a more specific key component for a
phase may help find the solution.

164  Calculations User Guide for Multiflash for Windows


Units

Introduction
A significant proportion of the apparent errors and problems reported for
Multiflash can be tracked down to a mismatch between the units the user thinks
he/she is using and those currently set in the software. The importance of
matching units cannot be stressed too much. Having said that, what units are
available for you to select?
Internally all Multiflash calculations are carried out in SI units. This cannot be
changed. Unless altered by the user, the default input and output units are also SI
and any numerical input values for any property will be assumed to be in SI.
The input values of component amounts for any calculation are total amounts.
The output defaults are that individual compositions of any phase are given as
fractions but the amount of each phase is the total amount.

Default units
In the absence of any other information the default input and output units are
also SI. However, if you prefer to work in other units most of the time it is
possible to set these as your preferred option. This is done through the Tools
menu by selecting the Preferences/General option.
Under the Default Units tab select your choice of units for any property. In the
example below the default unit for pressure is set to bar rather than Pa.

User Guide for Multiflash for Windows Units  165


If you exit Multiflash and re-launch the software the pressure units will
automatically be set to bar.
However, you should be aware that if you load an .mfl file where you had
included numeric values for pressures, but not specified the units, these will now
be assumed to be in bar. This problem can only arise if you create your own .mlf
files using a text editor rather than using the Multiflash GUI.
The input amounts for any calculation are total amounts. They may be set as
percentages in the PVT Analysis Form or the Inhibitor Calculator, but they will
be converted to absolute amounts for calculation or display in the Composition
drop down table. The output defaults are that individual compositions of any
phase are given as fractions but the amount of the phase is the total amount. As
with any other units these defaults can be changed.

Changing units
You may change any of the input or output units at any time. This does not affect
the default unit settings described above.
From the Select menu choose Units or click on the Select input and output units
toolbar button . This displays the Unit Selection window:

166  Units User Guide for Multiflash for Windows


To view the currently selected units for any property click on the corresponding
tab. To change the input units for any property click on the option button next to
your choice of unit in the Input unit column. Do the same in the Output unit
column to change the output units for that property. The input and output units
may be different.
The units for output (calculated) composition may be changed from fractions to
total amounts on the Amounts tab. It is not possible to change the input
composition to fractions.
The Unit Selection window can be also accessed by clicking the Units button
from a dialog box such as Phase envelope, Tolerance calculation, defining
Petroleum fractions, Pure Component Data, Matching options, Tables etc.
Units can be also be altered as a "block" by choosing "All Metric" or "All
British". Units for all properties will be reset to:
All Metric;
mole, DegC, bar,m3/mol, J/mol, J/mol/K, cP, W/m/K, N/m, m2/2
All British;
lbmol, DegF, psi, ft3/lbmol, BTU/lbmol, BTU/lbmol/F, cP, BTU/hr/ft/F,
dyne/cm, cm2/s
If you save a problem setup the unit definition will also be saved as part of the
problem setup file.

Troubleshooting - units
The only problems we have encountered with units arise from a mismatch of
those currently set in the software and those assumed by the user. It is always
worth checking the units are what you expect if you run into problems.

User Guide for Multiflash for Windows Units  167


Output

Introduction
The numerical output from Multiflash appears in the results window which
occupies the bulk of the main window. The output is also written automatically
to a log file called MFLASH.LOG. It is also possible to print results or to write
them to another file of your choice. How you do this will be discussed in
“Writing the results to a file” on page 170.

The results window


As soon as Multiflash opens the banner appears in the results window.

The banner contains information on the serial number for your copy of
Multiflash; the time and date of the current run for documentary purposes and
information on the path of the Multiflash application files location. It also shows
the contents of the MFCONFIG.DAT file if you have one. The path for the
location of the Multiflash log file can be found from the “About Multiflash …”
under the Help menu of the Multiflash main window.
When a problem setup file (.mfl file) is loaded the contents of the files are also
displayed in this window.
Before the output from each calculation, the results window displays a separator
followed by a comment line to identify the calculation. For example
Dew point at fixed T:
A confirmation message may be displayed be certain menu options. For
example, the Clear Problem Setup option in the File menu shows the following
message to confirm that the previous setup has been removed
Clear current problem setup

User Guide for Multiflash for Windows Output  169


All the results from the Multiflash calculation will be sent to the results window,
including comments, warning and error messages. This output will be considered
in detail later.
There is a limit of 300kb of text that can be stored in the results window. Earlier
results will be overwritten once this limit is reached. Similarly if you choose to
write the output to a file of your own choice only the contents of the results
window will be stored. However, all results will be written to MFLASH.LOG
unless the results from any set of calculations exceed 300kb.
If some of the output is not visible in the results window then it can be viewed
by scrolling vertically or horizontally. It is also possible to extend the size of the
window by dragging.

Font
The default font for displaying results in the output window is Lucida Console,
10 pt. This can be changed through the Tools menu by selecting the
Preferences/General option and the Sheet Configuration tab and clicking on
the Fonts button.

The possible fonts available will depend on the particular PC installation. When
changing fonts we recommend that you always choose a mono-spaced font so
that the column format is retained.

Writing the results to a file


As well as being displayed in the results window the output is also sent to a log
file which may be examined later. The log file is called MFLASH.LOG. Each
time Multiflash runs the previous log files are renamed sequentially as
MFLASH_1.LOG, MFLASH_2.LOG up to MFLASH_10.LOG. This allows you
to refer back to earlier Multiflash sessions. The oldest file MFLASH_10,LOG is
deleted when a new Multiflash session is started. If you wish to keep any of the
log files you should rename them.
You can also save all the output to a file at any time using the Save Results
option from the File menu. A confirmation message is displayed

170  Output User Guide for Multiflash for Windows


If you have previously selected part of the output the following message is
displayed.

A file save dialogue allows you to choose the file name and folder. The default
extension for output files is .out, but you may choose any extension that is
allowed by Windows.

Printing the output


You can print the output from your calculations by selecting the Print Results
option from the File menu or clicking on the toolbar button .
The Print window allows you to configure your printer as in any Windows
application.
If you only wish to print part of the output you should select the relevant section
by highlighting it with the cursor. You then select print results as above.
Alternatively you can cut or copy the relevant sections and paste them to another
application, such as Word using the Edit menu.

Calculation output
Calculation output will vary slightly depending on the type of calculation and the
level of physical property output specified but will be in the style

User Guide for Multiflash for Windows Output  171


The first line of output reports the temperature and pressure. These will be either
the input conditions or the values calculated from the flash.
This is followed by three messages:
No. Phases reports the number of phases that have been found at the particular
temperature and pressure.
CONVERGED means that the calculation has been completed successfully. If a
solution has not been found then error messages will be produced and any results
would be labelled FAILED. If a warning has been generated then you may see
the message ?UNCONVERGED. In the latter two cases the error or warning
messages should be read carefully to assess the problem.
Multiflash can only check for STABLE means that no further phases (out of the list provided) will form.
the stability of a solution with Sometimes a solution may be labelled as UNSTABLE, meaning that further
respect to the formation of phases would form if more phases were allowed for in the problem setup. An
another phase of a type example might be if only vapour and one liquid phase are specified but in fact
already specified. For the true solution is vapour-liquid-liquid. If you want to look for the extra phase
example, if you have only then you must include an additional phase descriptor in your model definition.
defined two liquid phases the If, however, you are at very low temperatures you may be looking at a
possible formation of a metastable solution and wish to retain only the number of phase descriptors
vapour or solid cannot be already defined. The results of a hydrate nucleation calculation will always be
checked labelled unstable because it is not an equilibrium point. It is also possible to see
the message MARGINALLY STABLE. This means that, although the solution
is stable, changing the conditions slightly might result in the formation or
disappearance of a phase, for example near the critical point.
The remaining output depends on the setting for the physical property output
level. For each phase the phase name is given underneath to identify it uniquely.
The previous example shows output from the default setting.
The column labelled OVERALL gives the total mixture properties (where
applicable). If molar output units are selected for amounts (default) the
compositions shown are mole fractions, but the total amount of each phase is in
molar units. If mass-based output units for amounts are chosen the compositions
displayed are mass fractions and the totals are in the selected mass units. If you
want the output in absolute amounts not fractions you set this on the Amounts
tab of the Select Units option.
Z is the compressibility factor calculated from the same model as used to
calculate fugacity coefficients (K-values). The average molecular weight has
units of g/mol. ‘Den/V’ is the molar or specific density or volume calculated
from the volumetric model in the selected density/volume output units. U, H, S
and G are the internal energy, enthalpy, entropy and Gibbs energy of each phase.
If you have extended the physical property output then the additional properties
will be listed below these, e.g.

172  Output User Guide for Multiflash for Windows


Cp (J/mol/K) heat capacity at fixed pressure
Cv (J/mol/K ) heat capacity at fixed volume
Sp. Sound (m/s) thermodynamic speed of sound
Compress (1/bar) the compressibility
Expansiv (1/K) the expansivity
JT (K/bar) the Joule-Thomson coefficient
Visc.(Pas ) viscosity
Th.C.(W/m/K ) thermal conductivity
ST (N/m) surface tension
The format for the surface tension output depends on the surface tension model
selected. For the Macleod-Sugden model (MCS) there is an entry for each liquid
phase. This is the liquid-gas interfacial tension. For the linear gradient theory
model (LGST) the interfacial tension between each pair of phases is displayed in
a grid. This will include liquid-liquid interfacial tension as well as the liquid-gas
values.
If the fugacity coefficients and activity coefficients have been selected the
coefficients for each component in each phase are listed as follows:

COMPONENT OVERALL PHASE1 PHASE2


GAS LIQUID1
fug. coeff. fug. coeff.
BUTANE .86231 1.2403
PENTANE .79165 .56033
Activity coefficients may not be a valid property for all components in all
phases. This will depend on the component and the model. If the property is not
valid N/A will be displayed.
Finally, values for diffusion coefficients are displayed. If the model definition
has been set to include diffusivity then the output will automatically include
diffusion coefficients. If Diffusivity has been set for property output but not
included in the Model Set definition then the property label will appear but not
the numeric values.

PHASE1
GAS
Diffusion coefficient (m2/s )
ACETONE WATER
ACETONE 8.00080E-06 1.86663E-05
WATER 1.86663E-05 4.29283E-05
PHASE2
LIQUID1
Diffusion coefficient (m2/s )
ACETONE WATER
ACETONE 7.15035E-09 2.96215E-09
WATER 2.96215E-09 4.55884E-09

Manipulating the Output


As described above the appearance of the output can be configured to your
liking. Font type, size and colour can be altered as can the background of the
results window. Gridlines can be added to clearly distinguish between columns.
You can copy any proportion of a column and paste this directly into another
grid. The composition of a liquid from a flash can be copied and directly pasted
to the input composition table. The amount of a second phase to be added to the
overall stream composition from a tolerance calculation can be copied and added
to the Composition table.

User Guide for Multiflash for Windows Output  173


Phase Labelling
The list of phases displayed after a flash calculation shows the phase label for
each phase. At low pressures there is usually a clear distinction between a gas
phase and a liquid phase. This is no longer the case in the ‘dense phase’ region
above the vapour-liquid phase envelope where the phase present is supercritical.
In such cases there is no physical distinction between a gas and a liquid. The
phase label assigned by Multiflash is arbitrary.
The criterion used to decide whether to call a supercritical phase gas or liquid is
as follows.

 A phase is labelled as gas if VT 2  Vc Tc2 where Tc and Vc are


the pseudo-critical temperature and volume.
 Otherwise the phase is labelled as liquid.
 The pseudo-critical properties are model-dependent and do not
correspond to the true critical properties for a mixture.
These conditions only apply to equation of state type models that can represent
both gas and liquid phases. The phase properties such as density, enthalpy etc.
are not affected by the label attached to the phase since, by definition, the phase
is supercritical and there is only one solution for the volume of the equation of
state model.

Enthalpy definition
In Multiflash the enthalpy is calculated as

H  H ref  H pg  H res
Where:

H ref is the (arbitrary) enthalpy value in a reference state to be defined;

H pg is the perfect gas contribution to the enthalpy which is calculated by


integrating the equation for the perfect gas heat capacity;

H res is the residual enthalpy which is calculated from the thermodynamic


model specified for thermal properties.
The absolute value of enthalpy has no physical meaning but enthalpy differences
are measurable quantities therefore H ref can be chosen at will. Multiflash has
two possible reference states that are user selectable. By default we set to zero
the enthalpy of each pure component in the perfect gas state at 298.15K and 1
atm. This reference state (or datum) is referred to as the ‘compound’ datum in
the units selection window of Multiflash. See “Units” on page 165.
An alternative datum in Multiflash (the ‘elements’ datum) sets the enthalpy of
each element to zero in the perfect gas state at 298.15K and 1 atm. This datum
produces enthalpy values that are much larger numerically than the ‘compound’
datum but enthalpy differences between two states are the same. When
calculating chemical reaction equilibrium the ‘elements’ datum must be used
because it is the elemental entities that are conserved rather than the molecular
entities. If you observe differences in enthalpy values calculated with Multiflash
and other software this is likely to be because of different choices of datum.
However, enthalpy differences should not be very different.

174  Output User Guide for Multiflash for Windows


Activity Models
For activity methods the default route for calculating the enthalpy is as described
above. However, there are two additional routes by which the enthalpy of each
component can be calculated. Although the alternatives described below are
available, it is recommended that they should only be used if the consequences
and implications are well-understood.

Liquid enthalpy based on saturated liquid heat capacity


The data stored for each pure component will normally include a correlation for
the saturated liquid heat capacity (Cp) as a function of temperature. The enthalpy
can be calculated based on the liquid Cp correlation instead of the perfect gas Cp
correlation as usual.
With this option for the liquid phase the pure component enthalpy at the
reference state, 298.15K and 1 atm is calculated with the existing procedure
described above. Then the total enthalpy of pure components at the system
temperature is calculated by adding the integral of the liquid C p from the
reference temperature to the given temperature plus the enthalpy change on
evaporation at 298.15K, the Poynting correction and the excess enthalpy
calculated from the activity coefficient models.
The enthalpy for the gas phase is calculated by the default method. The
consequence is that that the liquid heat capacity is based on the stored correlation
for the liquid phase so it may be expected to be more accurate than the value
calculated by the default method that is, ultimately, based on the perfect gas heat
capacity. However the enthalpy difference between gas and liquid is no longer
based on the databank correlation for enthalpy change on evaporation.

Gas and liquid Enthalpy based on saturated liquid heat


capacity
With this option the liquid phase enthalpy is calculated as described above. The
gas phase enthalpy is obtained by subtracting the enthalpy change on
evaporation from the liquid phase value.
This procedure provides liquid phase enthalpy and Cp based on the databank
correlation for liquid Cp. The enthalpy difference between gas and liquid is
based on the correlation for the enthalpy change on evaporation. However, the
gas phase enthalpy is no longer based on the perfect gas heat capacity and
would, therefore, be expected to be less accurate than in the default method.

Entropy definition
In Multiflash the entropy is calculated as

S  S ref  S pg  S res
Where:

S ref is the (arbitrary) entropy value in a reference state to be defined;

S pg is the perfect gas contribution to the entropy which is calculated by


integrating the equation for the perfect gas heat capacity;

S res is the residual entropy which is calculated from the thermodynamic model
specified for thermal properties.

User Guide for Multiflash for Windows Output  175


Although the absolute entropy can be argued to have a physical interpretation, in
practise, it is entropy differences that are experimentally accessible and S ref can
be chosen at will.
Multiflash has three possible reference states that are user selectable. By default
we set to zero the entropy of each pure component in the perfect gas state at
298.15K and 1 atm. This datum is referred to as the ‘compound’ datum in the
units selection window of Multiflash. See “Units” on page 165.
The ‘elements’ datum sets the entropy of each element to zero in the perfect gas
state at 298.15K and 1 atm. This datum produces values that are much larger
numerically than the ‘compound’ datum but entropy differences between two
states are the same. When calculating chemical reaction equilibrium the
‘elements’ datum must be used.
The third possibility is the ‘standard’ datum which is sometimes called the
‘third-law or ‘absolute’ entropy. This means that the reference entropy is chosen
so that the entropy of each component in the perfect gas state at 298.15K and 1
atm is equal to the standard entropy of that component. The standard entropy is
relative to a zero value at absolute zero. The standard datum may also be used in
chemical reaction analysis since the results are equivalent to the elements datum.

Activity Models
The two alternative calculation routes for the enthalpy have corresponding routes
for the entropy. They always apply to both properties.

Errors and warning messages


Errors are usually associated with Multiflash output indicating a failure to find a
solution or that the results may be invalid. Error messages and warning messages
are displayed in the results window. Each error and warning has a unique
identification number. Errors are denoted by positive numbers and warnings by
negative numbers. The error number is followed by a single line description of
the problem. For example
Dew point at fixed T:
*** ERROR 20292 ***
Cannot find converged point - max. iterations
*** ERROR 20024 ***
Cannot find starting point for calculation - there may be no solution.
*** ERROR 344 ***
The flash calculation has not converged
When several errors are reported, as above, it is the first error that is closest to
the fundamental problem. For more information on each error code see
Multiflash Error Codes in the Help menu. The information on the module in
which the error occurred and the subprogram name is intended for use by
Infochem technical support.
Warning messages should be checked carefully. In many cases they may be
ignored if the cause is understood.

Displaying status for current settings


Show options in the Tools menu allow the user to check the status of some
Multiflash options. The options are summarised in the following table.
Show options
BIP databank The name of the active BIP bank for the problem e.g.

176  Output User Guide for Multiflash for Windows


oilandgas4
Models List of the model set
Phase descriptors Phase descriptor names for the phases to be included
in calculation
Problem Full definition of the current problem
Pure Component The pure component databank current at the time of
Databank request
Results Re-display of the results from the last calculation
Stream Types Displays number and names of active streams

The output from the Show Problem option is essentially identical to the
information written to an .mfl file is the current problem setup is saved.

Troubleshooting - output
Problems relating to the flash calculations, which may be reflected in the output,
have been dealt with earlier. However, some problems directly related to the
output may be worth mentioning.

The output does not include everything


expected
Remember that there is a limit of 300kb for the results window. If your output
exceeds this then, as the last 300kb are retained, earlier results may be
overwritten. You can of course cut and paste results to another document when
you reach the limit or take the results from the log file.
The output may not contain all the properties expected. This may be because
they have not been selected, see “Property output in Multiflash” on page 160, or
because a model for the property has not been defined.
You should ensure that you have defined transport property models when
creating PVT files for PIPESIM or TAB files for OLGA.

Phase labelling
The phase names attached to each of the possible phases which may form
enables you to keep track of the phase output. One case where some confusion
may arise is for dense phases, where it is not possible to decide unambiguously
whether the dense fluid is a liquid or a gas. In this case the phase name may
change with slight alterations in conditions. A change in the phase label does not
affect the correctness of the results or phase properties, it is only the label
attached to the phase that is ambiguous.

Fonts
Occasionally users have reported not being able to read the output in the results
window. This appears to be the result of particular PC installations where the
font type or size has been re-set to choices that are incompatible with the display.
To change the font setting see “Font” on page 170.

User Guide for Multiflash for Windows Output  177


Interfaces with other programs

Introduction
In addition to using Multiflash to do stand-alone calculations it is possible to
create property data files for use by other application programs. In addition,
Multiflash can also import files from other programs (e.g., PVTSim) to perform
calculations. Multiflash can currently produce Pipesim PVT files, files for input
to OLGA, property files for Prosper, and CAPE-OPEN property package files.
It can also import CHC files from PVTSim.

Pipesim PVT files


Pipesim is a general purpose simulator for modelling fluid flow in oil and gas
wells, flow lines and pipeline systems. It is a product of Schlumberger
Information Systems.
Multiflash can produce a PVT data file for use by Pipesim. The file contains all
the physical property information required by Pipesim. It consists of a series of
flash calculations on a grid of pressure and temperature values. The information
stored includes the stream composition and, for each grid point: liquid volume
fraction, water cut volume fraction, liquid density, gas density, gas
compressibility factor, gas molecular weight, liquid viscosity, total enthalpy,
total entropy, liquid heat capacity, gas heat capacity and liquid surface tension.
For a complete definition of PVT files see the Pipesim manual.
To generate the file:
Define the models (which must include models for surface tension and viscosity)
and the mixture (components and composition) as usual
Select Pipesim from the Table menu, then
Fill in the dialogue box. with the pressure and temperature grid points and the
name of the output file. The recommended file extension is .PVT

User Guide for Multiflash for Windows Interfaces with other programs  179
Click on Calculate table
An alternative to entering each pressure and temperature individually is to use
the Equidistant Points Tab which allows you to enter start and end points for P
and T and an increment or a number of points.
Assuming there are no problems the output will go directly to the .PVT file, it
will not be sent to the results window. In the results window you will see the
message
Pipesim table written to file: pipe1.pvt
If there are problems calculating any of the entries in the table the following
message is displayed

and more details are reported in the output window.


It should be noted that any BIPs specified by the user in Multiflash will not be
stored in the .pvt file, although numerical values will have been calculated using
them. However, in line with recent changes to PIPESIM .pvt files written with
Multiflash will contain information on the version of the OILANDGAS BIP
correlations and the viscosity model used.

OLGA
OLGA is a general purpose transient simulator for modelling fluid flow in flow
lines and pipeline systems. It is a product licensed by the SPT Group.
Multiflash can produce a PVT data file for use by OLGA. The file contains all
the physical property information required by OLGA. It consists of a series of
flash calculations on a grid of pressure and temperature values. The information
stored includes all the properties required by OLGA for either two-phase or
three-phase problems as set out in SPT Technical Note No. 1.

180  Interfaces with other programs User Guide for Multiflash for Windows
To generate the file:
Define the models (which must include models for surface tension, thermal
conductivity and viscosity) and the mixture (components and composition) as
usual
Select OLGA from the Table menu, then

Fill in the dialogue box with the pressure and temperature grid points and the
name of the output file. The recognised extension for OLGA tables is .tab. This
will be allocated automatically if you use the Browse facility to identify a
suitable folder and save the file there. Alternatively you can type in the .tab
extension as part of the file name. If you want the file saved in a folder directory
you must enter the full pathname, otherwise the file will be saved in the current
default directory. If the file already exists, the fluid PVT table will be added to
the end of the existing file if the append box is ticked, otherwise the entire file
will be overwritten with the new PVT table.
OLGA requires a File id (starting with a letter not a number). If you don't
provide one, Multiflash will assign one automatically.
Click on Calculate table
If the file already exists and the append box is not ticked, a warning message will
be displayed

Clicking Yes causes the file to be overwritten with the new table. Clicking No
means nothing will happen.

User Guide for Multiflash for Windows Interfaces with other programs  181
Assuming there are no problems with the calculations the output will go directly
to the .named file, it will not be sent to the results window. In the results window
you will see the message
Olga table written to file: oil.tab
Similarly to the Pipesim table option you have the choice of entering the P and T
points for the table or specifying ranges and increments or the number of points.
If any of the input is unacceptable, such as specifying negative pressures or
absolute temperatures or if Multiflash cannot solve the flash calculation at any
grid point then a warning message will appear. This may be an indication that
you have incorrect input

or the calculation routines may fail with the message

OLGA hydrate file


In addition to the PVT table, Multiflash can also write an OLGA hydrate file
defining the boundary of the hydrate forming region. This is done by entering a
file name in the hydrate file box or clicking the Browse button. The default
extension for a hydrate file is .hyd. The hydrate file is written at the same time as
the PVT table when the Calculate Table button is clicked. The same style of
warning will appear if an existing hydrate file is about to be overwritten. If the
hydrate file box is left blank, the hydrate calculations are omitted.
If the hydrate file is required but the hydrate model and hydrate phases are not
defined, the following warning is displayed. Choose the Model Set option from
the Select menu to define the hydrate model. It should then be possible to
generate the OLGA hydrate file.

OLGA wax file


Multiflash can also write an OLGA wax file defining paraffin wax precipitation.
This is done by entering a file name in the wax file box or clicking the Browse
button. The default extension for a wax file is .wax. The wax file is written at
the same time as the PVT table when the Calculate Table button is clicked. The

182  Interfaces with other programs User Guide for Multiflash for Windows
same style of warning will appear if an existing wax file is about to be
overwritten. If the wax file box is left blank, the wax calculations are omitted.
If the wax file is required but the wax model is not defined, the following
warning is displayed. Choose the Model Set option from the Select menu to
define the wax model. It should then be possible to generate the OLGA wax file.

Prosper PVT files


Prosper is a well performance, design and optimisation program for modelling
well configurations for the oil and gas industry. It is a product of Petroleum
Experts.
Multiflash can produce a PVT data file for use by Prosper. The file contains all
the physical property information required by Prosper. It consists of a series of
flash calculations on a grid of temperature and pressure values. For a complete
definition of PVT files please see the Prosper manual.

To generate the file


Define the models (which must include model for viscosity) and the mixture
(components and composition) as usual
From the Table menu choose Prosper. The Prosper PVT Table window is
displayed:

Enter the file name. The recommended file extension is .pvt


The Fluid Id field is an optional identifier that will be written to the file.
You can select the (input) units of temperature and pressure for the table from
the drop-down boxes. Note that the units in the table file are fixed with the
temperature in ºF and the pressure in psig.
Enter the temperature and pressure points for the table. For each isotherm, up to
15 pressures can be specified on the form.
The properties tabulated can be selected using the check-boxes in the Properties
frame. The properties are defined as follows:

User Guide for Multiflash for Windows Interfaces with other programs  183
Keyword Description Unit
GOR Gas-Oil ratio scf/sbl
OFV Oil formation volume factor RB/sbl
OVIS Oil viscosity cPoise
ODEN Oil density lb/ft3
OCOM Oil compressibility 1/psi
GFVF Gas formation volume factor ft3/scf
GVIS Gas viscosity cPoise
ZFAC Gas Z factor
GDEN Gas density lb/ft3
CGR Reservoir condensate-gas ratio bbl/MMscf
WVIS Water viscosity cPoise
WCOM Water compressibility 1/psi

To generate the file click on Calculate table.


Assuming there are no problems the output will go directly to the .PVT file, it
will not be sent to the results window. In the results window you will see a
message similar to
PROSPER table written to file: C:\Program
files\Infochem\Prosper1.pvt

If any of the input is unacceptable, such as specifying negative pressures or


absolute temperatures or if Multiflash cannot solve the flash calculation at any
grid point then a warning or error message will be displayed

and the errors are reported in the output window.

CAPE-OPEN Interface
Infochem has been an active participant in developing and testing the CAPE-
OPEN (CO) standards. The Multiflash CO modules implement versions 1.0 and
1.1 of the standard and support the PropertyPackageManager/ThermoSystem and
PropertyPackage interfaces. The interface has been tested for interoperability
with Petro-SIM, Aspen+, CoCo, ProII, gPROMS, Hysys and Simulis.
To generate a Multiflash CO Property Package for use with the Multiflash
CAPE-OPEN module simply set up the problem as usual. Instead of saving the
Problem Set-up choose the Export CO Property Package option from the File
menu. It is not necessary to specify which version of the CO interface you intend
to use.
For more information see the document Multiflash 4.3 CAPE-OPEN
Components for MS Windows operating systems which is provided on the
Multiflash CD-ROM and in the installation folder.

184  Interfaces with other programs User Guide for Multiflash for Windows
PVTSim CHC file import tool
PVTSim is a general thermodynamic properties package product of Calsep. Multiflash can easily import the files
generated by PVTSim (.CHC files) and use it to perform thermodynamic calculations.

To import a CHC file simply:

1) Select Import PVTSim CHC file from the File menu. The following window should appear:

2) Click the "Browse" button and search for the .CHC file that you desire to import. Then click on the "Open"
button.

3) Choose the options for model import regarding models for viscosity, thermal conductivity, and surface tension.
Otherwise the suggested default models will be used.

4) Click on the phases you want to define. Otherwise the suggested default phases will be defined.

5) Optional: if the original mixture as defined in the CHC file does not contain but water is desired in the mixture,
simply click on the "Add water" tick box.

6) Optional: use the GERG 2008 model to calculate the vapour phase density.

7) Click the "Import" button.

User Guide for Multiflash for Windows Interfaces with other programs  185
Help

Introduction
Help is provided in various ways:
 This document: User Guide for Multiflash for Windows
 On-line Help
 Website support
 Technical support

On-line help
The on-line help is accessed through the Help menu

Help Topics
Help Topics provides access to the Contents, Index and Search facilities for
Multiflash Help.

User Guide for Multiflash for Windows Help  187


Selecting any active topic will bring up the related help text.

Related topics are further sub-headings and more help is displayed by selecting
any of these.
Some of the help text may be displayed in green. If this is underlined with a solid
line, clicking on the text will allow you to jump to another help screen related to
the text. If the text is underlined with a dotted line, clicking on it will result in a
pop-up box containing a glossary definition or a margin note.
Selecting the Search tab button in the on-line help window allows you to specify
a particular topic you are interested in, either by typing in a description or
selecting from the list displayed.

188  Help User Guide for Multiflash for Windows


Clicking on the Display button or double clicking on the topic allows you to
move to the related help text.

Multiflash Error Codes


The error codes are the identification codes printed in the main window when an
error occurs. The code numbers may be entered and a short explanation is given.

Check for Updates


If your computer has an internet connection you can check for the latest update
for the version of Multiflash that you are running. For example

User Guide for Multiflash for Windows Help  189


About Multiflash
The About option provides information about the Multiflash software and your
license. It is particularly useful when reporting any problems to Infochem’s
technical support team.

Version Info shows the version numbers of the Multiflash dll (the calculation
engine) and the GUI.
License Info includes your serial number and the expiry date of the license.
Contact details gives information on how to contact Infochem,
Location, Configuration and Log Files shows the path for the Multiflash
application location and log files which are set by the
Tools/Preferences/General/Folders option. You should check that these folders
are set correctly if you experience problems in accessing data or messages. For
further information see the Multiflash Installation Guide.
The configuration file is an optional Multiflash command file called
MFCONFIG.dat file that is run when Multiflash starts. If it is not found the file
is not listed.
The .log file is the file which automatically records the input and output
information for any run.

190  Help User Guide for Multiflash for Windows


Website support
Our website, http://www.infochemuk.com can be used to report bugs found in
Multiflash and to see any bugs/problems we or other users have found. Where
these have been fixed we will tell you which release version does or will contain
the corrections. If we are still considering how to tackle the problem but know of
a work around we will advise you of our suggestions.

Technical support
If you need further assistance contact us at:
Infochem Computer Services Ltd.
Unit 4 The Flag Store
23 Queen Elizabeth Street
London SE1 2LP
UK
Telephone: +44 (0)20 7357 0800
Fax:+44 (0)20 7407 3927
e-mail: support@infochemuk.com

User Guide for Multiflash for Windows Help  191


Case studies - Pure component
data

Introduction
Although the primary purpose of Multiflash is to calculate the thermodynamic
properties of mixtures there may be occasions when you simply want to know
the properties of a pure component, particularly those from a particular data
source. This is quite simple.

Physical properties of a pure component


If you want the physical properties of a pure component, for example octane,
over a range of temperatures you must either:
 Define the problem in Multiflash
 Load an existing problem setup file containing the compound(s)
into Multiflash
 Load an existing problem setup file into Multiflash and edit the
problem to add the compound of interest
If you want to know the stored values for the temperature independent properties
or the correlation coefficients of a temperature dependent property choose Pure
Component Data from the Tools menu bar as described previously, see
“Viewing and editing pure component data” on page 66.

Defining the problem in Multiflash


Choose a suitable model for the problem. If you wish to obtain the properties as
set in the pure component databank choose the ideal gas and ideal solution
models. This is the Ideal Mixing model set.. With this option all properties
will be taken from the databank correlations except liquid Cp which is calculated
from the vapour phase model and the enthalpy of vaporisation. (If any other
model set is defined then only the pure component properties needed for that
model set will be taken from the bank. Other properties will be calculated using
the model set definitions which include models for the transport properties).

To specify the Ideal Mixing model set:


From the Select menu choose Model Set and click on the Activity Models tab
and select Ideal Mixing for the liquid phase and Perfect Gas for the gas phase.
For transport properties choose the mixing rules models.

User Guide for Multiflash for Windows Case studies - Pure component data  193
Click on the Define Model button and then on OK,
For more information on models see “Models” on page 27.

Specify the pure component of interest

From the Select menu choose Components or click on the toolbar button
Specify the data source and component in the Select Components window

The default data source is the Infodata databank. To change this click on the
down-arrow to the right of the data source box and choose another databank
from the list.
Type the component name in the Enter name box and press the enter key or click
the Add button. Other ways of selecting components are described in the section
Defining a mixture on page 61 .

Specifying the physical property output level


If you are interested in pure component data you will probably want to output all
available calculated properties.
Choose the Property Output option from the Select menu.
Check the Heat Capacity etc. box. This will also check all previous boxes.
Likewise, check the transport property boxes.

194  Case studies - Pure component data User Guide for Multiflash for Windows
Enter a composition for the stream
In this case where we have a pure component the composition is not important
provided it is a positive value. The input is summarised in file octane.mfl.
In the main window click on the Compositions button. And enter a value of 1.0
in the right-hand column of the table next to octane.

Carry out a the flash calculation


To obtain the properties of liquid octane on the saturation line you must carry out
a bubble point calculation at a specified temperature.
Enter a temperature, say 400K in the temperature box in the Conditions section.
Click on the on the Bubble point at fixed temperature toolbar button to
carry out the calculation

The reported pressure is the saturated vapour pressure at 400K, the other
properties are listed below the phase equilibrium output. As we are dealing with
a pure component exactly the same results would be obtained if we had specified
a dew point flash at the same temperature.
The next temperature should be entered in the text box in the Conditions section
and the bubble point flash repeated at this temperature.

Obtaining properties from the Pure Component


Data option
The output from a flash calculation does not directly contain any of the pure
component data values that are stored in a databank. To obtain this information
choose the Pure Component Data option from the Tools menu. The following
window is displayed

User Guide for Multiflash for Windows Case studies - Pure component data  195
As we are dealing with a single component this will be the only choice available
so making sure it is highlighted. Click on a property in the property list and
double-click or click on the Edit button to view or change the property. For
constants the properties are displayed in the current units but these can be
changed. For temperature-dependent properties such as the vapour pressure, the
identifier of the correlating equation and the equation coefficients are displayed.
It is usually not advisable to change correlation coefficients unless you are
entering new values from some alternative data source. The equation identifiers
are defined in the User Guide for Models and Physical Properties.
You can also print the properties in the results window by clicking Write to
Output. This output can then can be saved or copied into other files.
show components "OCTANE" data ;

1 OCTANE
MOLECULARWEIGHT 114.231 g/mol
TCRIT 569.32 K
PCRIT 2.49700E+06 Pa
VCRIT 2056.359 mol/m3
ACENTRICFACTOR .39690
TBOIL 398.82 K
HFORMATION -208446.9 J/mol
SSTANDARD 466.7252 J/mol/K
TMELT 216.37 K
HMELT 20740. J/mol
SMELT J/mol/K
CPMELT 50.00791 J/mol/K
VMELT 50814.48 m3/mol
RUNIQUAC 5.8486
QUNIQUAC 4.9360
THLWATER K
VHLWATER m3/mol
DIPOLEMOMENT .00000 debye
PARACHOR 351.40 (dyn cm-1) 1/4 cm3/mol
RADGYR 0.468040E-9 m
HOCASS .00000
GFORMATION 16000. J/mol
TTRIPLE 216.38 K
PTRIPLE 2.1083 Pa
HCOMBUSTION -5.07415E+06 J/mol
V25 6120.925 mol/m3
SOLUPAR 15448. (J/m3)1/2
SOLIDSOLUPAR (J/m3)1/2

196  Case studies - Pure component data User Guide for Multiflash for Windows
ZCRIT .2587676
REFRACTINDEX 1.39505
TFLASH 286.00 K
TAUTO 479.00 K
FLAMLOWER .80000 vol %
FLAMUPPER 6.5000 vol %
SPGRAVITY .7066211
EXPANSIVITY 1/K
OMARKS
OMBRKS
OMAPR
OMBPR
CNUMBER
REFVISCOSITY Pas
REFVISST Pas
REFVISPD Pas
REFVISTW Pas
REFVISLB Pas
LJEVISC J/K
LJBVISC m
EOSC
TYPE 1.
HDATUM 1.
SDATUM 1.
COMPREFNO 93.
MCRKS1
MCRKS2
MCRKS3
MCPR1
MCPR2
MCPR3
HYDOC
HYD1
HYD2
HYD3
ASSBETA
ASSEPSILON J/mol
ASSGAMMA
ASSDELTA 1/K
ASSFF
ASSAC J m3/(mol)2
ASSBC m3/mol
ASSKAPPA
SAFTKAPPA
SAFTEPSILON K
SAFTGAMMA
SAFTFF
SAFTEK 242.78 K
SAFTSIGMA 3.8373E-10 m
SAFTLAMBDA
SAFTM 3.8176
SAFTQ
SAFTFRQ
VSRKS1 m3/mol
VSRKS2 m3/mol/K
VSRKS3 m3 K/mol
VSPR1 m3/mol
VSPR2 m3/mol/K
VSPR3 m3 K/mol
CPIDEAL 1.0000 -32384.514 -3721.3925 4.0000
76.000 290.00 -1.3945 5.6330
-5.7709999 0.0000 0.0000 10000.
CPSOLID 5. -24. 1.94719999 -0.008536
1.34E-5 2.094E-8 20. 216.37
PSAT 3.0000 -7.9121099 1.38007 -3.8043499
-4.5013199 260.00 568.95001
HVAP 1.0000 54909.031 .37750 .00000
.00000 .00000 .00000 568.38098
LDENS 1.0000 2032.52 5407.5898 0.375
.00000 568.38098
LVISC 2.0000 -20.462999 1497.4 1.3789999
.00000 .00000 216.38 398.83
VVISC 1.0000 3.11910E-08 .92925 55.092
.00000 216.38 1000.0
LTHCOND 5.0000 .218676 -3.8266596E-04 2.1762921e-7
.00000 .00000 216.38 500.00

User Guide for Multiflash for Windows Case studies - Pure component data  197
VTHCOND 1.0000 -8758.0 .84480 -2.71210E+10
.00000 339.00 1000.0
STENSION 1.0000 5.27890E-02 1.2323 .00000
.00000 .00000 216.38 568.70
CPLIQUID 5.0000 224.83 -.1866 9.5891E-04
.00000 .00000 216.38 460.00
SDENS 5.0000 8340.9 -3.1515 .00000
.00000 .00000 133.15 216.38
CPSOLID 5.0000 -24.000 1.9472 -8.53600E-03
1.34000E-05 2.09400E-08 20.000 216.37
VIRIALCOEFF 1.0000 2.73900E-04 -5.65219E-04
-3.63347E-04 -1.16166E-05 2.58796E-06
284.38 1500.0
CARNUMBER 000111-65-9
FORMULA C8H18
FAMILYCODE AA
UNIFAC CH3 2 CH2 6

The output includes the pure component constant properties and the coefficients
for the temperature dependent property correlations. The definitions of the pure
component correlations are given in the User Guide for Models and Physical
Properties.

Excel interface
If you wish to produce tabular output or for graphical output for properties other
than phase boundaries the most convenient tool is the Multiflash Excel interface.
The example file PURE.xls shows how to construct the following table of
properties for octane.
Liquid properties on the saturation line
TEMP PRESSURE CP ENTHALPY DENSITY VISCOSITY THCOND SURTEN

Pa J/mol/K J/mol mol/m3 Pas W/m/K N/m


275 427.762 231.509 -47030.36 6254.853 0.000694456 0.129901386 0.023412311

300 2038.060 248.028 -41036.94 6116.615 0.000497383 0.123463157 0.020986387


325 7232.427 265.122 -34623.39 5970.103 0.000378339 0.117296964 0.01861228

350 20571.971 283.036 -27771.99 5813.892 0.000301535 0.111402808 0.016294025

375 49413.703 302.105 -20457.69 5646.112 0.000249338 0.105780689 0.014036467


400 104100.875 322.809 -12645.50 5464.231 0.000212348 0.100430606 0.01184554

425 197831.473 345.907 -4285.97 5264.678 0.000183867 0.09535256 0.009728721

450 346415.385 372.738 4694.13 5042.146 0.000160522 0.09054655 0.007695758

475 568184.088 405.943 14411.64 4788.154 0.000141175 0.086012576 0.005759993

500 884336.745 451.543 25074.63 4487.608 0.00012498 0.081750639 0.003941011

For more information on the Excel interface see the document: User Guide for
Multiflash Excel Interface.

198  Case studies - Pure component data User Guide for Multiflash for Windows
Case studies - Phase equilibria

Introduction
The main purpose of Multiflash is to determine the phase equilibria and
thermodynamic properties of complex mixtures. The simple tutorial shown
earlier, see “Getting Started” on page 11, was based on calculating the phase
equilibria of a binary hydrocarbon system. Here we will look at a more complex
hydrocarbon system and the phase equilibria of a polar mixture.

Oil and gas systems


Initially we will look at the phase envelope of a system which contains six
components: methane, ethane, propane, butane, hexane and decane.
As with the pure component data system discussed earlier the case study can be
set up interactively or by using a problem setup file. Only the former will be
discussed in detail, but the setup file, hycbvle.mfl, is provided and may be used
to load models and components or as an example for writing or editing your own
files for handling similar cases.
Specify the model
Any of the equation of state models would be suitable for handling this problem.
We have chosen the advanced version of RKS but very similar results would be
expected using advanced PR, PR78 or RKS.
Select Select on the menu, then
Select Model set from the sub-menu, followed by
Selecting Equations of state Tab from the Select Model set dialogue box and
again,
Selecting RKS (Advanced) with the default option for transport property
models.

Finally, click on OK in the message box and Close in the Model set dialogue
box.
Specify the components

User Guide for Multiflash for Windows Case studies - Phase equilibria  199
The INFODATA databank will be the default data source and this is acceptable
for this case study, so we can move directly to specifying the components. You
can activate the Select Components dialogue box by either

Clicking on the select components button


or
Selecting Select from the menu bar and
Selecting Components from the sub-menu

The various methods for selecting or searching for components have been shown
before, see “Selecting components” on page 62. As our current system contains
simple well known compounds they have been selected by
Highlighting the Name option button
Typing the component name in the Enter name text box
and pressing the enter key after the name to load it for Multiflash
or
Clicking on Add to load the component.
Click on Close to load the components
Define the composition
Click on Compositions in the Conditions section, and
Type in the compositions in the drop down table. For our example they are:

Methane 0.45
Ethane 0.20
Propane 0.10
Butane 0.10
Hexane 0.10
Decane 0.05

Calculating the bubble point curve


You can calculate the bubble point curve using a series of flash calculations or
by generating the phase envelope. Individual calculations may be a series of
bubble point calculations at either fixed temperature or fixed pressure.
Technically there is no particular reason to prefer one over the other; for this
particular example we will fix temperature and have our output pressure in bar.

200  Case studies - Phase equilibria User Guide for Multiflash for Windows
To change the pressure units, click on the Select input and output units button
, then in the Tab control click on Pressure and click in the Output option
button box against bar. (You can also change the input units for pressure if you
wish.)
Having specified the model, components, compositions and units,
Enter the first temperature, 250K, in the Conditions section and

Click on the T, Bubble button, .


Repeat the last two steps, increasing the temperature by 25K each time. At 375K
you still have a stable solution reported. By 400K the solution is reported to be
“marginally stable,” but by 425K you will notice a failure message
Bubble point at fixed T:
*** WARNING -20323 ***
Possible instability in solution (constrained flash)
*** ERROR 20334 ***
Constrained flash solution unstable
*** ERROR 20028 ***
Cannot solve flash problem - other unspecified error
*** ERROR 344 ***
The flash calculation has not converged.
Investigating the bubble point curve using reduced temperature steps you will
see that the solution is marginally stable up to 404K and fails at 406K. The
compositions of the liquid and gas phases are very similar, indicating that we are
probably close to the critical region. You can either investigate this area of the
phase envelope further using P,T flashes or move to calculating the dew point
curve to formulate a view of the phase envelope.

Calculating the dew point curve


As with the bubble point curve, the dew point curve can be calculated from a
series of dew point calculations at either fixed temperature or pressure. Again we
will use dew point calculations at fixed temperature for this example
As with the bubble point curve, start at 275K and calculate the dew point at 25K
intervals using the T, dew point button, .
This time the dew point calculation fails to converge at 475K. Returning to the
last successful convergence at 450K, increase the temperature in 5K steps. This
time the first failure to converge occurs at 470K.
We know that it is probable that the critical point is around 400K so it is a
reasonable assumption that this system has a significant retrograde region. Check
this by repeating the dew point calculation at 450K but this time by using the
fixed phase fraction route and looking for the upper retrograde solution.
To do this:

Click on the fixed phase flash at fixed temperature button, ’


In the dialogue box which is then activated,
Click on the roll down arrow to the right of Select phase and from the drop
down menu click on LIQUID1. Choose Mole Fraction under Select Basis and
enter a phase fraction of 0.0 in the text box and click on the Upper retrograde
type of solution. This fixed phase flash simulates a dew point calculation.

User Guide for Multiflash for Windows Case studies - Phase equilibria  201
Click on Do flash.
The calculated dew point pressure is now 114.527 bar for the retrograde region,
whereas for the “normal” dew point the calculated pressure was 28.1796 bar.
This confirms that we have a retrograde region for this system.
To calculate the full dew point curve you therefore need to increase the
temperature at 1K intervals above 460K, using the normal T, dew point flash,
until you meet the first convergence failure, at which point you are just beyond
the cricondentherm. You should now switch to fixed phase fraction flashes at
fixed temperature, set the options as described and reduce the temperature in
small steps. This will define the retrograde dew point curve to 403K.

Phase envelope
The same problem can be investigated more easily using the phase envelope
calculator. Set up the problem as before, but instead of carrying out individual
dew and bubble point calculations

Select Calculate/Phase Envelope or click on the Phase Envelope button,


Click on V/L Autoplot and Click on Yes when the message box appears asking if
more points should be calculated. The resulting plot includes the dew and bubble
point lines and the critical point is labelled.

The output in the results window will allow you do identify the critical point
explicitly

202  Case studies - Phase equilibria User Guide for Multiflash for Windows
54C 402.732 147.11

Adding water to the system


It is quite common in the oil and gas industry to find some water present with
hydrocarbon systems, which will probably form a separate liquid phase. In this
case study we can add water and look for the water dew point line.
To add water to the input stream
With the hydrocarbon case study defined,
Click on the Select component button
In the Select components dialogue box, enter water in the Enter name text box
then press the enter key or click on Add
Click on Close
In the main window, click on composition and in the drop down table enter a
composition for water, say 0.2.

Calculating the water dew point line


If there are more than two liquid phases present then using Multiflash to
calculate the dew point, defining either temperature or pressure, will result in
finding the primary dew point, in this case the hydrocarbon liquid dew point. To
find the dew point for the second liquid phase, in this case water, you must use
the fixed phase fraction flash and look for the temperature or pressure where
there is a zero amount of that phase. Therefore, for the water dew point,
Enter 300K in the Conditions section of the main window.

Click on the fixed phase fraction flash at fixed temperature button, .


In the resulting dialogue box, click on the arrow under Select phase and select
water. Under Select basis choose Mole Fraction and enter a phase fraction of
0.0. The “normal” type of solution should be satisfactory for the water dew
point.

Click on Do flash
Repeat the calculation at increasing temperatures to obtain the water dew point
line.
Alternatively, plot the water dew point line using the Phase Envelope calculator
by selecting the water phase at 0.0 molar phase fraction.

User Guide for Multiflash for Windows Case studies - Phase equilibria  203
Including a petroleum fraction
The heaviest component in our hydrocarbon stream is decane, but often the
heavier end of oil or gas condensate systems is defined as a petroleum fraction
rather than as a single specified component. Each petroleum fraction will consist
of a mixture of components and the fraction as a whole will be defined in terms
of its molecular weight, density and possibly boiling point, although the first two
properties are the most likely to be reported. Often the heavy end will be
reported as a single fraction, e.g. C7+, although sometimes a more detailed
analysis may be available breaking the heavy end down into several fractions.
Multiflash includes petroleum fraction correlations which may be used to predict
the thermodynamic and transport properties of the fraction based on the data
available, see “Defining petroleum fractions” on page 105.
For this case study we will remove decane and water from our stream and
replace decane with a petroleum fraction of molecular weight 234 and specific
gravity 0.838.
To delete components
Assuming the stream definition for the last case study is loaded
Click on Select components button
In the Select Components dialogue box, select water in the list of components
selected for Multiflash, then click on Delete. This will remove water from the
list. Repeat this for decane. You should now be left with methane, ethane,
propane, butane and hexane.
To add the petroleum fraction
In the Select components dialogue box, click the “Add/Remove Petroleum
Fractions” button to launch the Petroleum Fraction Input form.
Enter C7+ in the Component name column, 234 for Molecular Weight and
0.838 for specific gravity on the form.

204  Case studies - Phase equilibria User Guide for Multiflash for Windows
Click on Calculate or OK button to include the fraction in the defined stream. If
Calculate button is clicked, the rest of the physical properties which will be
calculated are displayed in black on the form. The user-entered values are in red.
Click on Close
In the main window click on Composition and enter 0.05 for the amount of
C7+.
The petroleum fraction is now included in the stream definition and the phase
envelope calculation may be repeated with the new stream, although the
cricondenbar, cricondentherm and retrograde regions will now be different.
If you only know that the petroleum fraction is C7+ but do not have a reported
MW or specific gravity you can simply fill in 7 as the Carbon number as follows
and click Calculate button

and Multiflash will determine the properties from a set of standard tables. The
calculated values by Multiflash are displayed in black and user-entered values
are in red.

User Guide for Multiflash for Windows Case studies - Phase equilibria  205
Other flash calculations
Many engineering applications involve a wide range of flash calculations, not
just those related to determining the phase envelope. For example, an isenthalpic
flash at fixed pressure can be used to simulate the expansion of a stream through
a valve
Basing this case study on the simple hydrocarbon stream (and model) we first
defined
Methane 0.45
Ethane 0.20
Propane 0.10
Butane 0.10
Hexane 0.10
Decane 0.05
we must initially carry out a P,T flash at the upstream conditions to determine
the enthalpy and then a P,H flash at the exit pressure.
Having loaded the model set and stream information
Enter the upstream temperature, 300K and pressure, 50 bar
Click on the P,T flash button
The calculated total enthalpy is -10539.6 J/mol

206  Case studies - Phase equilibria User Guide for Multiflash for Windows
The stream is then throttled isenthalpically to 10 bar, by
Entering the new pressure, 10 bar under Conditions
Entering the calculated enthalpy under Conditions
Clicking on the P,H flash button
The calculated temperature at outlet has dropped to 273.134K.

You can also add the isenthalpic boundary for -10539.6 J/mol to your phase
envelope.

User Guide for Multiflash for Windows Case studies - Phase equilibria  207
PVT Analysis
Many users will receive a PVT Analysis for the composition of an oil or gas
from one of the PVT laboratories and wish to use this as input to Multiflash.
These reports follow a fairly standard format and the PVT Lab Analysis form
endeavours to reproduce this to make entering information as easy as possible.
The facility to add or delete components from the generated list is also useful.
The form is discussed in detail in section “PVT Lab Analysis” on page 85.
The case study we are considering here is based on a problem setup file called
pvt_anal2.mfl.
To enter a PVT Analysis when you have no measured n-paraffin distribution
either choose the Select/PVT Lab Input menu option or click on the icon.
The Lab Analysis form will then be displayed.

Initially we will consider a case where you only have a single fluid composition.
First select the data source for your discrete (i.e. well-defined) pure components.

208  Case studies - Phase equilibria User Guide for Multiflash for Windows
This can be Infodata or DIPPR and we have chosen Infodata. Next at the top of
the column headed Single fluid choose either mass or mol % as appropriate by
clicking on the down arrow. If your PVT report offers a choice of mole or mass
%, it is the mass % that is the experimentally measured data and should be given
preference for separator oils. Next enter the compositions of the discrete
components and the compositions of the petroleum cuts. In the form the
pseudocomponents or single carbon number (SCN) cuts are labelled C6, C7 etc.
In your PVT Laboratory report they may be referred to as hexanes, heptanes,
etc., with the heaviest being labelled as a plus fraction such as C20+ or
eicosanes+. In our example the heaviest SCN is C20.
The overall percentage will be totalled as you enter the compositions. If the final
total is not 100 you will be offered the opportunity to normalise the compositions
when you characterise the fluid.
You can enter further information to define the stream, such as the molecular
weight of the Stock Tank Oil (STO), the total fluid or the heaviest SCN or the
specific gravity of either the heaviest SCN or the STO. We have provided
general advice on when such data should be supplied in “Fluid composition” on
page 90. As the fluid in question has a heavy end (C6+) which comprises more
than 50% of the stream we should supply this information if possible. We have
therefore entered the molecular weight of the heaviest SCN but if you have the
molecular weight of the total fluid available this may be preferable as this is
again the measured quantity.
You are now ready to define the basis of your characterisation by choosing
where in your existing analysis you want to start redistributing the remaining
fluid into new pseudocomponents and how many pseudocomponents you want to
split this heavy end into. We’ve started with the simplest case where we have
chosen to start the split at the heaviest SCN and only allocate one
pseudocomponent. Effectively we are only allocating physical properties to the
existing SCNs. Click on the Do Characterisation button and you will see a
message box such as

followed by a screenshot of the experimental data and the fitted distribution

User Guide for Multiflash for Windows Case studies - Phase equilibria  209
Click on OK and Close to return to the main window where the new fluid
composition will be reported

The output lists the components and their composition in the units requested.
The additional column indicates the lower boundaries of the particular cut, for
example C6 comprises the cut from C5.5 to C6.5.
Properties of the individual pseudocomponents may be viewed using Tools/Pure
Component Data as usual and further calculations can be carried out on the basis
of this characterisation.
At this point, having successfully characterised the fluid, you can also save the
input as an .mfl file.
A useful way of seeing how changing characterisations alter the results of phase
calculations is to use the phase envelope generator. For instance, plot the phase
envelope of this fluid.

You can investigate various aspects of the characterisation and the sensitivity of
the phase envelope to changing these.

210  Case studies - Phase equilibria User Guide for Multiflash for Windows
You can include an n-paraffin distribution by ticking the Estimate Wax Content
box located in the PVT analysis form. Set the starting point for the n-paraffin to
N6 with 15 n-paraffins. In this case the names and compositions of the fraction
cuts will differ,

If you return to the PVT Lab Analysis form and instead of the heaviest SCN
choose "Single fluid" and enter a MW of 68. Do the characterisation and plot the
phase envelope. Then see what the effect is of extending the heaviest SCN to
further fractions, by leaving C20 as the start of the pseudocomponents but
choosing to split it into 5 pseudocomponents. Alternatively you can group the
components by starting the pseudocomponent split at C8 and grouping the plus
fraction into 15 pseudocomponents. You can see that this alters the cricondenbar
but the major effect is on the cricondentherm.

User Guide for Multiflash for Windows Case studies - Phase equilibria  211
Next, return to the original fluid definition and re-plot the phase envelope, then
in the PVT Analysis form enter a water cut. This is defined in terms of the
volume percentage of the total fluid that is water. In this case choose 3 %. In the
main window plot the new phase envelope and the water phase. boundary.

Finally, return to the original fluid analysis again and this time add a separator
gas. Here we will look at a simple problem where the gas is 100 % methane
added at a GOR of 100 m3/m3. Move to the Liquid + Gas tab and enter 100 next
to methane in the left hand column headed "Gas" and in the Recombined fluid
section of the PVT form set the GOR units to m3/m3 and enter 100.

212  Case studies - Phase equilibria User Guide for Multiflash for Windows
Do the characterisation and return to the main window and plot the new phase
envelope by clicking on VLE AutoPlot.

User defined carbon number cuts


In the previous examples the carbon number cuts, SCN, have been defined by
the software. If you wish you can over-ride these by choosing your own SCN.
Starting with the pvt_anal2.mfl file go to the PVT Analysis form and change the
starting point for the pseudocomponents to C6 with five pseudocomponents. Do
the characterisation and return to the main window; you will see that the plus
fraction has been defined with five SCN cuts

Now, plot the phase envelope and then return to the PVT Analysis. This time
check the box for user defined cuts. Clicking on "Define Cuts" button will show
a drop down box that allows you to set the SCN cuts for the specified number of

User Guide for Multiflash for Windows Case studies - Phase equilibria  213
pseudo components (in this case 5).

After setting the SCN to 6, 10, 20, 30, and 40, and performing the
characterization, the results window shows the amounts and starting points for

the new SCN.


For these user defined SCNs the phase envelope is identical to the original.

A more distorted distribution (e.g., with cuts at SCN of 6, 30, 35, 37, and 40),
may affect the phase envelope more.

214  Case studies - Phase equilibria User Guide for Multiflash for Windows
TBP curves
If your PVT analysis data, instead of a detailed SCN/Composition report, is
based on assay data, such as a True Boiling Point (TBP) curve or a D86 analysis,
you can still enter this and convert the data to fixed carbon number cuts.
Go to the PVT Analysis and click on the tab marked Distillation Curves and
enter your data. This case study is based on the TBP.mfl file, which has volume
% and boiling point data but no Molecular weight or specific gravity.

Once you have entered this, proceed as usual and do the characterisation If this is
successful the plot will show the comparison of data and fitted distribution,

User Guide for Multiflash for Windows Case studies - Phase equilibria  215
and the carbon number distribution will be reported in the results window.

Once you have defined a fluid model you can carry out calculations or plot the
phase boundary as for any fluid.

Black Oil Analysis


The black oil analysis offers the user an opportunity to take a very limited input
specification (known as Black Oil input) for a condensate or oil, and from this
generate a normal compositional analysis. Our example is based on the
blackoil.mfl file.
The minimum required input is the gas gravity (relative to air), the STO specific
gravity (relative to water) at 60F and 14.7 psi and the solution GOR. The latter is
the volume of gas produced at surface standard conditions divided by the volume
of oil entering the stock tank at standard conditions. It is often referred to as Rs.

216  Case studies - Phase equilibria User Guide for Multiflash for Windows
The remainder of the form is the standard PVT, except that you do not provide
molecular weight or specific gravity. You can choose the pseudocomponent
distribution as normal, depending on the final application. In this case the split is
15 fractions from C6+. Clicking on Do Characterisation generates the message
that the characterisation has been successfully completed – in this case there is
no compositional information to generate the compositional plot. The new
composition is echoed in the main window and the phase envelope can be
plotted as before.

Additional data can be added such as the Watson K-factor and/or the Gas
analysis. Plotting the phase envelopes shows the effect of including this data.

User Guide for Multiflash for Windows Case studies - Phase equilibria  217
Delumping tool – Case study

To begin this case study a simple fluid will be used. Only one component is
present in the plus fraction. The composition of the fluid is given in the
following table.

Example fluid:
Component Amount (mol)
Methane 95
Ethane 3
Propane 2
Co2 0.1
N2 0.15
C6+ 5

The C6+ fraction has the following properties:


Tc (K) Pc (Pa) Acentric factor Molecular weight
863 1.5e6 0.9 250
All the remaining properties will be calculated by Multiflash once this
information is entered in the Select->Components tool, using the Infochem
petroleum correlations.
Save the file as “original_fluid.mfl”

After defining the fluid, click the delump button .

Click the “Delump” button.

218  Case studies - Phase equilibria User Guide for Multiflash for Windows
From only one component in the plus fraction, 60 components were generated.
Now, click “Close” to close the delump tool. When prompted to use the
delumped fluid as it is click “yes”.
The resulting fluid may be saved into an MFL file for future reference with the
name “full_delumped.mfl”.
Open the Delumping tool again by clicking the “Delump” button. Click the
“Open PVT tool” button. The following window will appear:

. Then, click “Do Characterisation” to characterise the fluid with the default
settings. Note that the first petroleum fraction is C14, which states that the
original C6+ was heavier than the name implied.
After characterising the fluid, with the default settings the resulting components
and amounts are displayed in Multiflash main window:

User Guide for Multiflash for Windows Case studies - Phase equilibria  219
This fluid can now be saved in file named “delump_rechar.mfl”.

A comparison of the different fluids can now be made, in terms of the shape of
the phase envelope. As an example the default RKS (Advanced) model is used.

Note that this is a very simple example but which highlights the fact that fluids
with only one component in the plus fraction can be delumped into a high
number of components. Also the re-characterisation can yield unexpected
results. It is advisable to use fluids with more components present in the plus
fraction.
Another example, with a more complex fluid and with waxes can be used.
Open the file “wax.mfl” that is shipped with Multiflash.
Use the same procedure as described above. The resulting phase envelopes have
a different behaviour than the ones shown in the simple example:

220  Case studies - Phase equilibria User Guide for Multiflash for Windows
In this example 30 components were present in the plus fraction

Refrigerant mixtures
Several of our customers have used Multiflash to determine the properties of
refrigerants. A number of pure refrigerants are included in the INFODATA
databank and in the CSMA model. We have also fitted data for a large number of
refrigerant mixtures and the BIPs have been stored in the INFOBIPS databank.
For mixtures we have used the RKSA model to determine the thermodynamic
properties of the mixture except for the liquid volume/density which is
calculated using the ideal solution model. This model combination has been
included in a model configuration file called refrig.mfl.
To determine the properties of any refrigerant mixture, first load refrig.mfl using
File/Load problem setup. The refrigerant mixture can then be defined as normal
using Select Components and providing the composition. However, there are
several well defined refrigerant mixtures which have been allocated refrigerant
numbers e.g. R407A. This is a mixture of the pure refrigerants, R32, R125 and
R134A, with a fixed composition (in mass percentages) of 20/40/40. To help our
users we have set up .mfl files defining components/compositions for

R401A
R401B
R401C
R402A
R402B
R404A
R405A
R406A
R407A
R407B
R407C
R407D
R407E
R408A
R409A
R409B
R410A
R410B
R411A

User Guide for Multiflash for Windows Case studies - Phase equilibria  221
R411B
R414B
R417A
R500
R501
R502
R503
R504
R507A
R508A
R508B

To determine the dew point properties of R407A


Load refrig.mfl
Load R407A.mfl
Specify pressure, e.g. 25 bar or 25e5 Pa
Click on the P, Dew point flash icon or menu item
And the results will be displayed in the results window
Dew point at fixed P:

Polar systems
Multiflash is equally applicable to polar mixtures, although for systems of this
type an activity model, such as Wilson-E, NRTL, UNIQUAC or UNIFAC, plus
binary interaction parameters is usually needed to obtain accurate results. For the
first three models, Multiflash has BIPs available for many binary pairs but where
these are missing you need to supply them. The UNIFAC BIPs are generated
from group structure. Before carrying out phase equilibrium calculations for
polar streams using an activity coefficient model we recommend that you check
the availability of BIPs for your system and look up interaction parameters for
the binary pairs where none are available from INFOBIPs. An alternative is to fit
experimental data to a model used in Multiflash or generate data from UNIFAC
and fit this to the model of your choice. We have provided sample spreadsheets
which allow you to do both using the Excel interface.

222  Case studies - Phase equilibria User Guide for Multiflash for Windows
Reference: Dechema A good source of experimental data and BIPs is the series of volumes in the
Chemistry Data Series “Chemistry Data Series”, published by Dechema. The UNIFAC model will
provide estimates of vapour-liquid and liquid-liquid equilibria without the need
Vols I to XIV, Dechema
for BIPs.

Modelling a polar mixture


Using INFOBIPS
As polar mixtures are usually non-ideal you may have some information on their
phase behaviour and wish to know how best to reproduce this. A simple example
is the acetone/water mixture. Described in ACETH2O.mfl. The Dechema data
series referred to has several sets of data for this system. We have taken, at
random, the data by Kojima et al, Kagaku Kogaku 32, 149 (1968) and based the
example on one experimental point
Pressure 760 mmHg
Temperature 60.39 degC
x(acetone) 0.4000
y(acetone) 0.8426
We can use Multiflash to see how well different models and different sets of
parameters represent this data. Depending on the relative importance to your
application of accurate temperature or phase composition we can fix P and x and
calculate T and y using a bubble point calculation at fixed P or fix P and T and
calculate x and y with a P,T flash.
We would usually suggest using activity coefficient models to predict phase
behaviour for non-ideal mixtures. If you have BIPs available either from
INFOBIPS or from any other source for any particular activity model then this is
the model you should use.
Specify the mixture by
Clicking on the Select components button
With the Infochem fluids databank as the default data source
Type acetone in the Enter name text box and
Click on the Add button.
Select water in the same way
Click on Close
In the Composition drop-down table enter 0.4 mol of acetone and 0.6 mol of
water.
Set the units (from Select/Units from the menu option or the select units button)
in the Tab control so that the input and output temperatures are in degC and the
pressures in mmHg.
Enter 760 mmHg as the pressure
Select a suitable model
Select in order Select/Model Set/Activity Models/WilsonE to choose the Wilson
E model
To check whether BIPs are stored in INFOBIPs for this mixture go to
Tools/BIPs and when the Show BIP Value box appears click on Edit.

User Guide for Multiflash for Windows Case studies - Phase equilibria  223
As you can see BIPs are available.
Click on the P, Bubble point flash button and the model prediction is a
temperature of 61.407 degC and a vapour phase fraction of acetone of 0.821045.
This is in reasonable agreement with the experimental results. It may be possible
to improve prediction by over-writing the stored BIPs with those reported in
Dechema for that particular experimental dataset, remembering that the BIPs
must be in the correct units.
You can repeat the calculation using the UNIFAC model where BIPs are
calculated on the basis of group structure. The corresponding results are a bubble
point temperature of 60.878 degC and a vapour phase fraction of acetone of
0.823994.

Entering BIPs
You may have a mixture where there are no stored BIPs. Take for example the
system carbon tetrachloride/hexane. If you repeat the earlier steps to select
components, units and models and again look at the BIPs using the Tools options
you will see that for the WilsonE model no BIPs are available.

Click on the P, Bubble point flash button to see the model prediction using the
default, BIPs = 0.0.
For a mixture of 0.325 mole carbon tetrachloride and 0.675 mole hexane the
predicted result is a bubble point temperature at 1 bar of 344.295K and a vapour
phase fraction of carbon tetrachloride of .2697. The experimental data is
342.75K with y =0.286.
However, for this data set we have fitted data for the WilsonE model of 266.61
and 461.91 J/mol. You can enter these BIPs into Multiflash using the Tools
/BIPs from the menu bar.
Select Tools, then select BIPs
In the Show BIP values box highlight WILSONBIP2 and click on Edit

224  Case studies - Phase equilibria User Guide for Multiflash for Windows
Remember to ensure that you WilsonBIP2 is the name recognised by Multiflash for BIPs relating to the
have specified the correct Wilson E model. This model has two BIPs, which may be expressed as constant,
units for the numeric values of linear or quadratic functions of temperature. The fitted BIPs like those from
the BIPs Dechema are temperature independent, i.e. constant. The BIPs are asymmetric
and not interchangeable. It is therefore important that if the BIP values are
reported for carbon tetrachloride as component 1, then the binary pair is entered
with carbon tetrachloride as the first component.
If your BIP units are not the default J/mol change the units by clicking on the
Units button in the BIP box

Enter the new BIPs in the selected units

Click on OK and then on Close in the Show BIP values box.


Click again on the P, bubble point button.
This time the predicted bubble point temperature is 342.85K and the gas phase
composition is 0.288. These give a better prediction of the bubble point pressure
and improvement in the prediction of the gas phase composition of acetone.
The calculation can be repeated for each of the activity methods, including
UNIFAC. To do this:
Select the new model set, this will clear the previous model and BIPs, but
retain the components, compositions and units.
Calculate the P, bubble point without BIPs
Remember NRTL has 3 Enter BIPs, as given in the table below (in J/mol), using the Tools/BIPs option.
constant coefficients, not 2: The bipset names are the model name followed by BIP, e.g. NRTLBIP3,
two asymmetric and one UNIQUACBIP2. BIPs are not required for UNIFAC as they are generated from
symmetric group contributions.
Calculate the bubble point temperature again. with the BIPs.
You should reproduce the following results when the BIPs are entered in J/mol.

Temperature/K y1
Wilson E No BIPs 344.3 .270
BIPs: 266.6, 461.9 342.85 0.288

UNIQUAC (VLE) No BIPs 344.2 0.271


BIPs: 208.5, -12.84 342.9 0.288

User Guide for Multiflash for Windows Case studies - Phase equilibria  225
NRTL (VLE) No BIPs 344.0 0.273
BIPs: 276.8, 284.9, .3 342.7 0.287

UNIFAC (VLE) 343.4 0.279

You can see from the results the importance of using interaction parameters for
non-ideal systems. All the calculations were carried out with the ideal model for
the vapour phase. For this system using the Virial (HOC) model, or RK for the
vapour phase model does not give significant differences. However, for some
components, such as acetic acid which may dimerise, using the Virial (HOC)
model would be beneficial.
You could also enter different BIPs for this system and examine the sensitivity
of the results to these variations.

Liquid-liquid equilibria
Many non-ideal polar systems exhibit liquid-liquid equilibria. To model these
systems you must choose an activity model capable of predicting two liquid
phases, the Wilson model cannot do this.
Two suitable models are UNIQUAC LLE and NRTL LLE. The LLE version of
NRTL usually has the  parameter set to 0.2 by default. Again to obtain
realistic results you should enter BIPs and we have incorporated BIP data for
over 300 systems into our INFOLLBIPs databank. If you take UNIQUAC or
NRTL parameters taken from the Dechema Chemistry data Series they will be
in K so you must choose the correct input units or convert them by multiplying
by the gas constant (8.314 JK-1mol-1).
A typical mixture which exhibits liquid/liquid behaviour is butanol/water
Dechema Chemistry Data Series. Volume V, Part 1, page 236.
If you have set up a problem with only one gas and one liquid phase defined you
may see a warning message above a vapour-liquid or one liquid phase solution.
Flash at fixed P and T:
*** WARNING -20001 ***
Unstable solution, more phases exist.
T =298.25K P=1.00000E+05Pa ? CONVERGED ..UNSTABLE
This instability warning indicates that you should consider looking for another
liquid phase, and define a second phase descriptor for this. Use the Select Model
Sets, or the model configuration files provided for activity methods, to ensure
that two liquid phases are available.
To carry out the case study in Multiflash
Select the UNIQUAC LLE model
Select butanol and water from INFODATA
Set the butanol and water compositions to .5 mol each
You can check that BIPs are available using the Tools/BIP
option.
Set the temperature to 298.15K and the pressure to 1e5 Pa.
Carry out a P,T flash.
The mixture will be a single liquid phase.
If you increase the water concentration to 0.7 with 0.3 mole butanol and repeat
the two phase flash you get a liquid-liquid solution.

226  Case studies - Phase equilibria User Guide for Multiflash for Windows
Vapour-liquid-liquid equilibria
The situation is a little more complicated if you have VLLE. None of the activity
models that can handle VLLE do this well without specific tuning of the BIPs.
The VLE variants of UNIQUAC and NRTL are configured to be used with GAS
and Liquid1 and the LLE variants with Liquid1 and Liquid2. To calculate VLLE
with either you must first "Switch-on" the missing phase.

The only difference is the source of BIPs and we have increased the options by
allowing two BIP databanks to be in force at any time. The LLE model options
are configured to first search INFOLLBIPs, then to supplement any missing
BIPs from INFOBIPs. The VLE variants are configured only to search
INFOBIPs. For VLLE it may therefore be preferable to use the LLE model
variant. However, it is difficult to make an absolute recommendation, trying both
approaches and assessing the differences might be useful. You can also add
INFOLLBIPS to a VLE variant using Tools/Command and entering
bipdata INFOBIPS INFOLLBIPS;

Azeotropes
You can use Multiflash to identify azeotropes; the temperature and pressure
where the composition of the liquid and gas phase are identical. They can be
investigated by carrying out a series of flash calculations but this is time-
consuming. For binary azeotropes you might wish to consider using the Excel
interface. Below is a plot of gas phase versus liquid phase composition for the
propanol water system using Excel. The azeotrope is clearly identified at a mole
fraction of 0.42 propanol.

User Guide for Multiflash for Windows Case studies - Phase equilibria  227
Propanol - Water
1
0.9
0.8
0.7

y,propanol
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1

x, propanol

You can vary the pressure or temperature and see the effect on the azeotropic
point, or investigate the effect of adding a third component.

Eutectics
Similarly, you can use Multiflash to determine a eutectic, although again this is
most easily seen using an Excel spreadsheet. An example would be a mixture of
benzene and naphthalene. In addition to defining a fluid phase model, for
example RKSA, you also need to allocate the freeze-out model to each
component. Using the Multiflash functions in Excel you then carry out a series
of calculations to identify, for a given pressure, the temperature at which solid
benzene and solid naphthalene form. A plot of the predicted temperature versus
composition for both shows the eutectic point. For the RKSA fluid phase model
and 1 bar this is predicted to be at 296.3K and a mole fraction of benzene of
.8626. The Regular Solution model could also be used for this particular mixture.
For this fluid phase model the predicted eutectic at 1 bar is 296.4K and .8638
mole fraction of benzene. As the plot below shows the results for the models are
virtually indistinguishable.

Benzene-Naphthalene eutectic

370.00

350.00

330.00
T/K

310.00

290.00

270.00

250.00
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x Benzene

Polymers
The inclusion of the PC-SAFT equation of state in Multiflash extended
Multiflash applications to the calculation of the phase behaviour of polymers,
solvents and gases. PC-SAFT is a complex equation and to be able to develop a
robust implementation capable of predicting multiple phases is unusual. Owing

228  Case studies - Phase equilibria User Guide for Multiflash for Windows
to the high molecular weight, and correspondingly low mole fractions, of
polymers in solution considerable effort has gone into improving the phase
algorithms in Multiflash, but we are aware that further improvements may be
necessary.

Data input
The Infochem databanks do not contain any data for polymer components.
Polymers should be defined using the Multiflash User Defined component route
(Select/Components) and either saved as part of a complete .mfl file or a partial
file containing the polymer data only.
The required input data are:
Critical temperature (TCRIT), critical pressure (PCRIT), acentric factor
(ACENTRICFACTOR),
PC-SAFT parameters (SAFTEK, SAFTSIGMA, SAFTM, SAFTKAPPA,
SAFTEPSILON, SAFTFF)
Ideal gas Cp (CPIDEAL).
Users should note that TCRIT, PCRIT and ACENTRICFACTOR are necessary
to generate starting values for flash calculations but do not affect the computed
results from PC-SAFT. Also SAFTKAPPA, SAFTEPSILON and SAFTFF are
only needed for associating components.
If your system is polydisperse, i.e. has the same polymer but with a range of
molecular weight, then you can enter several polymers with varying properties,
each called by a different name. This is analogous to setting up different
petroleum fractions, although we do not yet have a facility to help the user set up
the data for polymers.
Polymers are not well defined chemical compounds but rather a distribution of
chain molecules of varying molecular weight. In Multiflash, polymers must be
represented by one or more pseudocomponents which must be set up as user-
defined components.
Using PC-SAFT, every pseudocomponent for a given polymer must be assigned
the same values of the pure-compound parameters SAFTSIGMA (in metres, not
Ångstrom units) and SAFTEK. In addition, the SAFTM parameter must be
specified. This is normally quoted as a ratio to the molecular weight, so it has to
be calculated for each polymer pseudocomponent knowing the molecular weight.
For polystyrene, for example, Gross and Sadowski give the ratio as 0.019, so for
a polystyrene pseudocomponent of molecular weight 100000, the SAFTM
parameter should be set to 1000000.019=1900, etc.
Our example polymer.mfl describes a simple binary of polystyrene plus butane.
The required properties of polystyrene are included in the input file, as are the
pure component SAFT parameters for butane. Load the input file in the normal
way and carry out a P,T flash at the input conditions supplied. The results show a
liquid-liquid split as expected.

User Guide for Multiflash for Windows Case studies - Phase equilibria  229
You can also carry other flashes, such as a bubble point calculation

PC-SAFT has two interaction parameters. No interaction parameters for PC-


SAFT are stored, both are set to zero by default. As with all Multiflash models it
is possible for the user to enter BIPs through the Tools/BIP command or as part
of the input file. As with CPA, in most cases it is the parameter, SAFTBIP that is
adjusted. As the polymer is non-volatile, changing the BIP may affect the phase
distribution and phase compositions more than the bubble point prediction. The
result of altering the SAFTBIP from 0.0 to .05 for our sample system is shown
below

A slightly more complex system, polymer2.mfl, shows the unusual ability of


Multiflash to deal with complex systems. In this example pentane replaces
Butane as a solvent and we introduce the styrene monomer and water as a fourth
component. In this case a bubble point calculation predicts the presence of four
phases.

230  Case studies - Phase equilibria User Guide for Multiflash for Windows
The series of papers by Sadowski et al, detailed in the "Models and Physical
Properties Guide”, are a useful source of input parameters for PC-SAFT for
several polymers.
N.B. Occasionally the phase labels, LIQUID1 and LIQUID2 may be
interchanged. If this causes confusion they can be forced to stay the same by
defining a key component for one of the liquid phases. You can use the
Tools/Command menu option and enter the command
Key liquid2 heaviest:
Until the advent of PC-SAFT, Flory-Huggins was sometimes used for polymer
calculations. This is still possible but not recommended. To apply the Flory
Huggins model, in addition to the critical parameters required by the Multiflash
algorithms the additional data needed are: vapour pressure (PSAT), saturated
liquid density (LDENS), solubility parameter (SOLUPAR) and molar volume at
25°C (V25).
Estimated properties have been included in the file polymer3.mfl for polystyrene
and the predicted bubble point for the polystyrene-butane binary shown below.

Co-Polymers
PC-SAFT can also be applied to co-polymers. Multiflash allows the user to
define up to four polymer segments which can be used to define any number of
homopolymers or copolymers. If the polymer is formed from only one type of
segment, it is a homopolymer of that segment; if it is formed of two or more
types of segment, it is a copolymer.
We will look at an example where the constituent segments are ethylene and
propylene (PE and PP). The appropriate PC-SAFT parameters were taken from
papers by Sadowski et al as are the BIPs A co-polymer structure (PEP1) has to
be defined. The physical properties of the co-polymer must also be defined. The
MW, T, P and acentric factor are required although the latter three are only used
as starting values and arbitrary numbers may be assigned as long as Tc is high
and Pc very low in line with the low volatility of polymers. Next a “template” has

User Guide for Multiflash for Windows Case studies - Phase equilibria  231
to be created to indicate the structure of the co-polymer. This is done by
specifying "Bond Fractions", i.e., the total fraction of bonds between different
type segments. For example, in the case where there are regular alternating
ethylene and propylene segments, the fraction of PP-PE bonds is equal to 1.0 (all
bonds are of type PP-PE). Conversely, the fractions of direct PE-PE or PP-PP
bonds will be equal to zero (no PE-PE or PP-PP bonds are present because the
monomers alternate).
To specify the bond structure, we select Tools/Pure Component Data/SAFT
bond fractions. After clicking on Edit we get

The names of the constituent segments are entered as shown. The pattern of bond
fractions shown is that for an alternating co-polymer as described above. In the
case of a random co-polymer, the bond fraction pattern would be:
Bond Fracs
0.25
0.5 0.25
Our input file, copol.mfl, has a co-polymer with a MW of 96400 g/mol. It is
present at 15 wt% in a solvent, 1-butene, at 85 wt%. Calculation of the polymer
cloud point is a difficult calculation. You can calculate this using a series of P,T
flashes to see, for a given temperature, the pressure at which a second liquid
phase appears or disappears. Another useful technique is to set the temperature
of interest and calculate a bubble point. If you only have a gas and one liquid
phase then changing the pressure will not result in a liquid-liquid separation. If at
the bubble point you have gas and two liquid phases

then you can calculate the cloud point, the point at which a second liquid phase
appears, using the fixed phase fraction flash at specified T. The solution type
should be set to “unspecified” and it may sometimes be necessary to use starting
values.

232  Case studies - Phase equilibria User Guide for Multiflash for Windows
A complex picture of the phase behaviour of co-polymers of the same type but
differing molecular weight can be built up as shown in the following figure.

PEP of varying MW and 1-Butene


Wt% .15PEP:.85 Butene
300

M=.709kg/mol
250 M=5.9kg/mol
M=26kg/mol
200 M= 96.4kg/mol
P/bar

150

100

50

0
0 50 100 150 200 250
T/C

To specify the co-polymers of differing MW you need only change the MW


using Tools/Pure Component properties, all other SAFT properties remain the
same. Provided the overall composition is specified in mass units it will remain
the same even if the co-polymer MW is varied.

User Guide for Multiflash for Windows Case studies - Phase equilibria  233
Case studies - Hydrate
dissociation, formation and
inhibition

Introduction
This section is only applicable if your copy of Multiflash includes the hydrates
option.
Natural gas hydrates are solid ice-like compounds of water and the light
components of natural gas. Also, some heavier hydrocarbons found in gas
condensates and oils are known to form hydrates if smaller molecules such as
methane or nitrogen are present to stabilise the structure. Hydrates may form at
temperatures above the ice point and are therefore a serious concern in oil and
gas processing operations. The phase behaviour of systems involving hydrates
can be very complex because up to seven phases must normally be considered,
even without considering the possibility of scale formation. The behaviour is
particularly complex if there is significant mutual solubility between phases, e.g.
when inhibitors or CO2 are present. Multiflash offers a powerful set of
thermodynamic models and calculation techniques for modelling hydrates.
The models used in Multiflash for hydrates and hydrate inhibition have been
briefly described, see “Hydrate model” on page 36, or our separate guide to
models and physical properties. Components known to form hydrates are also
listed.

Defining the hydrate models


To ensure that reliable results are obtained it is particularly important that the
correct set of models and phase descriptors is used. The Hydrate model sets
contain a complete description of model and phase specifications.
To define a hydrate model, select Model Set from Select option in the menu bar
and click the Hydrates tab to activate the hydrates dialog box. The Hydrate
model is then defined by selecting the relevant hydrate phases, i.e. Hydrate 1,
Hydrate 2 or Hydrate H; the default is for Hydrate1 and Hydrate2 to be selected.
The thermodynamic hydrate model will calculate the hydrate dissociation
temperature or pressure, i.e. the point at which hydrates can form. To predict the
temperature or pressure at which hydrates will definitely form you need to
calculate hydrate nucleation. To do this you should also select Phase Nucleation.
Phase Nucleation in the list of phase descriptors always works in conjunction
with one of the solid phases such as any hydrate phase or the ice phase.

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  235
Therefore the selection of Phase Nucleation does not increase the number of
phases associated with the model used.

If you have a high concentration of salt then you may need to consider the
possibility of salt precipitation. Multiflash can consider the formation of chloride
and bromide scales. As this may not be a problem for many systems this option
is not considered by default. If you think you may have a problem you should
check the Halide Scales box. This will increase the number of phases that must
be considered but the additional phases will be added automatically when the
box is checked, the user does not have to do anything.

Fluid phase model


To carry out the full range of hydrate calculations with all the available
inhibitors the recommended fluid phase model is the advanced RKS equation of
state with the a parameter fitted to the pure component vapour pressure, the
Peneloux density correction and the Infochem mixing rule. The required binary
interaction parameters for hydrocarbons, light gases, water and inhibitors are
available from the OILANDGAS BIP dataset. However, for inhibition with
methanol, ethanol, MEG, DEG or TEG, CPA may be preferable as it reproduces
the partitioning of methanol and MEG between water and hydrocarbon vapour
and liquid phases more accurately than RKSA plus the Infochem mixing rule. As
a result it will usually predict less conservative results for the amount of
methanol required for a fixed inhibition. The differences between the model
predictions will be most marked for systems with low water content and/or
significant amounts of C6+.

Hydrate model
The thermodynamic hydrate model consists of lattice parameters for the empty
hydrate and parameters for the interaction of gas molecules with water in the
hydrate. There are different parameter values for each hydrate structure, Hydrate
1, 2 and H. In addition the hydrate must be associated with a liquid phase model
that is used to obtain the properties of water. It is important that this is the same
model that is used for water as a fluid phase.

236  Case studies - Hydrate dissociation, formation and inhibition User Guide for Multiflash for Windows
Nucleation model
This model can be used to predict the nucleation of any hydrate phases and
provides an estimate of the temperature or pressure at which hydrates can be
realistically expected to form. The nucleation model is based on the statistical
theory of nucleation in multicomponent systems.
With the Infochem hydrate model described above and the nucleation model, the
hydrate formation and dissociation boundaries can be predicted. Between these
two boundaries is the area of hydrate risk.

Ice model
Ice is treated as a pure solid phase. The Infochem freeze-out model can be used
to model the solidification of any component. As with the hydrate phase it is
necessary to associate the solid phase model with a liquid phase model that is
used to obtain the properties of water. It is important that this is the same liquid
model that is associated with the hydrate phase. The nucleation model can also
be used to predict the temperature or pressure at which ice starts to nucleate.

Scale model
In its general form, the freeze-out model can be applied to any solid phase of
fixed composition, which must be defined. The model can for example be
applied to hydrated salts such as monoethylene glycol (MEG) monohydrate or to
crystalline mineral salts, i.e. scales.

Phases
In most cases six phase descriptors (PDs) are required: gas, hydrocarbon liquid,
aqueous liquid, hydrate 1, hydrate 2 and ice. At high pressures and/or low
temperatures the “gas” phase may become liquid-like and a second non-aqueous
liquid PD is needed. This is also the case if there is a significant amount of CO2
or H2S present. When considering structure H hydrates an additional phase
descriptor is needed for hydrate H.
In most practical cases a natural gas contains propane and the stable hydrate
structure will be hydrate 2, although for very lean gases at higher pressures
hydrate 1 may be the most stable form. Key components are defined to
distinguish between the hydrocarbon and aqueous liquid phases.
The phase names used in the hydrate models are: GAS, LIQUID1, LIQUID2,
Water, Ice, HYDRATE1, HYDRATE2 and HYDRATEH. You can apply Phase
Nucleation to both hydrates and ice, defined by the hydrate model. If Phase
Nucleation is selected, this means that the nucleation model is defined and can
be used to predict the nucleation of any of the hydrate phases or ice.
In contrast to the thermodynamic hydrate model which allows all possible phases
to be present when carrying out calculations, the nucleation model considers
only the nucleation of the specified phase. At low pressures this can lead to
predictions that the hydrate nucleation temperature is higher than the dissociation
temperature. However, this is not a real situation as ice is not being considered
except for nucleation.
If Halide scales are to be considered then further phase descriptors are required.
These must represent the correct fixed composition of the scale, these are: NaCl,
NaCl.2H2O, KCl, CaCl2.2H2O, CaCl2.4H2O, CaCl2.6H2O, NaBr,
NaBr.2(H2O), KBr, CaBr2.6(H2O).
The addition of these phase descriptors is done automatically by Multiflash when
the "halide scales" option is selected.

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  237
Hydrate calculations with Multiflash
In principle, hydrate calculations with Multiflash are no different from flash
calculations for fluid phases alone. Multiflash treats fluid and solid phases on the
same basis and the full range of flashes can be carried out for streams with
hydrates.
An important point to note is that you must include water in the mixture
explicitly if you wish to do hydrate calculations. Unlike some other programs
Multiflash does not assume that water is present unless you specify it. The
amount of water may influence the results of the calculations, particularly when
inhibitors or water-soluble gases are present.

Will hydrates form at given P and T ?


To find out whether a mixture will start to form hydrates at a given pressure and
temperature it is simply necessary to define your mixture, specify a hydrate
model set and do a P, T flash. If you wish to start from a problem setup file we
have provided hydrate.mfl, which describes a gas condensate.
From the Select menu choose Model Set and click on the Hydrates tab. In the
dialog box, select the relevant phases required and initially specify CPA as the
fluid phase model.

Click on OK once the hydrate model set has been successfully defined and
loaded.
Specifying the components and composition
The fluid for this case study is defined in the following table:
Component Moles
METHANE 85.93
ETHANE 6.75
PROPANE 3.13
ISOBUTANE 0.71
BUTANE 0.88
PENTANE 0.57

238  Case studies - Hydrate dissociation, formation and inhibition User Guide for Multiflash for Windows
CO2 1.31
N2 0.72
WATER 10
Define the normal components in the usual way; click on the Select
components button, enter the component name in the Enter name text box and
press the enter key or click on Add to select them for loading into Multiflash.
Close to go back to the main window. Click on composition and enter the
correct number of moles for each component.
Alternatively. Load the hydrate.mfl input file.
Enter the temperature, 270K and the pressure, 1 MPa (remember to change the
standard pressure units from Pa to MPa). The input units are defined in moles
but the output units for this example are in g.
Click on the P,T flash button
You will see the following results in the results window.

Hydrate2 is formed at the specified conditions, and you can see that this is in
agreement with the phase diagram. Note that the output shows the amount of
hydrate formed just as it does for other phases. Clicking on the Phase Envelope
button and setting HYDRATE2 phase fraction equal to 0.0 we can obtain the
HYDRATE2 phase boundary.

Hydrate formation and dissociation temperature


at given pressure
The hydrate formation or dissociation temperature calculation is an example of a
fixed phase fraction flash. The dissociation temperature is the point below which
hydrates can form (also known as the equilibrium hydrate formation curve). The
formation temperature is the point at which the nucleation of hydrates occurs and

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  239
hydrates will form. Between these two points is the area of hydrate risk where
hydrates may or may not form depending on the time scale (see figure below)

P
H yd r a t e z o n e H yd r a t e H yd r a t e fr ee
r r is k
e
s
s
u
r H yd r a t e fo r m a t io n cu r ve H yd r a t e d is s o cia t io n cu r ve
e

Tem pera ture

To calculate the hydrate dissociation temperature at given pressure


Retain the pressure at 1 MPa.

Either Click on the Hydrate dissociation T at fixed P button, or the Fixed


Phase Fraction Flash at specified pressure button,
In the first case Multiflash will determine the most stable hydrate structure and
report the dissociation temperature for this. In the second case a dialogue box
will be activated, click on the button next to Select phase and from the list
select Hydrate2. Select Normal from the Type of solution and enter 0.0 for
the molar phase fraction

Click on Do flash
The results,

show that the hydrate2 is the most stable form and first begins to form at 276.1K.

240  Case studies - Hydrate dissociation, formation and inhibition User Guide for Multiflash for Windows
It is important with the fixed phase fraction flash to specify the correct hydrate
structure to search for. If Hydrate1 was specified in the above example the
calculation would fail because there is no solution where hydrate1 is more stable
than hydrate2. In most cases of practical interest hydrate2 is the structure
formed, although hydrate1 may be more stable at high pressures for streams
containing a high concentration of methane or H2S. If hydrate1 were to be more
stable it would be present in non-zero amount in the list of phases formed. If in
doubt you can check with the P,T flash option which reports which hydrate
structures are stable at any T and P.

Hydrate formation temperature at given pressure


To calculate the hydrate formation temperature at 1 MPa, make sure the
nucleation model has been defined: go to Select/Model Set/Hydrates, check
the "Phase Nucleation" box and click on "Define Model". The nucleation
calculation will not work unless the model has been correctly defined.

Then, go to the Fixed Phase Fraction Flash – at specified P dialog box and
select Nucleation from “Select basis” . Set the phase fraction text box to zero as
before and then click the "Do flash" button.

If you try to calculate the hydrate formation temperature without first defining
the nucleation model, then the calculation will not converge and error messages
will appear:

If this happens, define the nucleation model by selecting "Phase Nucleation" in


the Hydrates model dialog box and repeat the calculation.
The calculated results with the nucleation model are displayed in the main
screen. Note that the hydrate formation temperature at 1 MPa is now 268K,
about 8 Kelvin lower than the hydrate dissociation temperature, 276.1K.
Note that the nucleation calculation is, in the thermodynamic sense, inherently
unstable, as reported.

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  241
Hydrate formation and dissociation pressure at
given temperature
The hydrate formation or dissociation pressure calculation is analogous to the
formation or dissociation temperature calculation, but is carried out with the
fixed phase fraction flash at specified T option (using the appropriate button
or menu option). The following example finds the hydrate dissociation pressure
for the above mixture at 270K.

The hydrate first forms at 0.598 MPa. Under these conditions the hydrate forms
from the ice phase rather than the liquid water phase. The hydrate formation
pressure at the same temperature is 1.26 MPa.

242  Case studies - Hydrate dissociation, formation and inhibition User Guide for Multiflash for Windows
Hydrate phase boundary
You can also use the phase envelope calculator to plot the hydrate phase
boundaries for formation and dissociation for this stream by using the
thermodynamic hydrate model and nucleation model - and add experimental
data if available.

Other flash calculations with hydrates


Once the hydrate model has been specified it is possible to do the same flash
calculations as for other fluid phases. For example, an isenthalpic flash
calculation can be carried out in the same way as shown for the oil and gas
system, see “Other flash calculations” on page 206.

Maximum water content allowable before


hydrate dissociation
Multiflash can determine the maximum amount of water that may be present in a
mixture at a given pressure and temperature before hydrates can form. Multiflash
can achieve this by means of a "tolerance calculation".
The tolerance calculation combines two mixtures in different ratios
until a specified condition is met. The following example finds the maximum
water content for the above mixture at 270K and 1 MPa before hydrates will
form.
In order to calculate this, the following steps are required:
Click on Composition and enter 0.0 for the amount of water. The overall
compositions must be specified on a water-free basis, but water must remain in
the components list.
Then, select Calculate from the menu bar, and select Tolerance Calculation.
Then, select the required phase from "Select phase" box by clicking the
downward-arrow on the right side of the box. In this example, the phase should
be HYDRATE2. Set the phase fraction to zero in "Enter phase fraction" box.
Click the "Composition of Second Fluid" tab to obtain the second stream of the
mixture, then set the composition of water to 1.0 mole (i.e., pure water) and
leave the rest to zero. Click Calculate to carry out the tolerance calculation.
Click Close back to the main window.

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  243
In the results window you will see,

The first column shows the overall composition at the hydrate dissociation point.
The amount of second fluid added is the number of grams of water specified by
the tolerance calculation which must be mixed with the original water-free
stream to meet the condition of zero hydrate phase at the chosen P and T.

Calculations with inhibitors


There is no fundamental difference between calculations with and without
inhibitors. To investigate the effect of an inhibitor you can either add it to the
list of components in the mixture and specify the amount in the total mixture just
as for any other component or you can use the Inhibitor Calculator (see
“Inhibitor calculator” on page 75 ) to add the amount of inhibitor relative to
water. However, the inhibitor will not, of course, remain solely in the water
phase but will partition between the different phases present at equilibrium and
the amount in a particular phase will depend on the conditions and the amounts
of other components. This is exactly what happens in reality.
All the calculations described above can be carried out in the presence of
inhibitors.

Can hydrates form at given P and T ?


This is based on a P,T flash calculation. The following example illustrates the
calculation for the gas defined previously in contact with a solution of water plus
methanol at a methanol fraction of 20% by mass. Using Tools/Inhibitor
Calculator bring up the Inhibitor calculator window and add 20 mass%
methanol to the 10 mole of water in the system.

244  Case studies - Hydrate dissociation, formation and inhibition User Guide for Multiflash for Windows
After pressing the Add button, the following window will show up stating that
20 wt% methanol is approximately equivalent to adding 1.405 moles of
methanol to 10 mole of water

With the temperature at 270K and a pressure of 1 MPa


Click on the P,T flash button.

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  245
The results show that the addition of this concentration of methanol is sufficient
to prevent hydrate formation even though some has been lost to the gas phase.

Hydrate dissociation temperature at a given


pressure
With the same mixture, calculate the hydrate dissociation temperature using the
Hydrate dissociation T at given P button or the fixed phase fraction flash at
fixed P with the hydrate 2 phase at 0.0 phase fraction.

You can see that, compared to the earlier calculation in the absence of methanol,
the addition of methanol has reduced the hydrate dissociation temperature from
276.1 K to 266.5 K. Virtually all the methanol is in the aqueous phase at these
conditions.

Hydrate dissociation pressure at a given


temperature
Again this is analogous to the calculation above but you use the Hydrate
dissociation at given T button, , or specify a fixed phase fraction flash at
fixed T. The hydrate dissociation pressure increases from 0.56 MPa to 1.51 MPa.
The anti-freeze effect of methanol means that the hydrate forms from liquid
water rather than ice as previously.

Hydrate phase boundary


You can compare the hydrate phase boundary with and without inhibitor by
plotting the new phase boundary with methanol present.

246  Case studies - Hydrate dissociation, formation and inhibition User Guide for Multiflash for Windows
Amount of inhibitor required to suppress
hydrates
Multiflash can determine the amount of inhibitor that must be added to the
system at a given pressure and temperature in order to suppress hydrates. This is
another example of a tolerance calculation and is therefore specified using the
Tolerance Calculation from the Calculate menu.
The overall compositions must be specified on an inhibitor-free basis. The
inhibitor is entered as a second stream using the tolerance calculation. The
phase required to be fixed and phase fraction can be specified in the Select
phase and Enter phase fraction boxes, zero phase fraction of hydrate2 in this
case. The tolerance calculation combines the two mixtures in different ratios
until the specified condition is met. The following example finds the amount of
methanol that must be added to suppress hydrates for the above mixture at 270K
and 1 MPa.
Remove methanol from the main stream by clicking on Composition and
entering 0.0 mol for methanol. Note that methanol must still be in the
Composition list.
Select Calculate, then Tolerance Calculation to activate the Tolerance
Calculation dialogue box.
Select the required phase (HYDRATE2) from Select phase box.
Set this phase fraction to zero.
Click the Composition of Second Fluid tab to specify the composition of
methanol as 1.0 mole and leave the remainder zero.
Click Calculate to carry out the tolerance calculation.
Click Close to go back to the main window.

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  247
The first column shows the overall composition at the hydrate dissociation point.
The predicted methanol concentration required is 1.3% on a mass basis with
respect to the total stream, approximately 13.6 mass % with respect to water in
the feed. The amount of second fluid added is the number of grams of the
mixture specified by the tolerance calculation (in this case pure methanol) which
must be mixed with the original inhibitor-free stream to meet the condition of
zero hydrate phase.

Salt inhibition
The Electrolyte model treats the salts either as being composed of only Na+ and
Cl- ions or of Na+, K+, Ca++ , Cl- and Br- ions.
Unfortunately, the information supplied for the amount of salt in brine,
formation or production water is not usually specified in the input format
required. To help you with the conversion we have provided a Salinity
Calculator, see “Salt calculator” on page 77 that converts various analyses into
the equivalent amount of sodium, potassium, calcium, chloride and bromide
ions.
Load the hydrate.mfl file:
Change the Model set from CPA-Infochem to CPA-Infochem + Electrolyte
(Remember to Define Model).
Select the Inhibitor Calculator from the Tools menu and the tab “Salts / Ions /
Salt Analysis”
For this particular example there is information on the composition of the
formation water.
mass%
NaCl 6.993
CaCl2 0.735
MgCl2 0.186
KCl 0.066
SrCl2 0.099
BaCl2 0.036
Enter this data into the Salt Calculator

248  Case studies - Hydrate dissociation, formation and inhibition User Guide for Multiflash for Windows
By clicking on Add the Salinity Calculator will determine the ion concentration
that needs to be added to the 10 mole of water in the mixture.

and this amount will be automatically entered in the Composition drop down
table.
Specify the fixed phase flash at constant pressure, setting hydrate2 to 0.0, and
click on Do flash
The output shows that the hydrate dissociation temperature at 1 MPa for this
stream is reduced from 276.1K to 272.77K.

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  249
Scale precipitation
This feature allows for precipitation of NaCl, NaCl.2(H2O), KCl,
CaCl2.6(H2O), CaCl.4(H2O), CaCl.2)H2O), NaBr, NaBr.2(H2O), KBr and
CaBr2.6(H2O). This is activated by ticking the Halide Scales box in the
Hydrates Model Set but can only be defined with “CPA Infochem + Electrolyte”
fluid phase model option. If you have not specified such an option a warning
message is generated.

For our example the salt concentration is not high enough to trigger the
precipitation of a scale for hydrate calculations at 1 MPa. In principle, you can
use fixed phase fraction flashes to see when any of the scales will form. But the
temperatures may well be below those of operational interest. For example
selecting NaCl.2(H2O)

We and performing the fixed phase flash, we obtain

250  Case studies - Hydrate dissociation, formation and inhibition User Guide for Multiflash for Windows
A similar calculation looking for the formation of CaCl2.6(H2O) produces seven
phases but at 240.6K.

A more likely scenario occurs if the salt concentration is higher, e.g. 30wt%
equivalent of NaCl. A flash at temperatures higher than hydrate dissociation
conditions will show NaCl forming

whereas at the lower temperatures where a hydrate phase is present you will see
NaCl.2(H2O) being formed.

User Guide for Multiflash for Windows Case studies - Hydrate dissociation, formation and inhibition  251
Case studies – Wax precipitation

Introduction
This section is only applicable if your copy of Multiflash includes the Wax
option.
Waxes are far more difficult to understand than pure solids because they are
complex mixtures of solid hydrocarbons that freeze out of crude oils if the
temperature is low enough. Waxes are mainly formed from normal paraffins but
iso-paraffins and naphthenes are also present. As with hydrates the formation of
waxes is a serious concern in oil and gas processing.
Before discussing the modelling of wax precipitation it is worth referring to a
paper by Erickson et al. SPE 26604, (1983). which compares the results of
measuring wax appearance temperatures (WAT) using three different
experimental techniques. For twelve oils, where there were measurements made
by at least two different techniques, there was only one case of complete
agreement between two methods. Otherwise the minimum difference between
techniques was 8 ºF, the maximum difference was 55 ºF, whilst the average
difference was 24 ºF. It appears that the accuracy of WAT measurements has
improved in recent years, but it is still difficult to measure; it is realistic when
assessing results to assume that experimental error in WAT values may amount
to several degrees. We recommend measurements made by Cross Polar
Microscopy (CPM) if available.
We also recommended that positive amounts of precipitated wax are used to
identify the WAT, rather than the strict thermodynamic interpretation of zero
percent. The suggested default values are 0.045 wt% for reproducing CPM
measurements and 0.3wt% for DSC. The equivalent defaults for mol% are 0.015
mol% for CPM and 0.1 mol% for DSC but there is no automatic conversion
between mass and mol%. The mass or mole% of wax is related to the liquid plus
wax phases.

Defining the wax model


The wax model in Multiflash is based on work by Coutinho. For more details
refer to the “Modelling wax precipitation” on page 39.
The Coutinho wax model is a solid solution model which requires information
on the normal paraffins in the fluid. Predictions from the model are largely
governed by the n-paraffin distribution. If no experimental data are available for
the distribution it can be estimated from the total wax content. If these data too
are lacking then Multiflash has procedures to estimate them. Note that the
estimation method is only valid for oils not waxy condensates.
The n-paraffin distribution may be defined differently from that for the
remaining liquid phase but we have found that starting the n-paraffin
pseudocomponents from C6 and splitting the plus fraction into 15 pseudo-
components is again a useful default.

252  Case studies – Wax precipitation User Guide for Multiflash for Windows
With a limited experimental data set it is not possible to make any definitive
statements concerning the accuracy of the model in predicting WAT. However it
is clear is that Coutinho's model provides a much improved prediction of the
amount of wax precipitated as a function of temperature compared with other
published thermodynamic models.

Calculating wax appearance temperature (WAT)


The calculation of the wax appearance temperature (WAT), formerly known as
the cloud point, is an example of a fixed phase fraction flash.
To define the wax model, select the Waxes tab in the Select/Model set option.
Click the Define Model button to define the wax model in the problem
definition. Then Click on Close.

Go to the PVT Analysis form to characterise your fluid. The use of this is
described in detail in “PVT Lab Analysis” on page 85. If you have an n-paraffin
distribution then you should open the PVT Analysis using the button.
However, in this example, input file wax.mfl, there is no n-paraffin distribution
only a wax content. In this case you should use the normal button.
Enter the fluid composition and set both the pseudocomponents and n-paraffins
to be split from C6 (or N6) into fifteen fractions.

User Guide for Multiflash for Windows Case studies – Wax precipitation  253
If you fail to Enter a wax content or to ask for this to be estimated then you will
be able to characterise the fluid but when you try to calculate the WAT you will
see a warning message box indicating that you don’t have an n-paraffin
distribution.

Providing you have n-paraffins in your fluid characterisation you can calculate
the WAT at any pressure, by using the WAT, button.

The pressure will be taken from the Pressure text box in the main window. From
a study of many waxy fluids we recommend using a small positive amount of
wax to identify the WAT and suggest default values for the most common
measurement techniques. The default for CPM is preset but this can be altered to
any value, including 0%. Click on Calculate WAT to initiate calculation.
Our particular example is based on a supplied problem set up file called wax.mfl.
This particular fluid has a reported experimental WAT based on three different
measurement techniques. At 1 bar, using CPM the reported WAT was 53C and

254  Case studies – Wax precipitation User Guide for Multiflash for Windows
using DSC was 40C. The predicted WAT for the CPM default is 49.5C and for
the suggested DSC default is 37.7C.
You may wish to vary the n-paraffin distribution for the Coutinho model and see
the effect on the predicted WAT. One suggestion is to extend the heavy end as
far as possible. You can do this by setting the start of the n-paraffin distribution
to something like N90 and only splitting into 1 n-paraffin. You will be warned
that the distribution has been extended as far as possible and the highest n-
paraffin will be lower than the N90 set. In this case the heaviest n-paraffin is n-
76+ and the WAT for the CPM default is 46.4 C. Extending the n-paraffin
distribution does not necessarily increase the WAT as there are competing
effects from both the properties of the new heaviest n-paraffin and the solubility
of the reduced amount of this fraction.
If you have measured values for the WAT then you can tune the
pseudocomponent properties for either model to match these values. This is done
using the Tools/Matching/Wax Phase option. The Matching option is described
in “Matching wax data/WAT” on page 119.
For this particular example we can take the WAT at 1 bar to be 53 DegC for
CPM. Keep the characterisation for n-paraffin at N90 and 1 PF, then enter the
value or values for the WAT temperatures and pressure and the phase fraction.
The fraction chosen can be zero but should probably reflect the suggested
defaults for the technique used for the WAT measurement.

The matching facility will amend the values for the melting temperature and the
change of enthalpy on melting of the n-paraffin fractions.
The wax boundary can be plotted using the phase envelope button and choosing
the wax phase. In this case, where we are considering a dead oil, it makes sense
to plot the boundary for .00045 mass fraction as we have just matched to this
value at 1 bar.

User Guide for Multiflash for Windows Case studies – Wax precipitation  255
For a live oil the amount of wax will be with respect to the total fluid rather than
the liquid in the envelop plot. This will vary with pressure so in this case it may
be better to choose zero mass fraction for the plot. The wax boundary for a live
oil is a distinctly different shape. The D marks the point where the wax boundary
crosses the bubble point line.

The full range of flashes is available for the Wax models.

Calculating wax precipitation


As with any other phase the amount and composition of the wax phase is
determined as part of any flash calculation. Given the uncertainty of the WAT
from some experimental techniques and the sensitivity of WAT calculations to
the characterisation of the heaviest fractions, a better picture of wax precipitation
can be derived from calculation of the wax precipitated as a function of
temperature at a given pressure.
Using the Windows version of Multiflash you can carry out a series of PT
flashes to see how the wax builds up as the heavier components solidify with
decreasing temperature. However, a simpler way is to use the wax precipitation
curve button, . Clicking on this to activate the wax precipitation curve form
to produce a table of the wax mass percentage as a function of temperatures with
respect to the liquid plus wax precipitated at a given pressure. The starting
temperature is 0°C, or the equivalent in other units, and the finishing temperature
is the calculated WAT for zero percent wax. The maximum number of points is

256  Case studies – Wax precipitation User Guide for Multiflash for Windows
twenty but the actual number of points will depend on the WAT, the units used
and a sensible step.
The pressure will be taken as that specified in the pressure text box on the wax
precipitation curve form. The wax precipitation curve below was generated using
wax.mfl as supplied. The numeric values are also reported in the main windows
of Multiflash. A series of wax precipitation curves can be calculated within the
form to see the effect of pressures on the amount of waxes precipitated.

If you require additional results below 0C, you can use a command entered in
the Tools/Command box. The format of the command is
WAXPC value_pressure value_Tstart value_Tincrement;
The wax precipitation curve calculated from the starting value specified is
reported in the main window.
And you can use the Add Data button to add the measured WAT if you wish.
The calculated values and the experimental data can be exported to an excel file
from the form for further editing as necessary.

User Guide for Multiflash for Windows Case studies – Wax precipitation  257
258  Case studies – Wax precipitation User Guide for Multiflash for Windows
Case studies – Asphaltene
flocculation

Introduction
One of the major problems for the oil industry is the precipitation of heavy
organics during production, transportation and the refining or processing of
crude oil. Asphaltenes are polar compounds that are stabilised in crude oil by the
presence of resins. If the oil is diluted by light hydrocarbons, the concentration
of resins goes down and a point may be reached where the asphaltene is no
longer stabilised and it flocculates to form a solid deposit. Because the
stabilising action of the resins works through the mechanism of polar
interactions, their effect becomes weaker as the temperature rises, i.e.
flocculation may occur as the temperature increases. However, as the
temperature increases further the asphaltene re-dissolves in the oil. Thus,
depending on the temperature and the composition of the oil, it is possible to find
cases where flocculation both increases and decreases with increasing
temperature.
The Infochem model for asphaltenes is based on a cubic equation of state but has
additional terms to describe the association of asphaltene molecules and their
solvation by resins. The parameters for the model were initially developed from
a study of nearly thirty sets of experimental measurements of asphaltene
precipitation which includes both proprietary and public domain data. The model
is complex and to ensure reliable results we recommend that you follow the
procedure we suggest until you are familiar with the model and the behaviour of
your particular fluid.
The asphaltene model in Multiflash is primarily intended for calculating
asphaltene precipitation from live oils. We are aware that many users have only
titration data for dead (STO) oils. We have investigated using this titration data
to set the asphaltene model parameters and this is discussed later in the case
study.

Input data
The ideal input data for the model are:
 A compositional analysis of the live oil
 The amount of asphaltene in the oil and the ratio of resin to
asphaltene, often determined from the SARA analysis of a stock
tank oil.
 One set of the conditions for the asphaltene precipitations.

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  259
 Bubble point (optional) to “tune” the petroleum fraction properties.
For some samples you may only know the absolute weight % of asphaltenes and
resins in the total live oil but not the full SARA analysis. In these cases you can
just use the weight % of resins and asphaltenes in the stock tank oil and ignore
the text boxes for saturates and aromatics in the PVT Lab Fluid Analysis dialog
box. For the asphaltene model, the saturates and aromatics part of SARA are
only used to normalise the weight % of resins and asphaltenes.
The % asphaltene is taken to be that precipitated by n-heptane. Some
laboratories report the wt% asphaltene precipitated by n-pentane. It is difficult to
give exact guidance on how to convert the values of asphaltenes between n-
pentane and n-heptane precipitation as this can vary from oil to oil and
laboratory to laboratory. In general we have found that the wt% asphaltene
precipitated by n-pentane is approximately twice that precipitated by n-heptane.
However, ratios may vary from 1.3 to 2.7.
If you do not have the complete data set we have developed correlations to
assign the required parameters. The minimum set of data in this case are:
 A compositional analysis of the live oil
 Reservoir temperature
 Bubble point (optional), to “tune” the petroleum fraction properties.
Obviously the more data available the better the model predictions.
The prediction of asphaltene precipitation is not as sensitive to the
characterisation of the fluid as the wax models. The PVT characterisation
method has been improved to characterise asphaltenes correctly regardless of the
number of pseudo-components requested for the whole fluid. However, we
suggest you consider using a common characterisation procedure for any
comparison. By default, the PVT Analysis facility starts the pseudocomponent
split at C6 and split the fractions into 15 components.
Finally, to model asphaltene precipitation successfully you need to adjust one
model parameter to match actual asphaltene precipitation data. If you have such
experimental data available then you match to this. If you do not have any data
there are two options. We have modified the screening procedure suggested by
De Boer et al to adjust the model parameter based on a knowledge of the
reservoir conditions or you can use STO asphaltene titration data using n-
heptane if this is available.

Defining the asphaltene model


The cubic equation of state, RKSA, is defined as part of the model, it is not
possible to choose a different fluid phase model.
To set up the asphaltene model use the Select/Model Set menu option.
Select the asphaltene tab, Click on Define Model to select the asphaltene model
and Click on Close to load the model.

260  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
The default phases for the asphaltene model are gas, liquid1 and asphaltene.
However, you can add a water phase if you wish. This can be done very simply
by ticking the water check box. However, the asphaltene model parameters
should be produced for the fluid composition excluding water, more caution
should be taken when plotting the asphaltene phase envelopes as the presence of
water in the mixture makes the phase equilibrium calculation more complex.
The next step is to characterise your fluid. Go to the PVT Analysis form,
described in detail in “PVT Lab Analysis” on page 85. Enter the fluid analysis
and set the Start pseudocomponents to C6 and the number of pseudocomponents
to 15. Enter any data you have on the molecular weight and/or specific gravity.
The final step in the characterisation is to enter any data you have on the weight
of asphaltene in the oil and the ratio of resin to asphaltene. The example we are
going to look at is based on a supplied problem set up file, asphex.mfl. We have
assumed in this example that a full SARA analysis is available, but later in the
case study we will go back and look at the options if you don’t have this much
data.
If you load asphex.mfl the PVT Analysis form will look like this

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  261
Once you are happy the data is correct Click on Do Characterisation. In this
case a message box will tell you the characterisation has been successfully
completed and show a plot of the data and fitted distribution. You can then Click
on OK and on Close to go back to the main window.
If you have any warnings or errors associated with your own examples then the
relevant message box will appear. Those related to fluid characterisation in
general are described in “PVT Lab Analysis” on page 85.
The asphaltene model in Multiflash was developed based on the experimental
data that the resin/asphaltene ratio was always greater than 2.5. However, some
of our users have reported values below this, possibly because the SARA
analysis was based on a different experimental technique.
Depending on the actual R/A entered you may find that model parameters cannot
be generated. We have added a warning message if R/A is below 2. Initially, on
characterisation you will be warned of a possible problem

You can ignore this warning message and see if model parameters can be
produced, you can increase the resin/asphaltene ratio manually or delete the
Resin amount from the SARA and tick the Estimate RA box and the model will
generate a default R/A ratio.
After characterisation the asphaltene component is named as ASPHALTENE,
and the resin component(s) by an “R” prefix, e.g. R65+.
The next stage is to use the matching facility to “tune” the pseudocomponent
properties and fix the one adjustable model parameter. We recommend that if
you have bubble point data available you tune the petroleum fraction properties
to match this. If you have multiple bubble points then we suggest you use the
Tools/Matching Bubble point form. However, if you have only one measured
bubble point we have incorporated this into the asphaltene matching form. The
bubblepoint is matched before matching the asphaltene data.

262  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
In practice we have found that you do not always have to match to bubble point
data to model the asphaltene data, although you almost always need such
matching for light oils.
However, we do recommend use of the matching procedure for the asphaltene
phase. Although we have supplied a default for the case where you have no
information to fix the adjustable model parameter we cannot recommend any of
the subsequent results. But we do recognise that you may want to use the
asphaltene model for screening purposes and we have developed a procedure to
adjust this parameter based on a knowledge of the reservoir conditions or STO
titration data.
For this example we have several bubble points. Enter these into the
Tool/Matching/Bubble point table.

Click on Match to generate the comparison of predicted and matched data.

Use the Tools/Matching/Asphaltene Phase to display the dialogue box, and enter
the values to obtain the asphaltene model parameters. Initially, we have used the
reservoir conditions (241F, 8500 psi), although the dialogue box allows for two
asphaltene upper onset points or titration data.
If all the three asphaltene data are available, the most preferable data used by
Multiflash are the asphaltene upper onsets, followed by the titration data and the
last one are the reservoir condition. Only one set of data will be saved in the
MFL file after matching.

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  263
Click on Match and Close: the model parameter values will be displayed in the
main window. The asphaltene model has now been defined.

Calculating asphaltene precipitation conditions


Once the asphaltene model has been defined and the parameters generated you
can carry out asphaltene precipitation calculations.
If you are starting from the position where you only know the reservoir
conditions and have no information on specific precipitation conditions we
suggest you should use the phase boundary tracer to get an overall picture. This
is extremely useful, but for these complex calculations it can be difficult to find
convergence or even starting values. We recommend you follow this procedure.
First plot the bubble point line. Use the Phase Envelope facility and plot the
boundary for zero gas phase, in this case with the initial values for pressure set to
1000 psi.

264  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
Click on Plot to display the phase boundary. This will usually show a point, or
points, of discontinuity at high pressure, labelled D. This is the point where the
asphaltene precipitation envelope crosses the bubble point line.

These points can be very useful for setting an appropriate starting pressure for
the asphaltene phase envelope or providing starting values if these are required.
For this example go back to the Phase Envelope and this time set
 the phase to asphaltene,
 the fraction of the asphaltene phase to zero,
 the solution type to unspecified
 the Initial value for pressure to 3500 psi with pressure
increasing.
Ask for more points to be plotted until the asphaltene boundary is complete.

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  265
For other examples you may have to set the pressure to decrease or to plot the
upper and lower boundaries separately. The upper boundary uses the
Unspecified solution or Upper retrograde type solution, the lower boundary the
Normal type of solution. Alternatively you can try specifying temperature rather
than pressure and/or providing a starting value. We have found asphaltene
boundaries most difficult to plot for very light oils.
If you have a known set of conditions and want to see if, and how much,
asphaltene is present you can use a simple P,T flash. Enter the temperature and
pressure, for example 200F and 4000 psi, Click on the P,T icon, or Select the
P,T flash from the Calculate\Standard flash menu. The phases present, and the
composition and amount of each phase, will be reported. Before doing this you
may find it useful to set the units for amounts to mass as this usually reflects the
units of measurement.

266  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
If you want to know the pressure at which asphaltene will start to precipitate at
any given temperature then you should use a flash at fixed phase fraction and
temperature. Set the temperature, in this case 200F. Again Click on the icon or
select the calculation option and the dialogue box will be displayed.

Set the molar phase fraction to zero. To calculate the pressure at which
asphaltene will first appear for pressures above the bubble point, select
Unspecified or Upper retrograde as the solution type and Click on Do Flash.
Multiflash will calculate the pressure on the upper asphaltene phase boundary, in
this case 7958.74 psi. To obtain the pressure for the lower asphaltene phase
boundary, below the bubble point, follow the same procedure but set the Type of
solution to Normal. In this case the reported pressure is 1865.08 psi.
You can determine the amount of asphaltene precipitated at any set of P,T
conditions using an isothermal flash as described earlier. However, a simpler
way is to use the asphaltene precipitation curve button, . Clicking on this to
activate the asphaltene precipitation curve form to produce a table of the
asphaltene mass percentage as a function of pressures with respect to the liquid
plus asphaltene precipitated at a given temperature. The starting pressure
depends on the asphaltene precipitation upper onset pressure and the finishing
pressure is related to the lower boundary of the asphaltene precipitation onset.
The temperature will be taken as that specified in the temperature text box on the
asphaltene precipitation curve form. The asphaltene precipitation curve below
was generated using asphex.mfl as supplied. A series of asphaltene
precipitation curves can be calculated within the form to see the effect of
temperatures on the amount of asphaltenes precipitated. The maximum point in
the precipitation curve corresponds to the bubblepoint where the asphaltene
precipitation reaches its maximum.

If the temperature specified is outside of the asphaltene phase boundary, a


warning message will be generated as follows, indicating that there is no
asphaltene precipitation at the specified temperature.

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  267
Sensitivity of calculations to variation in input data

Choice of Analysis method


The calculations were carried out by matching to reservoir conditions. The plots
below show the effect of including the n-paraffin distribution. Note that any re-
characterisation will reset all the matched model parameters to the default.
Therefore the experimental data must be matched again after re-characterisation,
in this case the bubble points and the asphaltene parameters.
The inclusion of the n-paraffins for this case makes a small difference to the
predicted APE in the low temperature region. This is mainly due to the change
of the fluid with the presence of n-paraffins and the reservoir condition data that
are used to adjust the model parameters.

However if two asphaltene upper onset data are available for adjusting the model
parameters, the difference in the asphaltene envelope caused by the presence of
n-paraffins will be reduced. The formation of solid wax phase actually enhances
the asphaltene solubility in oil for this case and the asphaltene envelope in the
low temperature region is lowered as a result of the presence of solid waxes.
The marked “D” along the asphaltene envelope is the cross point of wax phase
boundary with the asphaltene phase envelope. For the details on calculating the
solid phases of the asphaltene, waxes and hydrates simultaneously, refer to
“Case studies – Combined solids” on page 279.

268  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
Data Availability
This example of asphaltene precipitation was based on a data set which
comprised the compositional fluid analysis, a SARA analysis, bubble points and
the reservoir conditions. In this case, the bubble points were close to the
unmatched predictions and so matching to bubble points might not be expected
to make a major difference to the asphaltene predictions. However, even in this
case you can see a noticeable effect from the matching.

There are other data that may be missing and have an effect on predictions.

No information on the amount of asphaltene in the oil


We have provided a procedure to estimate the weight % of asphaltene in the oil
if this data are not available. In this case in the PVT Analysis box you should
tick the box for estimate RA, and then Click on Do Characterisation and Close.

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  269
Rematch the bubble point and asphaltene phase at the reservoir conditions as
before and plot the asphaltene precipitation envelope (APE). It is important to
include this step; the matched properties are re-set to default values when
the fluid is re-characterised.
The default procedure estimates both the weight % of asphaltene and the
resin/asphaltene ratio. For this particular example the predicted weight % of
asphaltene is very close to the reported value with 0.7 wt% asphaltene predicted
compared to the experimental data of 0.5 wt%.

No resin – asphaltene ratio


Even if you do not have a SARA analysis you may have the weight % asphaltene
and only need to estimate the Resin/Asphaltene ratio. Proceed as before, enter
the wt% asphaltene (0.5 %) in the correct text box in the PVT Analysis but still
tick the Estimate RA box. Repeat the matching of bubble point and reservoir
conditions again and plot the APE.

270  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
Although the estimated R/A ratio is lower, at 13, than the original, at 22, the
resultant APE is very close. This is the result of two factors: once you reach a
certain level of R/A the effect of increasing the R/A is reduced and the difference
is compensated by slightly different model parameters obtained from matching
to a specific precipitation point or reservoir condition.

No reservoir pressure
If you only have the reservoir temperature we have included a facility to estimate
this. Simply enter the bubble point data and reservoir temperature as before and
initiate the matching procedure.

For this particular example the resultant APE is reasonably close to the APE
calculated from the real reservoir conditions.
As a corollary to this we have noticed that you usually generate very
conservative APE when you have a very over-pressured reservoir. If you have a
bubble point measurement at the same temperature as the reservoir temperature
and the reservoir pressure is more than 2.5 times the bubble point a warning
message is generated.

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  271
You can continue to match to your reservoir conditions although it may also be
beneficial to generate the model parameters with an estimated reservoir pressure
to see the likely sensitivity.
If the bubble point is matched at a different temperature to the reservoir
temperature no warning is issued.

No reservoir or precipitation conditions


If you do not have either reservoir or precipitation conditions then there are two
default options for generating the asphaltene model parameters.
If you have entered a bubble point in the Asphaltene matching but nothing for
Reservoir conditions or Asphaltene precipitation then Multiflash will assume
that the reservoir temperature is the same as the bubble point temperature and
proceed to estimate the reservoir pressure as above.
If nothing is entered for bubble point, reservoir conditions or asphaltene
precipitation, the model parameters are generated from correlations based on
data held in our database. On the Asphaltene matching form, just click the
Match button to generate the default model parameters. This will generate a
message. Then click OK to close the form.

The results from using this route are very variable, depending on the fluid
analysis and we cannot recommend its use. In this case the result would be a
much more conservative APE.

272  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
Matching to asphaltene deposition data
The assumption in this case is that you have more data than our basic example,
real asphaltene precipitation data either from field conditions or an asphaltene
precipitation measurement. In this case we have two asphaltene precipitation
onset points at 241F and 6921 psi and 120F and 9150 psi. Simply enter these in
the Asphaltene matching box instead of the Reservoir conditions.

For comparison purposes we have matched to each point individually and then to
both points.

To add the actual data to the plot, using the Add Data option in the phase
envelope plotter to include the measured precipitation points and the reservoir
conditions.

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  273
Gas injection
It is known that as gas is injected into a reservoir the likelihood of asphaltene
precipitation is increased. The asphaltene model predicts this trend correctly.
Return to the original APE, calculated from the asphex.mfl input file with
matched bubble points and reservoir conditions. You can mimic gas injection by
increasing the amount of methane by adding more moles of methane in the drop
down composition box. If you increase the amount of methane from 8.32g to 12g
and re-plot the APE you will see that the fluid bubble point line is at higher
pressures and the APE has expanded.

When looking at the effect of gas injection you should, of course, not rematch
the fluid bubble point or asphaltene precipitation data as doing this will alter the
petroleum fraction properties and set the matched model parameters to the
default values. Usually the model parameters are matched with the asphaltene
precipitation data of original reservoir fluid, and then the same model parameters
are used for modelling the asphaltene phase behaviour of the original reservoir
fluids with gas injection.
You should not use the PVT Analysis GOR option to add the injection gas to the
reservoir fluid. Any re-characterisation cancels the properties and parameters
derived from earlier matching and, as you now have a different fluid, the values

274  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
of bubble point and reservoir conditions used for matching are no longer valid. If
you have a complex injection gas and want to study the effect of different gas
injection rates then we suggest the use of an Excel spreadsheet or use the
blending procedure in Multiflash to blend the injection gas stream and the
reservoir fluid.
Please note that the reservoir fluid with asphaltene model tuned and bubblepoints
matched should be selected for the model definition in the blending form so that
the asphaltene model parameters are based on the original reservoir fluid. If the
asphaltene precipitation data are available for the blended mixtures, the data
should be matched after blending.

Titration
The Infochem asphaltene model is intended for use in predicting the asphaltene
phase behaviour of live oils and the model parameter generation based on
asphaltene studies of live fluids. However, live oil asphaltene studies can be
expensive, particularly with the requirement to obtain and transport bottom hole
samples. Some of our users have asked whether titration measurements on dead
oils can be used to generate the model parameters. To date we have only been
able to obtain limited samples of titration data and have traced only one oil, in
the public domain, where there is any information on both asphaltenes in the live
oil and reported titration on the associated stock tank oil (STO), enabling us to
compare results. However, we understand that some of our users have applied
this approach successfully, and the procedure for using titration data has been
automated.
The studies have been limited to titration with n-heptane.
Our example is based on the titration.mfl file provided. The file includes the live
oil composition and the wt% of asphaltene and resins. The reported value of
asphaltene was 1.9 wt%, that of resins is 16.1 wt% for the STO. Characterise the
fluid composition as usual and return to the main menu,
Tools/Matching/Asphaltene phase. The reported onset amount of heptane to just
cause asphaltenes to precipitate from the STO at ambient conditions is 1.4 cm3
per g tank oil. This has been converted to .962 g n-heptane using the known
density. Enter this value and click on match.

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  275
The asphaltene model parameters will be reported in the main window as usual
and the APE plotted. The resultant APE is compared to those generated from
matching to a known flocculation point of 54.4 ºC and 200 bar and to a
combination of reservoir temperature (54.4º C and bubble point (54.4 ºC and
156.2 bar)

The APE predicted from matching to titration of the STO is very close to the
APE from asphaltene precipitation measurements and both are less conservative
than using reservoir conditions to provide the model parameters. It is believed
this has been the experience for other fluids.
If your titration data does not include the amount of heptane just to initiate
asphaltene precipitation and it has to be deduced from the other titration results
then the procedure for parameter generation is slightly more complicated and
requires the use of an Excel spreadsheet. In the Multiflash GUI either
characterise the STO, if this composition is provided or flash the characterised
live oil to STO conditions, using the RKSA model set to ensure that no separate
asphaltene phase is formed. If you have bubble point data it is important that you

276  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
match to this before flashing to STO conditions. Using the STO composition,
change the model set to asphaltene, match the asphaltene precipitation to
ambient conditions and save the problem using the File/Save Problem Setup
option.
You then need to create an Excel worksheet to read in this .mfl file. Details of
how to do this are described in the Excel manual, but we have provided an
example spreadsheet, titration_sto.xls.
For our example we have generated the file STO.mfl from the fluid used in our
titration example. This is the file that should be used in the Excel spreadsheet. In
the spreadsheet you then need to do two things: add a new component to the list,
heptane, and add a command line describing the asphaltene parameters. This can
be copied from the Multiflash GUI by using Tools/Show/Problem to display the
commands. The command line can be copied and pasted to the spreadsheet but
for fitting purposes it must be set up so that the RAP parameter appears in a
single cell so that it can be optimised using the Excel Solver, e.g.
include c:\work directory\exampleoil.mfl";
model MREFASPHALTENE RAEQUIL DATA AAPREEXP
1.00000000 AAEXP 1.00000000 RAPREEXP
.636986
RAEXP
0.96698
;
component heptane;
The spreadsheet, titration_sto.xls, is set up to optimise the value of RAPREEXP
(RAP) using the Excel Tools/Solver by comparing the calculated wt% of
asphaltene deposited for given amounts of heptane to the experimental wt%
deposited.
For our particular example the data reported in the paper included a live oil and a
STO composition, a wt% asphaltene for the STO, an asphaltene precipitation
point and five points for the heptane titration.
The reported titration data are plotted below

wt% asphaltene component precipitated as Fn C7 solvent

1.8

1.6

1.4
wt% asphaltene

1.2

0.8 Exptl

0.6

0.4

0.2

0
0 5 10 15 20 25 30 35 40
g C7/g oil

Fitting to the onset precipitation point using the matching facility produced the
following parameters
RAP 0.94176
RAE 0.96636
Whereas fitting to the other four points in Excel gave parameters
RAP 0.94999
RAE 0.96636

User Guide for Multiflash for Windows Case studies – Asphaltene flocculation  277
These parameters represent the STO titration data well, but the amount of
heptane to just initiate precipitation is slightly higher. You can check the
predicted value for the amount of n-heptane required for the onset of asphaltene
precipitation using a tolerance calculation with heptane as the second fluid. The
predicted amount is .997 g/g oil rather than .962.

wt% asphaltene component precipitated as Fn C7 solvent

2.00

1.80

1.60

1.40

wt% asphaltene
1.20

1.00
RAP fit
0.80 Exptl
0.60 predicted onset

0.40

0.20

0.00
0.000 5.000 10.000 15.000 20.000 25.000 30.000 35.000 40.000
g C7/g oil

It is clearly preferable to generate the live oil APE from live oil data. Some
predictions are possible from titration data but it is important that all data are
compatible, particularly the compositions of the STO and the flashed liquid and
the physical properties of pseudo components by matching to bubble point data
in both cases if you have it.
For this example we also had a measured precipitation point and you can see the
APEs resulting from the different approaches.

278  Case studies – Asphaltene flocculation User Guide for Multiflash for Windows
Case studies – Combined solids

Introduction
The previous three case studies looked at solid formation for hydrates, waxes
and asphaltenes as separate problems. However, for some fluids at certain
conditions it is possible that any or all of these may form at the same time. The
formation of any one will affect the overall composition of the fluid and may
therefore affect the formation of the other solids. To examine this possibility we
have included a Combined Solids model option. The particular model options for
each solid have been chosen to provide the best Infochem can offer whilst
ensuring compatibility. The common fluid phase model is RKSA. The hydrate
models therefore use RKSAINFO as the fluid model, combined with the
Electrolyte salt model. The wax model is the Coutinho model and the asphaltene
model is the standard Infochem model. The Combined Solids option is only
designed to look at solid formation, if you want to study more complex problems
such as hydrate inhibition you should choose the dedicated Hydrates model set.
In fact, you will see messages to this effect if you only choose a single solid
phase in the Combined Solids option.

Asphaltene precipitation
To understand what happens when more than one solid forms a useful starting
point is to examine asphaltene precipitation alone. The example input file
provided is combsolid.mfl. This includes an oil composition to C20+ which has
a molecular weight of 81, wt% resin of 12.04 and wt% asphaltene of 0.7. The
fluid is characterised from C6 with 15 fractions. The resins and asphaltenes are
allocated as shown below:

The asphaltene model parameters are matched with a bubble point of 120F and
2650 psia and an asphaltene precipitation point of 120F and 8750 psia. The
predicted APE is plotted below.

User Guide for Multiflash for Windows Case studies – Combined solids  279
Wax and Asphaltene precipitation
To see the effect of simultaneous wax and asphaltene precipitation we first need
to re-characterise the fluid with an n-paraffin distribution in order to apply the
Coutinho model. In the PVT form tick the box to estimate wax content as none is
known. The n-paraffin distribution is also set to C6 and 15 fractions.
The separation of the n-paraffins from the remainder of the liquid also alters the
distribution and properties of the resins and asphaltenes:

This in itself will alter the resin/asphaltene interaction. Allowing the wax to form
will then remove some of the n-paraffins from the fluid again changing the
proportion of resins in the remaining fluid.
To see the effect choose the Combined Solids option from Select/Model set and
specify wax and asphaltenes as the solid phases. Eliminate Hydrates, water and
ice for the time being.

280  Case studies – Combined solids User Guide for Multiflash for Windows
As the model has been re-defined we will need to match the asphaltene
parameters again, using the same input data. The new parameters will be slightly
different because of the altered distribution.
Now plot the gas and asphaltene boundaries as before then add the wax
boundary.

As you can see changing the resin distribution and removing some of the n-
paraffins has the effect of stabilising the asphaltene slightly.

Hydrates, Waxes and Asphaltenes


To study the effect of allowing hydrates to form we can retain the fluid
characterisation used for wax and asphaltene but need to add water. Do this
using Select/Components. Initially set the water composition to zero.
Return to the Combined Solids selection and add the hydrates, water and ice to
the list of potential phases.

User Guide for Multiflash for Windows Case studies – Combined solids  281
As we have chosen to re-define the model we also need to re-match the
asphaltene parameters. This is best done in the absence of water, which is why
the initial water composition was set to zero. Using the same input data the
asphaltene parameters will be exactly the same as for the wax and asphaltene
study.
Now add the water composition, 10g. Adding too much water may cause
difficulties when plotting the APE.
With water present use the phase envelope plotter to generate all the phase
boundaries. Starting point for the asphaltene boundary may have to be changed
as it is affected by the presence of the other solids.

The wax boundary is not affected by the addition of water or the formation of
hydrate, which occurs at lower temperatures. However, the effect on the lower
APE is significant. As the hydrate is formed the light gas hydrate formers are
removed from the fluid. This is in effect the reverse of gas injection and the
asphaltene is stabilised with precipitation occurring at higher temperatures.

282  Case studies – Combined solids User Guide for Multiflash for Windows
Of course with water present there is also the possibility of a separate water
phase.

If the fluid is flashed at 70F and 1750 psia Multiflash will predict the formation
of 6 phases; gas, hydrocarbon liquid, water, hydrate2, asphaltene and wax. With
only 10g of water present reducing the temperature slightly removes the water
phase owing to the formation of additional hydrate.
Of course, in practice the formation of so many phases will be affected by
kinetic factors as well as the thermodynamic equilibrium.

User Guide for Multiflash for Windows Case studies – Combined solids  283
Case studies – Excel
spreadsheets

Introduction
There are some problems that are best approached using Excel. Some of these
are discussed in the Multiflash Excel manual, such as generating tables of pure
component data or using linked flashes or recycles for simple flowsheet
calculations.
Those presented here were set up following user requests and include generating
binary interaction parameters for activity coefficient models and linking
predictions of solid formation to a common fluid analysis.
Although we have not included them here some users wish to fit their own
experimental data for components not included in their version of Multiflash. To
help users to do this we do have available a series of spreadsheets for the fitting
of pure component data. They are not issued with the standard installation but we
will supply them on request.

UNFACFIT.xls
UNIFAC is a very useful model as the binary interaction parameters are
generated from the group structures of the pure components and so reasonable
predictions of phase equilibria can be obtained for polar systems without the
need for stored BIPs.
However, there may be times when you wish to use an alternative model such as
NRTL. Although we are continually expanding our BIP databank there may be
some binary pairs in your mixture for which we do not have stored NRTL
parameters. If you do not have the time to search for experimental data for the
missing pairs, or are unable to find any, then this spreadsheet allows you to
generate the phase equilibria data from UNIFAC, providing group structures are
available for your chosen components, and then fit this data using another
activity model.
The spreadsheet has several worksheets.

Notes
The first spreadsheet consists of notes on how to use UNFICAFIT.xls and how
to enter the fitted BIPs in Multiflash.

User Guide for Multiflash for Windows Case studies – Excel spreadsheets  285
UNIFAC
This is the worksheet where you generate the phase equilibria data (liquid and
gas phase compositions and temperature or pressure) that you are going to fit.
You specify, by entering information in the appropriate cell:
 The databank to act as the source of pure component data, either
Infodata or DIPPR if you have it
 The names of the two components for your binary pair
 Whether you wish to generate data for an isotherm or isobar and
your chosen temperature or pressure
The required data is then generated, including column headings and plots. The
composition range is fixed and the units are SI. There is no need to change these
although it is possible.
An Error box reports the status of the data generation. This should be OK if the
UNIFAC group structures are available for your chosen components. An error
status of –13201 would indicate that the structures are missing for one or both
compounds.
Once the data has been generated you can move to the worksheet for the model
you wish to use, WilsonE, UNIQUAC VLE or NRTL VLE.

Activity model worksheets


All the model worksheets function in a similar manner. The component names,
conditions, temperature or pressure are copied from the UNIFAC worksheet as
are the phase equilibria data. The user enters initial guesses for the BIPs, a useful
default is to start with 0.0 for both, and using the Excel Tools/Solver to start the
fitting procedure. Once the best solution has been reached the new BIPs will be
reflected in the cells used for starting guesses and in the cells reporting the fitted
BIPs. One of the useful benefits of using Excel is that the results are plotted for
comparison with the UNIFAC generated data allowing the user to decide easily
whether the solution is acceptable.
If the solution is not acceptable then you can try
 starting with a different initial estimate for the BIPs
 using a different criterion for minimisation. The default setting is to
minimise on the sum of squares of the differences between given
and predicted temperature or pressure. It is possible to minimise on
differences in gas composition by changing the target cell in the
Solver.
 Change the constraints on the values for BIPs when fitting. We
have set limits on the values the BIPs can take as part of the
Tools/Solver utility. It is again possible to change this constraint
using the Change button on the Solver text box.
Once acceptable BIPs have been generated they can be entered and stored in
Multiflash as described in the spreadsheet notes or “Units for BIPs
The BIPs for most equation of state methods, Wilson A, Regular Solution and
Flory Huggins are dimensionless. For other activity methods and the two CPA
association parameters the BIPs have associated units. The default units in
Multiflash are J/mole. If BIPs from external sources are used in Multiflash it is
important that either the BIP units are changed to match the input values or the
numeric values of the BIPs are changed to J/mole.
The choice of units appears once the Units button is selected in the BIP display.

286  Case studies – Excel spreadsheets User Guide for Multiflash for Windows
J/mol is the Multiflash standard for the dimensioned activity model BIPs.
cal/mol and K are the values used in the Dechema Data Series for activity model
VLE and LLE BIPs. The “Aspen” format allows you to transfer the BIP values
for the NRTL equation from Aspen Plus without further change.
The actual input functions for the activity BIPs are as follows:
In J/mol K Aij=a + bT + cT2
In cal/mol K Aij/4.184=a + bT + cT2
In K Aij/R=a + bT + cT2
Dimensionless Aij/RT=a + b/T + cT
Aspen format Aij/RT=a + b/T + cT
For the NRTL equation, the  parameter is defined as follows:
All formats except Aspen ij= a + bT + cT2
Aspen format ij= a + b(T-273.15) + c(T-273.15)2
Supplementing or overwriting BIPs” on page 59.
Although NRTL has three parameters we have chosen not to fit all three but to
default the third parameter, alpha, to 0.3. You can over-ride this if you wish but
we would suggest that values for alpha should never be negative and should
rarely be larger than 0.6.
Currently the fitting is limited to constant values for the BIPs although this could
be expanded if necessary.

VLEFIT.xls
This is substantially the same as UNIFACFIT.xls but the starting point is
experimental data rather than data generated from the UNIFAC model.
Instead of the first UNIFAC worksheet there is an Experimental worksheet to
enter the data. Again you can choose the data source for your pure component
data and indicate whether your chosen data is along an isotherm or isobar. In
order to minimise effort this spreadsheet does allow you to choose the units for
temperature and pressure to match those measured. The temperature or pressure
for the isotherm or isobar should be entered as should the values for x, y and
associated T or P.
We have chosen a limited array for data entry. If you have more data and are
familiar with Excel you can extend the range although you will need to
remember to change the cell references in the dependent worksheets. Otherwise
you should limit the data by choosing suitable points from the data available.
If you have less data then you should enter #N/A in the cells which would
otherwise be empty. This is necessary for the Excel Solver to operate correctly.
For some data sets you may have P, x or T, x but no data for gas composition, y.
In this case it is better to enter #N/A for the y compositions. If you fail to do this
the Solver will still function provided the minimisation criterion is based on

User Guide for Multiflash for Windows Case studies – Excel spreadsheets  287
difference in temperature or pressure – the default. However, the plots for x, y
will not be relevant and should be ignored.
As with UNIFACFIT.xls you can fit the experimental data to generate BIPs for
WilsonE, UNIQUAC VLE or NRTL VLE by choosing the appropriate
worksheet.

Solids.xls
Several of the engineers using the Multiflash GUI have found it fairly complex
to obtain results for solid formation particularly for asphaltenes. Improvements
to allow users to fit bubble point and asphaltene model parameters at the same
time go some way to alleviating this problem. However, we had set up a
spreadsheet, which many engineers find useful and which we will still issue as
part of the implementation. Of course you will only be able to use any worksheet
if you have licensed the appropriate model.
The Solids.xls includes the recommended PVT analysis routines and solids
models; the CPA/Electrolyte model for Hydrates, the Coutinho wax model for
waxes and the asphaltene model is standard.
The spreadsheet consists of several worksheets and each worksheet has the
relevant models built-in in hidden rows or columns. As the PVT Analysis
procedure is complex, the PVT calculations are carried out using the Multiflash
GUI, and the mfl file written and referenced in the first worksheet.
The Excel calculations are set to manual using the Excel Tools/Options facility.
This is to prevent automatic calculation of the whole spreadsheet as new
compositions are entered. To update any individual worksheet use Shift F9, to
update the whole spreadsheet use F9.

PVT Analysis
The user characterises the PVT using the Multiflash GUI and enters the full
directory path and mfl file name to provide the characterised fluid information.
As all calculations in the spreadsheet have to be referenced to this fluid
characterisation we recommend that the characterisation is based on splitting the
fluid plus fraction from C6 into 15 pseudocomponents for both iso-paraffins and
n-paraffins. This controls the number of components and negates the need for the
user to modify the Excel functions to ensure that all components and
compositions are included in any calculation. The units for calculation are also
set in this worksheet.
This first worksheet includes a bubble point calculation at a temperature or
pressure set by the user. This allows you to decide whether to tune the petroleum
fraction properties to match a known bubble point or if this is unnecessary.
The list of possible components is based on the default component list used in
our PVT Analysis utility. The user enters the compositions and any other
information available such as the molecular weight and specific gravity. The
SARA analysis can be entered; the resin and asphaltene amounts are needed for
the asphaltene model although they can be estimated if required. The user can
specify the starting point and the number of fractions for the characterisation
although we would recommend staying with C6 and 15 fractions.

288  Case studies – Excel spreadsheets User Guide for Multiflash for Windows
Match bubble point
If the predicted bubble point is sufficiently different from a known value then
this worksheet allows the user to match a known bubble point. The fluid
composition is taken from the characterised fluid in the PVT Analysis
worksheet. The user specifies the bubble point to be matched and the bubble
point is recalculated after the match to confirm that this has been carried out. A
new problem input specification is written into this worksheet as a result of the
match but it is in hidden rows or column.

User Guide for Multiflash for Windows Case studies – Excel spreadsheets  289
Wax
The next worksheet is dedicated to prediction of wax precipitation, although the
worksheets for wax, asphaltene and hydrates are not inter-dependent and can be
used in any order. The user can choose to use the fluid characterisation direct
from the PVT Analysis or with petroleum fraction properties tuned to match a
bubble point.
The first set of calculations predict the wax appearance temperature (WAT)
without any further tuning plus the amount of wax formed at a user specified
T,P. The calculation is carried out based on the fixed wax phase fraction flash
function and the amount of wax is set to be .00015 mole fraction of wax in the
liquid+wax phases. There is a function called MF_PWAT, equivalent to the
WAT button in the GUI, which calculates the WAT at a fixed mass or mole
fraction of the wax phase. This can be relative to either the total fluid or to the
liquid plus wax phases.
For matching a measured WAT for a finite amount of wax phase, a command is
used for specifying the measured WAT in the Solids.xls. For the detailed
information about how to use the commands, refer to the section of Matching
wax data in the Multiflash Command Reference manual.
The WAT is plotted automatically as a function of pressure. The starting
pressure and step can be set by the user to obtain the pressure range of choice.
These calculations can be repeated based on matching to a known WAT, if one
is available.

290  Case studies – Excel spreadsheets User Guide for Multiflash for Windows
Asphaltenes
The asphaltene worksheet again offers the choice of using the PVT Analysis
characterisation direct or the characterisation after matching to a known bubble
point. For asphaltene modelling we would recommend the latter.
The options for producing the asphaltene model parameters are not as flexible in
Excel as in the Windows front end. You are limited to two options, the
flocculation or reservoir conditions and you must supply both temperature and
pressure. The matching is done by using a command with the temperature and
pressure refer to either asphaltene ADE or reservoir condition. For detailed
command information, refer to the section of Matching asphaltene deposition
point in the Multiflash Command Reference manual.
After matching the user can set either temperature or pressure and calculate the
corresponding P or T for the upper and lower boundaries of the flocculation
envelope. There is also an option for entering a set of T,P and calculating the
amount of asphaltene formed at those conditions.
Every effort has been made to plot the asphaltene flocculation envelope
automatically with starting points derived from the flocculation or reservoir
conditions. However, as the engineers using our Windows phase envelope
facility will appreciate it is difficult to make this absolutely foolproof.

User Guide for Multiflash for Windows Case studies – Excel spreadsheets  291
Asphaltene with gas injection
The effect of gas injection on asphaltene flocculation is perhaps most easily
calculated in Excel. The asphaltene model parameters for any fluid should be
retained when studying the effect of added gas and the gas injection worksheet is
therefore dependent on the asphaltene worksheet for the problem input
specification and the matching function is disabled. It serves only to report the
conditions chosen for matching.
The composition of the gas is entered and the ratio of gas to oil is based on a
simple molar ratio.
You can still change conditions of temperature and/or pressure to determine the
boundaries for flocculation and the amount of asphaltene flocculated. The
boundaries for asphaltene flocculation, with and without gas injection are plotted
but it cannot be guaranteed that this will be available for all fluids and gas
injection rates.

292  Case studies – Excel spreadsheets User Guide for Multiflash for Windows
Hydrates
The hydrate functionality is well served in our Windows software and easily
used. We have only added a hydrate worksheet here for completeness and to
allow the engineer to carry out quick checks for possible hydrate formation. It
encapsulates the main features of our hydrate model but does not have the
flexibility of the Windows program.
The user needs to add an amount of water to the fluid and this can either be pure
water or produced water with the salt content defined by ion analysis or total
dissolved solid. The hydrate dissociation temperature can be calculated at a
single pressure or plotted as a function of pressure. The hydrate is defined as
Hydrate2 only, which is the usual hydrate formed especially as the spreadsheet is
designed to work with oils rather than natural gases.
There is also a section in the worksheet for looking at the use of inhibitors. These
are limited to the two most common, methanol or MEG. They can be added in
fixed amount or the concentration required for hydrate inhibition at set
conditions can be predicted.

User Guide for Multiflash for Windows Case studies – Excel spreadsheets  293
Users who want to investigate hydrate behaviour only may find the
hydrateinfo.xls and hydratecpa.xls spreadsheets useful. These have a restricted
component list (gases and gas condensates) but offer a choice of fluid and salt
model and a wider choice of calculations.

294  Case studies – Excel spreadsheets User Guide for Multiflash for Windows
Case study – Mercury
partitioning
Introduction
This section is only applicable if your Multiflash license includes the mercury
model.
Infochem has developed a mercury model for prediction of the solubility of
mercury in natural gases and condensates, and the distribution of mercury
between gas, condensate and water phases. The mercury model is available in
combination with RKSA, PR78A or CPA-Infochem.
In condensates and petroleum liquids, organomercury compounds are significant
and may be the predominant form of mercury, although it is generally agreed
that mercury in natural gas is almost all in elemental form. Dimethylmercury and
diphenylmercury are chosen to represent light and heavy organomercury
compounds respectively. The mercury model in Multiflash is based on data for
the solubility both in hydrocarbons and in water, including data which is not
accessible in public domain.
The mercury model is supported by a special version of the Infodata databank
and BIP correlations.

Defining the mercury model


The mercury model may be defined by selecting the mercury tab in the
Select/Model Set box

User Guide for Multiflash for Windows Case studies – Excel spreadsheets  295
The phases defined for this model are gas, liquid1 (hydrocarbon liquid), mercury
(liquid mercury), water and solidmercury. If you do require a second
hydrocarbon liquid phase then you must define an additional phase descriptor
using Tools/Command as described in the Appendix – Multiflash commands in
the User Guide.

Calculating mercury partitioning


Once the mercury model has been defined the fluid components are defined
using Select/Components as usual and entering the fluid composition in the
Composition drop down menu. The example file for this case study is supplied
as Hg_Example.mfl, and uses the RKSA as fluid model.

In this particular example we have only specified mercury but the principle is the
same if components dimethyl- and diphenylmercury are present.
To demonstrate the partitioning we envision a simplified flowsheet where the
feed gas goes through a warm separator, the gas phase exiting this separator then
enters a cold separator and the exiting gas is compressed for export. If the
mercury model is used in an Excel spreadsheet or a third party simulator the
streams can be merged and recycled but in the Multiflash GUI it is only possible
to use one calculated stream composition as input for the flash.
Once Hg_Example.mfl has been loaded enter the flash conditions 4 degC and 77
bar and carry out a P,T flash.

296  Case studies – Excel spreadsheets User Guide for Multiflash for Windows
The mercury content partitions between the streams from the warm separator.
The gas phase composition can be highlighted, copied and then pasted into the
Composition drop down menu to provide the feed for the P,T flash for the cold
separator. In the first case the conditions are set to -25. DegC and 41 bar.

At these conditions the separator is cold enough for a separate liquid mercury
phase to form. If the temperature is even colder, for example -52 DegC, then

User Guide for Multiflash for Windows Case studies – Excel spreadsheets  297
solid mercury will form instead and slightly more mercury drops out.

Calculating mercury dropout


As can be seen from the examples above, the mercury model can calculate
mercury dropping out either as a liquid or as a solid. The fixed phase fraction
flash can also be used to calculate the temperature or pressure at which a pure
mercury phase will drop out.
If, for the example we are using, the gas from the cold separator at -25C and 41
bar is compressed to 100bar, such as for gas export, then the PFRACF
calculation can be used to determine the temperature at which liquid mercury
will drop out.
If we do the calculation for the gas output from the cold separator at -25 degC at
100 bar we can se that liquid mercury will begin to dropout at -19.364 degC.

298  Case studies – Excel spreadsheets User Guide for Multiflash for Windows
If the gas from the cold separator at -52 degC and 41 bar is used for this
calculation mercury will not drop out till the temperature is below -48.446 at
which point solid begins to form. That is because of the mercury content of the
gas stream from the cold separator at -52 degC compared to the gas stream from
the cold separator at -25 degC.

Other calculations
The mercury model can be used for any flash calculation such as P,S or P,H. The
model can also be used for mercury partitioning in a gas dehydrator.
TEG has been included in the component list for the example provided, but was
present at zero concentration. If the TEG is added, e.g. 0.3 moles, then the
calculations can be repeated but in this case starting with a simple dehydrator
flash at 10 degC and 110 bar. You can then see the mercury partitioning into the
aqueous TEG phase and the consequent effects.

User Guide for Multiflash for Windows Case studies – Excel spreadsheets  299
Appendix - Multiflash
Commands

Introduction
The Multiflash command language is common to all Multiflash implementations
- Excel, VB etc. A complete list of all commands and information on how to use
them is contained in the Multiflash Command Reference manual.
In the Multiflash GUI the use of commands has largely been replaced by the
menu choices and toolbar buttons. However, there are some Multiflash facilities
that are not available as menu/toolbar options so there are a few circumstances
when it is necessary to .make direct use of Multiflash commands.

Commands
From the Tools menu choose Command. A command window will be displayed.
You can then enter a command and either press <Enter> or click on the Send
command button to send the command to Multiflash.

The command shown in this example will provide details of the specified model,
including the name of the associated BIP dataset.

When you may need to use commands


The menu options available in Multiflash will allow you to specify and solve
most problems. However, some of the areas where commands let you supply or
display additional information, supplement or amend menu options or carry out
additional calculations are:
 Defining models
 Supplying an external file of BIPs

User Guide for Multiflash for Windows Appendix - Multiflash Commands  301
 Defining phase descriptors and key components

Defining models
The standard thermodynamic and transport property models available in
Multiflash are specified in the model sets and model configuration files supplied.
However, you may wish to set up your own model definition, for example you
may wish to use an activity style mixing rule with an equation of state model.
You may also wish to group together different models to describe different
properties, such as using an equation of state to describe the properties of a
refrigerant mixture but defining the density in terms of ideal mixing.
In general the MODELS command defines a thermodynamic or transport
property model for mixtures. The command has the format:
MODEL model_id MF_model_name [Model_options]…
where
1. model_id is a user-defined name that will be used to refer to the particular
combination of the property model and options specified.
2. MF_model_name is the Multiflash name for the basic model. The
list of recognised models is given in “Models and input
requirements” on page 70. Model_options are additional
keywords that describe model variants, references to other,
previously-defined, models or references to the source of binary
interaction parameters.
Many .mfl files are provided and will provide examples of how to set up a model
definition.

What the model definition means


It is not necessary to understand the Multiflash model definition to carry out
useful calculations. The explanation in this section is provided so that you can
refer to the details when you need to. For example you may wish to change the
key component for a phase.
In the example below the model is Peng-Robinson. The definition of a model
configuration file will appear in the results window and includes:
The source of pure component data, binary interaction parameters and petroleum
fraction correlations. The last line below defines the enthalpy and entropy datum
point. If it is not included then the default (as shown below) will be taken.
Puredata infodata;
bipdata oilandgas infobips;
chardata infochar tbsoereide;
datum enthalpy compound entropy compound;
A command to remove all previously loaded models and binary interaction
parameters:
remove models; remove bipsets;
A command to allow for the possibility of user supplied BIPs which are
identified by the name PRBIP
bipset PRBIP 1 constant;
The definition of the thermodynamic model; consists of the command “model”
followed by a model name, MPR, and a keyword to identify the model, PR and
finally the name for a user supplied BIP set, PRBIP.

302  Appendix - Multiflash Commands User Guide for Multiflash for Windows
model MPR PR PRBIP;
The definition of the default models used for the transport properties:
model MPDVISC pdvisc lfit;
model MCLSMPR cls MPR; model MMCSMPR mcs MPR;
A phase descriptor giving an identifier and a phase type for each possible phase
which may be considered in the calculation:
remove pd;
pd Gas gas MPR * * MPDVISC MCLSMPR;
pd Liquid1 liquid MPR * * MPDVISC MCLSMPR MMCSMPR;
pd Liquid2 liquid MPR * * MPDVISC MCLSMPR MMCSMPR;
pd Water liquid MPR * * MPDVISC MCLSMPR MMCSMPR;

and finally, specification of a key component for each liquid phase so that it can
be identified when multiple liquid phases are found.
key Water 007732-18-5;
key Liquid1 not 007732-18-5;
key Liquid2 not 007732-18-5;
The CAS number is that for water. This format is general and unambiguous and
allows, for instance, for cases where the user has chosen the alternative name
H2O for water. However, Multiflash will still recognise the original format of
Key Water water;

Supplying an external file of BIPs


We supply binary interaction parameters, for light gases and hydrocarbons for
use with the cubic equations of state from the OILANDGAS databank and for
activity coefficient models from INFOBIPS or INFOLLBIPS. If you have
interaction parameters available for other binary pairs and other models you may
wish to supplement or overwrite those stored in Multiflash. The Tools/BIPs
facility has been supplied to allow you to do this easily without the need for
commands and to save any changes by saving the problem setup file. However,
if you wish to store a preferred set of BIPs and to overwrite the stored BIPs
every time you run Multiflash it may be easier to set up your own input file. You
can then overwrite our BIPs by loading this file or including it as part of your
problem setup. In this case it may be easier to construct the file using Multiflash
commands.
The command for setting up a bipset takes the form
bipset, bipset_name, number of BIPs for model, degree of temperature
dependence, temperature function, units, binary pair, values for BIPs;
The default names for the model bipsets are the model name followed by BIP
e.g. PRBIP
For example, A typical file of BIP data might be:
bipset PRBIP 1 constant eos none butane pentane 0.01 ;
bipset PRBIP 1 constant eos none pentane hexane 0.01 ;
bipset PRBIP 1 constant eos none hexane heptane 0.01 ;

N.B. You must reload this BIP file every time you change the model as one of
the commands when a model is loaded removes existing bipsets.
If you define the bipset incorrectly, e.g. if for butane pentane the temperature
function is defined as activity with units of J/mol, then a warning message will
appear when you try to use this with the PR equation

User Guide for Multiflash for Windows Appendix - Multiflash Commands  303
bipset PRBIP 1 constant activity J/mol butane
pentane 0.01 ;
*** ERROR 584 ***
Existing BIP set uses a different temperature
function
Some examples for other models are shown below:
bipset WILSONBIP2 2 constant activity j/mol acetone
water 6139 1450;
bipset NRTLBIP3 3 linear activity J/mol methanol
water .22 4.4e-3 .30 -6.6e-3 .003 0.0

Defining phase descriptors and key components


Now that you can define the phases to be considered as part of the model
definition the need to define or erase phase descriptors using Tools/Command
should be reduced. However, it may still occur.
A phase descriptor (PD) contains all the information required to identify a phase
and to retrieve its thermodynamic properties. A PD must be specified for each
possible phase that Multiflash is to consider. The PD command is used to define
a phase descriptor (PD). To exclude the formation of a particular phase type, e.g.
gas, the corresponding PD should be omitted or erased. The command has the
format:
PD pd_id phase_type model_identifiers
or
PD pd_id erase
The following table gives the valid options and settings:

304  Appendix - Multiflash Commands User Guide for Multiflash for Windows
command description notes
parameter
pd_id user-defined name that will any unique alphanumeric
be used to refer to the string, e.g. liquid1
particular instance of phase
type and associated models
phase_type a keyword that defines the 1. gas, vapour and vapour
phase type, valid settings are: are synonyms.
condensed 2. condensed means a pure
gas solid phase.
hydrate 3. solidsolution means a
liquid mixed solid phase
solidsolution
vapour
vapour
model_identifiers identifiers for up to six 1. the model identifiers are
models that will be used to the user-defined names
evaluate the thermodynamic associated with the models
and transport properties of (see description of
the phase. Models for the MODELS command)
following properties may be 2. at least one
specified in the order given: thermodynamic model must
1. fugacity (K-values) be defined (the same model
2. volume/density (optional) is then used for all
3. enthalpy/entropy thermodynamic properties)
(optional) 3. transport property models
4. viscosity (optional) need only be defined if
5. thermal conductivity output of these properties is
(optional) required
6. surface tension (optional)
erase erases (removes) the PD 1. the pd_id must have been
from the list of PDs available previously defined
for Multiflash 2. all information associated
with the PD is lost

The standard model sets and model configuration files include four phase
descriptors for GAS, LIQUID1, LIQUID2 and WATER. If you use the
Select/Freeze-out components option to apply the freeze-out model, see “Solid
freeze-out model” on page 36, a phase descriptor will be automatically generated
from the component name. However, you can change this name using the phase
descriptor command.
You may wish to erase a phase descriptor to limit the number of phases
considered when solving a flash calculation, see “Phase ” on page 174.
The KEY command is used to define a key component for a PD. A key
component helps to identify a particular phase when two or more PDs would
otherwise be indistinguishable. It is not necessary to define a key component
unless a flash calculation needs to identify phases uniquely (e.g. a search for a
particular phase fraction). The command has the format:
KEY pd_id key_component_id
or:
KEY pd_id not key_component_id

pd_id is a previously-defined phase descriptor name.


key_component_id is the name of the component which is used to identify
the phase. The rule used is that the key component should be present in the phase
to the maximum amount relative to the total mixture composition. If the

User Guide for Multiflash for Windows Appendix - Multiflash Commands  305
component name is preceded by the keyword not , this means that the
component should be present in the minimum relative concentration.
The model sets and model configuration files supplied identify one liquid phase
as having water as the key component and the other two liquid phases in terms of
not being the water phase. There may be a case where you would wish to
allocate a key component to one of these, e.g.
Key liquid2 CO2;
or
Key liquid1 heaviest

306  Appendix - Multiflash Commands User Guide for Multiflash for Windows
Names 52
BIPs
see Binary interaction parameters 50
BIPs and models 50
BIPs available in Multiflash 51

Index BIPs for CSMA and GERG mixing rule 56


Black Oil Analysis 97, 216
Blending method 124
Blending procedure 126
Bubble and dew point flashes 139
Bubble point 139

C
Calculate 15
Calculating asphaltene precipitation conditions 264
A Calculating mercury dropout 298
Calculating mercury partitioning 296
About Multiflash 190
Calculating the bubble point curve 200
Activity coefficient equations in Multiflash 34
Calculating the dew point curve 201
Activity coefficient methods 34
Calculating the water dew point line 203
Activity coefficient model for gas phase 7
Calculating wax appearance temperature (WAT) 253
Activity coefficient models
Calculating wax precipitation 256
see Models 34
Calculation options 9
Activity coefficients 173
Calculation output 171
Activity model worksheets 286
Calculations 2, 17
Activity Models 175, 176
see Flash calculations 137
Adding a component 65
Calculations with inhibitors 244
Adding a user-defined component 68
Can hydrates form at given P and T ? 244
Adding water to the system 203
CAPE-OPEN Interface 184
Adding, inserting, replacing and deleting components
Carbon Dioxide high-accuracy model 33
65
Carry out a the flash calculation 195
Additional calculations 18
Carry out an isenthalpic flash 19
Advanced Equation of state options 29
Carrying out the flash calculation 21
Amount of inhibitor required to suppress hydrates
Case studies 3, 193, 199, 235
247
Asphaltenes 47, 259
Appendix - Multiflash Commands 3
Combined solids 279
Applicability 33
Delump 218
Asphaltene precipitation 279
Getting Started 11
Asphaltene with gas injection 292
Hydrate formation and inhibition 235
Asphaltenes 47, 259, 291
Phase equilibria 199
Case study 47, 259
Polymers 228
Defining Asphaltene model 47
Pure component data 193
Model 40
PVT Analysis 208
ASTM D86 distillation 100
Refrigerants 221
Azeotropes 227
Wax 47, 252
Change the composition 18
B Change the pressure 18
Changing units 166
Backup file 24
Characterisation 95, 103
Basic characterisation properties 106
Check for Updates 189
Benedict-Webb-Rubin-Starling (BWRS) equation of
Choice of Analysis method 268
state 32
Chung-Lee-Starling model 42
Benedict-Webb-Rubin-Starling model 32
Chung-Lee-Starling thermal conductivity method 42
Binary interaction parameters 8, 50, 51, 54, 55, 286
Clearing previous problems 19
Displaying values 51
Combined solids 279
Supplementing and overwriting BIPs 55
Combined Solids Model 48
Temperature dependence 51
Commands 3, 301
Units 54, 286
Appendix 301
BIP databank 57
Tools/Command option 301
BIP set

User Guide for Multiflash for Windows Index  307


Component cannot be found 82 Defining petroleum fractions 105
Component list 87 Defining phase descriptors and key components 304
Components 2, 59, 61, 62, 63, 64, 65, 66, 80, 193 Defining the asphaltene model 260
Adding a component to a stream 65 Defining the components 19
Databanks 59 Defining the hydrate models 235
Deleting components from a stream 66 Defining the mercury model 295
DIPPR 59 Defining the models 20
Displaying pure component data 193 Defining the problem in Multiflash 193
Inserting a component in a stream 65 Defining the wax model 252
Maximum number in stream 61 Deleting components 66
Normal components 59 Deleting petroleum fractions 109
Properties of normal components 59 Delump
Replacing a component in a stream 66 Case study 218
Selecting by formula 64 Delumping tool 110
Selecting by name 62 Delumping tool - Case study 218
Selecting by scrolling through list 62 Dew point 139
Selecting by substring 64 Diffusion coefficient 43
Selecting components 62 Diffusion coefficients 43
Synonyms of components 63 DIPPR 59
Troubleshooting 80 Displaying status for current settings 176
User defined 68 Distillation curves 98
Compositions 12, 21, 133, 167 Document Organisation 2
Amounts and fractions 134, 166, 167, 172 Dortmund Modified UNIFAC method 35
Specifying compositions 133 Dortmund Modified UNIFAC model 35
Conditions 12, 133, 135
Conditions section of main window 133 E
Specifying compositions 133
Specifying enthalpy 135 Edit 13
Specifying entropy 135 Editing petroleum fraction data 108
Specifying internal energy 135 Electrolyte model 77
Specifying pressure 134 Enter a composition for the stream 195
Specifying temperature 134 Entering BIPs 224
Specifying volume 134 Entering petroleum fractions 106
Troubleshooting 135 Enthalpy
Consider all types of solution 163 Specifying for isenthalpic flash 135
Constants 69 Enthalpy definition 174
Co-Polymers 231 Entropy
Corresponding states (CSMA) model 33 Specifying for isentropic flash 135
CPA model CPA 8 Entropy definition 175
CSMA Equation of state models 28
Reference fluids 33 Equations of State Models 28
CSMA model 7 Equations of state provided in Multiflash 28
Cubic plus association (CPA) model 30 Errors 172, 176
Current settings Convergence 172
Display 176 Messages 176
Customising the phase envelope plot 151 Troubleshooting 49, 57, 80, 135, 161, 167, 177
Errors and warning messages 176
Estimated n-paraffin distribution 105
D
Eutectics 228
Data Availability 269 Example for blending 127
Data input 229 Example with asphaltenic crudes 130
Databank not found 80 Example with waxy crudes 128
Databank not licensed 81 Examples
Databanks 8 Case studies 47, 193, 199, 235, 252, 259, 295
DIPPR 59 Getting Started 11
INFODATA 59 Excel interface 198
Default units 165 Exiting Multiflash 25
Defining a mixture 61
Defining a problem in Multiflash 16
Defining models 302

308  Index User Guide for Multiflash for Windows


F How to change a model 45
How to Enter Multiflash Commands 301
File 12 How to exit the program 25
Files How to specify models in Multiflash 43
Loading problem setup files 16 How to use the delumping utility 110
OLGA PVT file 180 Huron-Vidal-Pedersen mixing rule 5
Output file 169, 170 Hydrate
PIPESIM PVT file 179 Inhibitor Calculator 75
Problem setup (mfl) files 16, 23, 24 Nucleation model 38, 46, 237
Prosper PVT file 183 Hydrate calculations 155
Saving a problem setup file 23 Hydrate calculations with Multiflash 238
Saving results in an output file 25 Hydrate dissociation pressure at a given temperature
Fitting the vapour pressure curve 29 246
Fixed phase fraction flash 140 Hydrate dissociation temperature at a given pressure
Fixed phase fraction flashes 140 246
Flash calculations 8, 135, 137 Hydrate formation and dissociation pressure at given
Bubble points 139 temperature 242
Definition of a flash calculation 137 Hydrate formation and dissociation temperature at
Dew point 139 given pressure 239
Fixed phase fraction flash 140 Hydrate formation temperature at given pressure 241
Isenthalpic flash 139 Hydrate inhibitors 75
Isentropic flash 139 Hydrate model 36, 236
Isochoric flash 139 Hydrate models 9
Isothermal (P,T) flash 138 Hydrate phase boundary 243, 246
List of available flash calculations 138 Hydrates 36, 45, 235, 247, 293
Retrograde flash calculations 143 Case study 235
Troubleshooting 161 Hydrate inhibition case study 247
Type of solution 143 Hydrate inhibitor model 39
Flashes available in Multiflash 138 Hydrate model 36
Flory Huggins model 35 Phase boundary 243
Flory-Huggins 35 Hydrates in water sub-saturated systems 38
Fluid amounts 125 Hydrates, Waxes and Asphaltenes 281
Fluid composition 90
Fluid file name 125
Fluid Identification 12 I
Fluid phase model 236 IAPWS-95 33
Font 170 Ice model 237
Fonts 177 Ideal gas equation of state 28
Frame Tab 148 Ideal solution model 34
Fugacity coefficients 173 Including a petroleum fraction 204
Fuller method 43 INFODATA 8
Fuller model 43 Infochem fluids databank 59
Inhibition
G Hydrate inhibition case study 247
Model for hydrate inhibition 39
Gas and liquid Enthalpy based on saturated liquid Inhibitor calculator
heat capacity 175 alcohols/glycols 75
Gas injection 274 Inhibitor Calculator 6, 9, 75
Gas phase models for activity coefficient methods 35 Inhibitor modelling 39
GERG model 33 Initial Values Tab 147
GERG-2008 33 Input conditions
Getting Started 2, 11, 199 see Conditions 133
Groups not available for UNIFAC model 49 Input Conditions 2
Input data 98, 259
H Input files
Loading a problem setup file 16
Hayduk Minhas method 43 Problem setup files 16, 23, 24
Hayduk-Minhas method 43 Saving a problem set up file 23
Help 187 Inserting a component 65
HELP 3, 15 Installation 3
Help Topics 187

User Guide for Multiflash for Windows Index  309


Interface to other programs 137, 198, 227 Liquid viscosity 122
Excel spreadsheet 137, 198, 227 Wax Appearance Temperature 119
Internal energy Matching Density/Volume 118
specifying as a flash condition 135 Matching dew and bubble points 113
Introduction 1, 5, 7, 27, 59, 85, 133, 137, 165, 169, Matching liquid viscosity 122
179, 187, 193, 199, 235, 252, 259, 279, 285, Matching to asphaltene deposition data 273
295, 301 Matching using petroleum fraction properties 112
ISAPWS-95 33 Matching wax data/WAT 119
Isenthalpic flashes 139 Maximum water content allowable before hydrate
Isentropic flashes 139 dissociation 243
Isochoric flashes 139 Menu options 12
Isothermal (P,T) flash 138 Mercury 7
mfl files 16, 23, 24
J Mixing rules 29
Liquid thermal conductivity 42
Joule-Thompson coefficient 10 Liquid viscosity 42
Surface tension 43
K Vapour thermal conductivity 42
Vapour viscosity 42
Key components 141, 304 Model definition 126
Model is not available 49
L Modelling a polar mixture 223
Modelling asphaltene flocculation 40
LBC 5 Modelling hydrate formation and inhibition 36
LBC viscosity model 8 Modelling wax precipitation 39
Lee-Kesler (LK) and Lee-Kesler-Plöcker (LKP) Models 2, 5, 7, 20, 27, 35, 45, 50
equations of state 32 Advanced equations of state 29
Lee-Kesler-Plöcker (LKP) model 32 Asphaltenes 40
Limit the number of phases 163 Benedict-Webb-Rubin-Starling (BWRS) 32
Linear Gradient Theory 43 Binary interaction parameters (BIPs) 50
Linear Gradient Theory model 43 Chung-Lee-Starling 42
Liquid dropout and Wax precipitation curve 9 Corresponding states (CSMA) 33
Liquid dropout curve calculation 154 COSTALD model 40
Liquid enthalpy based on saturated liquid heat Cubic plus association (CPA) 30
capacity 175 Diffusion coefficients 43
Liquid thermal conductivity mixing rule 42 Dortmund Modified UNIFAC 35
Liquid viscosity mixing rule 42 Flory Huggins 35
Liquid-liquid equilibria 226 Fuller model 43
Loading a model from a .mfl file 44 Gas phase models 35
Loading a pre-defined MFL file 24 GERG model 33
Loading a problem setup file 16 Hayduk Minhas method 43
Loading an existing problem file 16 Hydrate model 36
Loading files Hydrate nucleation model 38, 46, 237
Loading problem setup files 16 IAPWS-95 33
Log file 25, 169, 170 Ideal gas 28
Saving the log file 25 Ideal solution 34
Lohrentz-Bray-Clark model 41 Lee-Kesler-Plöcker (LKP) 32
Lohrenz-Bray-Clark method 41 Linear Gradient Theory 43
Liquid density model 40
M Lohrentz-Bray-Clark 41
Macleod-Sugden 43
Macleod-Sugden 2-phase variant (MCSA). 43 Mixing rules 29
Macleod-Sugden method (MCS). 43 Model definitions 27
Macleod-Sugden model 43 NRTL 34
Manipulating the Output 173 Pedersen 41
Mass fraction flash 140 Peneloux density correction 29
Match bubble point 289 Peng Robinson (PR) 28
Matching 113, 118, 119, 124 PSRK 30
Asphaltene flocculation 273 Redlich-Kwong (RK) 29
Dew and bubble points 113, 118, 124 Redlich-Kwong-Soave (RKS) 29

310  Index User Guide for Multiflash for Windows


Regular Solution 35 No reservoir pressure 271
Selecting model set 20 No resin - asphaltene ratio 270
Selecting new model 45 Normal components 59
Solid models 36 DIPPR 59
SuperTRAPP 42 INFODATA 59
Surface tension 43 Properties of normal components 59
Surface Tension 43 Notes 285
Transport property 40 n-Paraffin distribution 102
Troubleshooting 49 NRTL equation 34
Twu 41 NRTL model 34
UNIFAC 35 Nucleation 239
UNIQUAC 35 Nucleation model 38, 46, 237
Viscosity 41
Wax 39 O
When to use activity methods 35
When to use BWRS 32 Obtaining properties from the Pure Component Data
When to use CPA 30 option 195
When to use CSMA 33 Oil and gas systems 199
When to use cubic equations of state 30 OLGA 180
When to use equation of state methods 28 PVT file 180
When to use LKP 32 OLGA hydrate file 182
When to use PSRK 30 OLGA tables 6, 10
When to use ZJ model 31 OLGA wax file 182
Wilson E 34 On-line help 187, 191
ZJ (Zudkevitch-Joffe) model 31 Other calculations 22, 299
Models and input requirements 70 Other flash calculations 206
Models for solid phases 36, 45 Other flash calculations with hydrates 243
Models tab 6 Other properties 106
Molecular weight and specific gravity 91 Other thermodynamic models 40
Multiflash Output 3, 25, 169, 170
Calculations 138 Enthalpy datum 174
Case studies 193 Entropy datum 175
Conditions 133 Level of physical property output 160
Exiting the program 25 Phase Identification 174
Getting Started 11 Saving the output file 25
Interfaces to other programs 179 Troubleshooting 177
Models 27 Writing the results to a file 169, 170
Output 169
Overview 1 P
Software system 1
Starting the program 11 PC-SAFT equation of state 31
Units 165 Pedersen Model 41
Multiflash Error Codes 189 Peng-Robinson (PR) model 28
Multiflash Excel Interface 10 Peng-Robinson 1978 (PR78) equation of state 29
Multiflash main window 11 Peng-Robinson equation of state 28
Multiflash Main Window 11 Performance enhancements 5
Multiflash phase equilibrium algorithm 8 Petroleum Fluid Blending 124
Multiflash Software System 1 Petroleum Fluids 2
Multi-reference fluid corresponding states (CSMA) Petroleum fractions 59, 105, 108, 109
model 33 Defining petroleum fractions 105
Deleting petroleum fractions 109
Editing petroleum fraction data 108
N
Importing characterised petroleum fractions 105,
New Features 5, 7 204
New Features and Changes in Version 4.2 2 Troubleshooting 109
New Features and Changes in Version 4.3 2 Petroleum Fractions 61
New icon for Asphaltene precipitation curve 9 Phase descriptors 303
No information on the amount of asphaltene in the oil Phase diagram 143
269 Phase envelope 22, 144, 162, 202
No reservoir or precipitation conditions 272 Customising 151

User Guide for Multiflash for Windows Index  311


Phase envelope output 150 Saving an analysis 97
Phase Envelopes 144 Troubleshooting 105
Phase Envelopes for solids 9, 153 PVT Lab Analysis input 85
Phase labelling 174, 177 PVT Lab Analysis input with n-paraffin analysis 101
Phase names 140 PVTSim CHC file import tool 185
Phase tab 145 PVTSim import tool 6, 9
Phases 36, 140, 143, 162, 177, 237, 303
Example of a phase diagram 143 R
Example of a phase envelope 162
Phase descriptors 303 Redlich-Kwong (RK) and Redlich-Kwong-Soave
Phase labels 177 (RKS) equations 29
Phase names 140, 177 Redlich-Kwong (RK) model 29
Phase types 140 Redlich-Kwong-Soave (RKS) model 29
Selecting phases 44 Reference fluids 33
Solid phases 36 Refrigerant mixtures 221
Physical properties of a pure component 193 Refrigerants
PIPESIM Case study 221
PVT file 179 Regular Solution model 35
Pipesim PVT files 179 Regular Solution theory 35
Plot the phase envelope 162 Reid vapour pressure 9, 158
Plots Reid Vapour Pressure 158
H, S, U, V phase boundaries 144 Replacing a component 66
Phase envelope 144 Results 12, 17, 24, 25, 169
Polar systems 222 Level of physical property output 160
Polymers 228 Printing the results 12, 24
Case study 228 Results window 169
Poynting correction 7 Saving the results in a file 12, 25
PRA 8 Retrograde 143
Presence of water 105 Retrograde condensation 143
Pressure Retrograde dew point 143
Specifying as an input condition 134 Retrograde Dew Point 9
Pressure and temperature 21 RKSA 8
Printing RKSA-Info, CPA and PR 8
Output 24 Running Multiflash 2
Printing the output 24, 171
Problem setup file 23 S
Loading a problem setup file 16
Saving a problem setup file 23 Salt calculator 77
Problem setup files 16, 24 Salt component 5
Problems defining a petroleum fraction 109 Salt inhibition 248
Problems when matching 123 SARA Analysis 94
Properties Saving a PVT Analysis 97
Displaying pure component properties 193 Saving files
Level of physical property output 160 Saving a problem setup file 23
Physical property databanks 59 Saving results
Properties of normal components 59 Writing the results to a file 169, 170
Property output in Multiflash 160 Saving the output 25
Prosper Saving the problem setup 23
PVT file 183 Scale model 237
Prosper PVT files 183 Scale precipitation 250
Provide a key component 164 Scaling and general freeze-out model 36
Provide a starting estimate 163 Searching for components
Pseudo component generation table. 6 By formula 64
Pseudocomponents 94 By name 62
PSRK equation of state 30 By scrolling through list 62
PSRK model 30 By substring 64
Pure solid phases 46 Identifying synonyms 63
PVT Analysis 9, 85, 97, 208, 288 Select 13
Case study 208 Select components by formula 64
n-paraffins 101 Select components by name 62

312  Index User Guide for Multiflash for Windows


Select components by scrolling through a list 62 Models 42
Select components by substring 64 Titration 275
Selecting components 62 To generate the file 183
Sensitivity of calculations to variation in input data To specify the Ideal Mixing model set: 193
268 Tolerance calculations 157
Sensitivity to characterisation 105 Too many components in the mixture 83
Set Input Conditions 21 Tools 14
Setting up a new problem 19 Total amount of fluid 93
Setting up preferred models in Multiflash 45 Total Wax Content 93
Show functions 176 Transport properties
Soave-Redlich-Kwong (RKS) model 29 Displaying transport property values 160
Solid freeze-out model 36 Models 40
Solids.xls 288 Surface tension 43
Specific gravity conversion 91 Thermal conductivity 42
Specify the pure component of interest 194 Viscosity 41
Specifying compositions 133 Transport property models 40
Specifying data for a user-defined component 69 Troubleshooting 49, 57, 80, 105, 135, 161, 167, 177
Specifying enthalpy, entropy and internal energy 135 Binary interaction parameters 57
Specifying temperature, pressure and volume 134 Calculations 161
Specifying the data source 61 Components 80
Specifying the physical property output level 194 Models 49
Stability analysis 172 Output 177
Starting estimate for flash calculations 163 PVT Analysis 105
Starting Multiflash 11 Units 167
Stream types 72 Troubleshooting - BIPs 57
SuperTRAPP model 41, 42 Troubleshooting - components 80
SuperTRAPP thermal conductivity method 42 Troubleshooting - flash calculations 161
SuperTRAPP Viscosity Model 41 Troubleshooting - input conditions 135
Supplementing or overwriting BIPs 55 Troubleshooting - models 49
Supplying an external file of BIPs 303 Troubleshooting - output 177
Surface tension 6, 43 Troubleshooting - PVT Analysis 105
Models 43 Troubleshooting - units 167
Surface tension mixing rule 43 Tutorial 11
Sutton Model for surface tension. 5 Twu Model 41
Synonyms 63
Component synonyms 63 U
UNFACFIT.xls 285
T
UNIFAC 286
Table 15 UNIFAC method 35
Tables 6, 10 UNIFAC model 35
Tabular output 137, 179 UNIQUAC 35
Excel interface 137 UNIQUAC equation 35
PSF file for HTFS programs 179 Units 3, 54, 57, 165, 166, 167, 286
PVT file for PIPESIM 179 Default units 165
TBP curves 215 Selecting units 166
TBP distillation 99 Troubleshooting 167
Technical support 25, 191 Units for BIPs 54, 57, 286
Temperature Units for BIPs 54
Specifying as an input condition 134 Updates 5, 7
Temperature dependence of BIPs 51 Usability 10
Temperature-dependent properties 69 Use the P,T flash 162
The basis of a flash calculation 137 User defined carbon number cuts 213
The Multiflash GUI 1 User defined components 68
The output does not include everything expected 177 User Defined Cuts 96
The Peneloux density correction 29 User-defined components 68
The results 17 Using INFOBIPS 223
The results window 169 Using the fixed phase flash 142
The Toolbar 16 Using the menu 43
Thermal conductivity 42

User Guide for Multiflash for Windows Index  313


V
Vapour thermal conductivity mixing rule 42
Vapour viscosity mixing rule 42
Vapour-liquid-liquid equilibria 227
Viewing and editing pure component data 66
Viewing BIP values 51
Viscosity 41
Matching liquid viscosity 122
Models 41
VLEAutoPlot 145
VLEFIT.xls 287
Volume
Specifying as a flash condition 134
Volume fraction flash 140

W
Warning option for matching and PVT form 24
Warnings 172, 176, 226
Additional phases 226
Convergence 172
Water cut 93
Wax 252, 290
Case study 47, 252
Coutinho Model 39
Defining Wax model 47
Matching WAT 119
Wax and Asphaltene precipitation 280
Wax Appearance Temperature 155
Wax calculations 155
Wax Precipitation Curve 156
Waxes 47
Website support 191
What is a model? 27
What the model definition means 302
What types of model are available? 27
When to use activity coefficient models 35
When to use CPA. 30
When to use cubic equations of state 30
When to use equation of state methods 28
When to use LK or LKP 32
When to use PSRK 30
When to use the BWRS equation 32
When to use ZJ model 31
When you may need to use commands 301
Will hydrates form at given P and T ? 238
Wilson A equation 34
Wilson E equation 34
Wilson E model 34
Windows GUI 6, 9
Writing the results to a file 170

Z
ZJ (Zudkevitch-Joffe) model 31

314  Index User Guide for Multiflash for Windows

You might also like