#-----------------------------------------------------------------------
# Configuration file for RKSA eos model with Infochem mixing rules
#
# Revised: 17.01.2006
# Changed: the defaullt viscosity model to allow fitting.
#
# Defines 4 fluid phases: gas, 2 liquids and water
#-----------------------------------------------------------------------

# 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 RKSABIP3.
# Note that the eos mixing rule requires 3 BIPs per binary: Kij, Kji and
# Alphaij.
bipdata OILANDGAS INFOBIPS;

# Define the characterisation type:
chardata INFOCHAR TBSOEREIDE;

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


# Define the RKSA eos with a parameter fitted to VP,the Peneloux
# volume correction and the Infochem mixing rule
bipset RKSABIP3 3;
model MRKSANRTL RKSA PSAT LDEN NRTL RKSABIP3;

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

# Define the Chung, Lee and Starling method as the thermal conductivity
model MCLSMRKSANRTL CLS MRKSANRTL;

# Define the MacLeod-Sugden method as the surface tension model Mst
model MMCSMRKSANRTL MCS MRKSANRTL;

# Remove all current PDs
remove pd;

# define phase descriptors:
#   PD name      phase type
#   Gas          gas
#   Liquid1      liquid
#   Liquid2      liquid
#   Water        liquid
pd GAS gas MRKSANRTL * * MPDVISC MCLSMRKSANRTL;
pd LIQUID1 liquid MRKSANRTL * * MPDVISC MCLSMRKSANRTL MMCSMRKSANRTL;
pd LIQUID2 liquid MRKSANRTL * * MPDVISC MCLSMRKSANRTL MMCSMRKSANRTL;
pd WATER liquid MRKSANRTL * * MPDVISC MCLSMRKSANRTL MMCSMRKSANRTL;

# 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;
