#-----------------------------------------------------------------------
# PR configuration file for 4 phases: gas, 2 liquids, and water
#
# Revised: 17.01.2006
# Changed: the defaullt viscosity model to allow fitting.
#-----------------------------------------------------------------------
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 PRBIP
#bipdata OILANDGAS INFOBIPS;
bipdata OILANDGAS;

# Define the characterisation type:
chardata INFOCHAR TBSOEREIDE;

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

# Define the PR equation as the thermodynamic model MPR
# To set BIPs use the default BIPSET identifier PRBIP
bipset PRBIP 1;
model MPR PR PRBIP;

# 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 MPR to calculate densities)
bipset LGSTBIP 1 constant ;
model MLGSTMPRA LGST MPR LGSTBIP;

# Remove all current PDs
remove pd;

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

# Define the phase descriptor 'Liquid1' for the 1st hydrocarbon liquid phase.
# (Liquid1 uses the MPR 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 MPR * * MPDVISC MSTRAPP MLGSTMPRA;

# Define the phase descriptor 'Liquid1' for the 2nd hydrocarbon liquid phase.
pd LIQUID2 liquid MPR * * MPDVISC MSTRAPP MLGSTMPRA;

# Define the phase descriptor 'Water' for the aqueous liquid phase
pd WATER liquid MPR * * 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;
