#-----------------------------------------------------------------------
# BWRS configuration file for 4 phases: gas, 2 liquids, and water
#
# Revised: 28.01.2011
#-----------------------------------------------------------------------

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 BWRSBIP
bipdata INFOBIPS;

# Define the characterisation type:
chardata INFOCHAR TBSOEREIDE;

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

# Define the BWRS equation as the thermodynamic model MBWRS
# To set BIPs use the default BIPSET identifier BWRSBIP
bipset LGSTBIP 1 constant ;
bipset BWRSBIP 1 CONSTANT;
model MBWRS BWRS BWRS BWRSBIP;

# Define the SupperTRAPP model for viscosity: MPVISC
model MSTRAPVISC SPVISC LFIT;

# Define the SuperTRAPP method as the thermal conductivity
model MSTRAPP SPTHCOND;

# Define the LGST method as the surface tension model
model MLGSTMBWRS LGST MBWRS LGSTBIP;

# Remove all current PDs
remove pd;

# define the phase descriptor named 'Gas' for the gas phase
pd GAS gas MBWRS MBWRS MBWRS MSTRAPVISC MSTRAPP MLGSTMBWRS;


# Define the phase descriptor 'Liquid1' for the 1st hydrocarbon liquid phase.
pd LIQUID1 liquid MBWRS MBWRS MBWRS MSTRAPVISC MSTRAPP MLGSTMBWRS;

# Define the phase descriptor 'Liquid2' for the 2nd hydrocarbon liquid phase
pd LIQUID2 liquid MBWRS MBWRS MBWRS MSTRAPVISC MSTRAPP MLGSTMBWRS;

# Define the phase descriptor 'Water' for the aqueous liquid phase
pd WATER liquid MBWRS MBWRS MBWRS MSTRAPVISC MSTRAPP MLGSTMBWRS;

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