#-----------------------------------------------------------------------
# PRA configuration file for 4 phases: gas, 2 liquids, and water
#
# Revised: 04.02.2010
# Changed: new defaults for thermal conductivity and surface tension.
#
# Uses the advanced version of the PR eos with the a parameter
# fitted to the vapour pressure, the volume is corrected using the
# Peneloux method and the mixing rule is the conventional VDW1
#-----------------------------------------------------------------------
remove all;
# Pure component data are taken from the Infodata data bank
puredata Infodata;

# Binary interaction data to be estimated with the Infochem "infobips" and
# "oilandgas" method unless entered by the user into bipset PRABIP
bipdata OILANDGAS INFOBIPS;

# Define the characterisation type:
chardata INFOCHAR TBSOEREIDE;

# remove all currently defined models and bip sets
remove models;remove bipsets;

# Define the PRA equation as the thermodynamic model MPRA
bipset PRABIP 1 constant ;
bipset LGSTBIP 1 constant ;
model MPRA PRA PSAT LDEN VDW PRABIP;

# Define the Pedersen model for viscosity: MPDVISC
model MPDVISC PDVISC LFIT;

# Define the Super TRAPP method as the thermal conductivity
model MSTRAPP SPTHCOND;

# Define the Linear Gradient Theory method as the surface tension model MLGSTMPRA
# (MLGSTMPRA uses the thermodynamic model MPRA to calculate densities)
model MLGSTMPRA LGST MPRA LGSTBIP;

# Remove all current PDs
remove pd;

# define the phase descriptor named 'Gas' for the gas phase
# (Gas uses the MPRA model for the thermodynamic properties, the MPDVISC
# model for the viscosity, the MSTRAPP model for the thermal conductivity
# and MLGSTMPRA for surface tension)
pd GAS gas MPRA * * MPDVISC MSTRAPP MLGSTMPRA;

# Define the phase descriptor 'Liquid1' for the 1st hydrocarbon liquid phase.
# (Liquid1 uses the MPRA model for the thermodynamic properties, the MPDVISC
# model for the viscosity, the MSTRAPP model for the thermal conductivity
# and the MLGSTMPRA model for the surface tension).
pd LIQUID1 liquid MPRA * * MPDVISC MSTRAPP MLGSTMPRA;

# Define the phase descriptor 'Liquid2' for the 2nd hydrocarbon liquid phase
pd LIQUID2 liquid MPRA * * MPDVISC MSTRAPP MLGSTMPRA;

# Define the phase descriptor 'Water' for the aqueous liquid phase
pd WATER liquid MPRA * * MPDVISC MSTRAPP MLGSTMPRA;

# Define water as the key component for aqueous phase and not water
# as the key for hydrocarbon liquid phases
key LIQUID1 not 007732-18-5;
key LIQUID2 not 007732-18-5;
key WATER 007732-18-5;
