Cantera: Difference between revisions
From charlesreid1
(Created page with "= Installation = Installing Cantera can be tricky, if you don't follow instructions exactly. == Mac == If you're installing Cantera on a Mac, you have to [[Compiling Software|...") |
|||
| Line 1: | Line 1: | ||
Cantera is a C++ package that provides objects for solving chemical kinetics, thermodynamics, and transport problems. The core of Cantera is written in C++, but it provides interfaces for using Cantera through [[Matlab]] (via a Matlab toolbox), [[Python]], or Fortran. | |||
= Installation = | = Installation = | ||
== Mac == | == Mac == | ||
| Line 20: | Line 21: | ||
I highly recommend using version 1.8.0 and Numpy, as Numarray is no longer supported. | I highly recommend using version 1.8.0 and Numpy, as Numarray is no longer supported. | ||
Anther package that is not required but is useful is [https://computation.llnl.gov/casc/sundials/main.html sundials], a suite of nonlinear and differential equation solvers. | Anther package that is not required by Cantera, but that is useful, is [https://computation.llnl.gov/casc/sundials/main.html sundials], a suite of nonlinear and differential equation solvers. | ||
| Line 33: | Line 34: | ||
$ make install | $ make install | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= Resources = | = Resources = | ||
Revision as of 17:15, 6 October 2010
Cantera is a C++ package that provides objects for solving chemical kinetics, thermodynamics, and transport problems. The core of Cantera is written in C++, but it provides interfaces for using Cantera through Matlab (via a Matlab toolbox), Python, or Fortran.
Installation
Mac
If you're installing Cantera on a Mac, you have to build it from source.
Start by downloading the Cantera 1.7 or 1.8 source code, and unzip it. Go to this directory, and edit the preconfig file. This is a wrapper for configure (so when you are ready to configure, you don't run ./configure, you run ./preconfig). Preconfig contains many options that are laid out very clearly, so go through the file and set values appropriate to your system.
Dependencies
If you wish to use Cantera from Python, you have two options:
- Use version 1.8.0 and install Numpy
- Use version 1.7.x and install Numarray
I highly recommend using version 1.8.0 and Numpy, as Numarray is no longer supported.
Anther package that is not required by Cantera, but that is useful, is sundials, a suite of nonlinear and differential equation solvers.
Building
Your next steps are obvious:
$ ./preconfig
$ make
$ make install
Resources
Cantera Google Groups Page - https://code.google.com/p/cantera/
- Download Cantera 1.8.0 (beta), source code ONLY
- Check out a copy of the subversion repository
Cantera (Google) Users Group Page - https://groups.google.com/group/cantera-users?pli=1
- Download Cantera documentation
- Use the discussion board
Cantera SourceForge Page - http://sourceforge.net/projects/cantera/files/
- Download Cantera 1.7.1, source code or (Windows) binaries
- Download (more) Cantera documentation