Chemical kinetics, thermodynamics, and transport tool suite
Go to file
2003-04-17 08:48:59 +00:00
apps Initial revision 2003-04-14 17:57:48 +00:00
bin Initial revision 2003-04-14 17:57:48 +00:00
Cantera Initial revision 2003-04-14 17:57:48 +00:00
config Initial revision 2003-04-14 17:57:48 +00:00
data Initial revision 2003-04-14 17:57:48 +00:00
examples Initial revision 2003-04-14 17:57:48 +00:00
ext Initial revision 2003-04-14 17:57:48 +00:00
include Initial revision 2003-04-14 17:57:48 +00:00
lib Initial revision 2003-04-14 17:57:48 +00:00
test_problems Initial revision 2003-04-14 17:57:48 +00:00
tools Initial revision 2003-04-14 17:57:48 +00:00
.cvsignore Initial revision 2003-04-14 17:57:48 +00:00
config.h Initial revision 2003-04-14 17:57:48 +00:00
config.h.in Initial revision 2003-04-14 17:57:48 +00:00
configure *** empty log message *** 2003-04-17 08:48:59 +00:00
INSTALLING Initial revision 2003-04-14 17:57:48 +00:00
License.rtf Initial revision 2003-04-14 17:57:48 +00:00
License.txt Initial revision 2003-04-14 17:57:48 +00:00
Makefile.in Initial revision 2003-04-14 17:57:48 +00:00
README Initial revision 2003-04-14 17:57:48 +00:00

        
                             C A N T E R A

                              release 1.3.5
                                 2/03

      Copyright (c) 2001, 2002 California Institute of Technology


License information
===================

See the file "License.txt" for information on the terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.

All trademarks referenced herein are property of their respective
holders.



Installing Cantera
==================

To download and install Cantera, run Python script 'ctupdate.py.'
It will perform a binary install on Windows, and build everything from
the source on any other platform.

Alternatively, to manually build Cantera, follow the procedure below.




Building Cantera from the source code
=====================================


1) Unix/linux/cygwin build procedure
------------------------------------

Run the 'configure' script to build the Makefiles. By default, 'make install' 
will install under '/usr/local.' If you want to install Cantera somewhere else,
run 'configure' with the 'prefix' option:

configure --prefix=$HOME/my_cantera_dir

If necessary, edit 'configure' to set options appropriate for your
system. As shipped, the configure script is set up to build Cantera on
a linux system.

After running 'configure', type:

make
make install

The last one may need to be run as super-user.

By default, this procedure also builds the Python and MATLAB interfaces.
Edit 'configure' to disable building these if desired. 

To use either the Python or Matlab interfaces, the shared library file
installed in '/usr/local/lib' (or wherever you installed it) must be on the
library search path. Set LD_LIBRARY_PATH if necessary:

export LD_LIBRARY_PATH=$HOME/my_cantera_dir/lib



2) Windows Build Procedure
--------------------------

Cantera can be built under Windows using Visual C++ and Compaq Visual
Fortran. In the 'win32' directory, open workspace 'cantera.dsw'. Set
the active project to 'examples', and the active configuration to
'Win32 - Release'. Build the project, and execute 'examples.exe' from
the Build menu to verify that it works.

If you plan to build the Python or MATLAB interfaces, you also need to
build project 'ct'. This creates a DLL file which by default
is placed in C:\WINDOWS\SYSTEM32. Edit the project settings if you want
to put it somewhere else. 

Finally, build project 'ctsetup'. This creates a simple utility that
writes a Visual Studio project file or a unix Makefile and a prototype
C++ main program that you can use as the starting point to develop
your own C++ application.



Configuring Matlab
---------------------

Before you can build the Matlab toolbox from the source, Matlab needs
to be configured for your compiler. In Matlab type:

mex -setup

and enter the number for the compiler you wish to use.


Configuring Python
---------------------

Before you can build the Python interface from the source, you need to
have Python 2.0 or greater, you need to be able to write into its
'Lib/site-packages' directory, and the 'Numeric' package must be
installed. If any of these are not the case, run the Python script
'ctupdate.py' found in the 'tools/bin' directory to download and
install Python and Numeric.