You are on page 1of 1

UNIFAC.

BAS is the BASIC language program for the UNIFAC group


contribution method of predicting activity coefficients described in Chapter 7
and especially in Appendix A7.4 of the second edition of "Chemical and
Engineering Thermodynamics" by Stanley I. Sandler. The flow of the program
is described in that appendix.

To run UNIFAC.BAS you will need to have identified the functional groups
in each of the molecules in the mixture of interest. Table 7.5-2 may be of
help in functional group assignments. For binary systems, to do an P-x-y
calculation, and to plot an x-y diagram (if you have a graphics monitor) you
will also need the Antoine (vapor pressure) constants for the substances of
interest, or their vapor pressures at the temperatures of interest. Note that
the results of all calculations are displayed on the screen, but are not
stored. Therefore, you should be prepared to either write the results of the
calculations on paper or, if a printer is attached to your computer, print the
contents of the screen (by pressing the shifted key PrtSc). You may also have
the results printed by replacing the word PRINT in the output statements with
LPRINT. Alternatively, by simultaneously pressing the Ctrl and PrtSc keys,
everything that appears on the screen will also be sent to the printer until
the Ctrl and PrtSc keys are pressed again.

To run UNIFAC.BAS, you must first load it into BASICA. If you are
unfamiliar with how to do this, it is suggested that you use the following
procedure. First make drive A the default drive by typing A:[enter] at the
DOS > prompt. Next put a disk containing advanced BASIC (i.e., IBM BASICA) in
drive A and type BASICA [enter]. After BASICA is loaded, remove the disk from
drive A, insert this disk, and then type LOAD "A:UNIFAC.BAS"[enter]. After
the OK response, type RUN [enter].

This program will run much faster if it is compiled using a BASIC


compiler. If you choose to do this and use a compiler that provides
compilation options (such as QuickBASIC by Microsoft), include the Event
Trapping and Checking Between Statements options. All BASIC compilers are
different, so you will need to consult the documentation for your compiler to
determine how to compile this program which is in ASCII format on this disk.

###################################################################################
###################################################################################
###############################################

You might also like