#-----------------------------------------------------------------------
# RKS 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 RKSBIP
bipdata OILANDGAS INFOBIPS;

# Define the characterisation type:
chardata INFOCHAR TBSOEREIDE;

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

# Define the original RKS equation as the thermodynamic model MRKS
# To set BIPs use the default BIPSET identifier RKSBIP
bipset RKSBIP 1;
model MRKS RKS RKS RKSBIP;

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

# Remove all current PDs
remove pd;

# define the phase descriptor named 'Gas' for the gas phase
# (Gas uses the MRKS 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 GAS gas MRKS * * MPDVISC MSTRAPP MLGSTMPRA;

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

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

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