Getting a copy of the Library
In order to get the source code for the library,
please send an
e-mail request to the authors specifying
your name, affiliation, and possibly the subpackages you need (see
below Source Files for EGLIB).
We also recomend that you read the user agreement carefully.
Using this server you can already
download the file
eglib.tar.gz
Once you have downloaded eglib.tar.gz,
perform the following steps
- gunzip eglib.tar.gz
- tar -xf eglib.tar (creates a directory called eglib)
The EGLIB Directory
In this directory, you will find the following files
- Makefile: a makefile with several possible targets
(see below).
- README: the information
displayed here.
- USER_AG: the user agreement.
- Fortran programs egfrtp.f and
egfrmc.f which can be used in a preprocessing
stage to generate the binary file Linkeg (see below).
- example.f: a fortran program providing an example
of how to use the library.
- makeex: the makefile for the example program.
File ck.f should contain the Chemkin I package.
- manual.ps: a postscript file containing the user's
guide with detailed instructions on how to use the library.
Source Files for EGLIB
The source files of the library are:
- an initialization routine called EGini.f
- a common block used internally by
the library and called eg.cmn
- three subpackages called EGFlib.f,
EGMlib.f and EGSlib.f.
- EGSlib.f contains
single input data routines that evaluate
transport coefficients for a given state of the mixture,
i.e. for given pressure, temperature and species mass fractions.
- EGFlib.f and EGMlib.f
contain multiple input data routines
that evaluate transport coefficients for a family of states
of the mixture. The family of states is typically indexed
by the grid nodes discretizing the computational domain
or a given subdomain. The difference between
EGFlib.f and
EGMlib.f arises from
the way transport coefficients of
vector and matrix type are stored. Extensive details are
given in file manual.ps.
Generating the Binary File Linkeg
When the library is initialized, several molecular
parameters are read from a binary input file called Linkeg.
This file is described in detail in the user's guide.
Since most users of the library will probably have these
parameters already stored in a binary file resulting from
a CHEMKIN transport package (either TPLIB or MCLIB), we have provided
two driver programs which generate the binary file Linkeg
either from a binary file called Linktp (TPLIB package)
or from a binary file called Linkmc (MCLIB package).
The driver programs are contained in source files
Since the format of your Linktp or Linkmc file may be slightly
different from the one used by egfrtp.f and egfrmc.f, we recommend
that you verify the reading statements in
egfrtp.f and egfrmc.f
before running them.
Makefile
In order to allow for some flexibility, the
Makefile offers several possible targets
- EGlib.a (the default): this option will generate the largest
possible version of the library including the three sub-packages
- EGFlib.a: this option will allow
you to initialize the library
and to use the routines pertaining to subpackage
EGFlib.f.
- EGMlib.a: this option will allow
you to initialize the library
and to use the routines pertaining to subpackage
EGMlib.f.
- EGSlib.a: this option will allow you
to initialize the library
and to use the routines pertaining to subpackage
EGSlib.f.
- egfrtp: this option generates
the executable file egfrtp from
egfrtp.f. egfrtp can be used in order to generate the binary
file Linkeg from Linktp (obtained with TPLIB).
- egfrmc: this option generates
the executable file egfrmc from
egfrmc.f. egfrmc can be used in order to generate the binary
file Linkeg from Linkmc (obtained with MCLIB).
- clean: this option will remove all the object files.