#-----------------------------------------------------------------------
# REFRIG configuration file for 4 phases: gas, 2 liquids, and water
# to be used for deriving the transport properties from the databank
# with BIPs from INFOBIPS
#
# Revised: 28.01.2011
#
# Uses the advanced version of the RKS 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
# Uses ideal gas/ideal solution for liquid density and transport properties
#-----------------------------------------------------------------------
remove all;

# Pure component data are taken from the Infodata data bank
puredata Infodata;

# Binary interaction data to be estimated with the INFOBIPS and OILANDGAS
# databank method unless entered by the user into bipset RKSABIP
bipdata INFOBIPS;

# Define the characterisation type:
chardata INFOCHAR TBSOEREIDE;

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

# Define the RKSA equation as the thermodynamic model MRKSA
# To set BIPs use the default BIPSET identifier RKSABIP
bipset RKSABIP 1;
model MRKSA RKSA PSAT LDEN * RKSABIP;

# Define the ideal gas and ideal solution models for liquid debnsity
model MIDLMRKSA IDL MRKSA;

# Define models for the viscosity, thermal conductivity and surface
# tension using simple mixing rules for liquid phases
model MLVS1 LVS1;
model MLTC1 LTC1;
model MST1 ST1;

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

# Define the Chung, Lee and Starling method as the thermal conductivity
# model MCLSMRKSA (MCLSMRKSA uses the model MRKSA to calculate densities)
# for gas phase.
model MCLSMRKSA CLS MRKSA;

# Remove all current PDs
remove pd;

# define the phase descriptor named 'Gas' for the gas phase
# (Gas uses the MRKSA model for the thermodynamic properties, and mixing rules
# for the vapour viscosity and thermal conductivity)
pd GAS gas MRKSA * * MPDVISC MCLSMRKSA;

# Define the phase descriptor 'Liquid1' for the 1st liquid phase.
# (Liquid1 uses the MRKSA model for the thermodynamic properties,
# exept for volume/density  and transport properties
# where the ideal model/mixing rule option is used)
pd LIQUID1 liquid MRKSA MIDLMRKSA MRKSA MLVS1 MLTC1 MST1;

# Define the phase descriptor 'Liquid2' for the 2nd liquid phase.
pd LIQUID2 liquid MRKSA MIDLMRKSA MRKSA MLVS1 MLTC1 MST1;

key LIQUID1 not 007732-18-5;
key LIQUID2 not 007732-18-5;

# Define the level of propety output
set physprops 1VCS;

