Installation


There are two different versions of Cantera at Cerfacs , both pre-compiled and ready to use :

  • The 1.8 version, modified to inculde a simplified transport model (constant Sc and Pr numbers) and be able to deal with analytically reduced chemistry (ARC).
  • And the more recent 2.1.1 version, also modified.

There is also currently development on a more recent version (2.3), available via the CERFACS GitLab. E-mail felden@cerfacs.fr or lapeyre@cerfacs.fr if you want to get involved ! :

Note that you should use the version 2.1.1 as much as possible, as this is the stable version !! Additionally, frequently visit the 'Updates' section, to keep informed about the latest developments in the CERFACS version of the code !


"1.8" Cerfacs modified version (based on the 1.7 original version)

The pre-compiled version(s) can be used at Cerfacs on every fedora core 14 computer, except kronos. You need not worry about the type of environment you use, just open a terminal and type:

module load cantera/1.8*

Where the * stands for the version you want to use. See this page for more information about the different available versions. A modified 1.8 version of Cantera will then be available to you, and all you need to do next is execute your Cantera scripts.

If you need to access the code , you can get the sources on your local machine from your terminal:

svn co file:///home/cfd1/srcantera/SVNREPO/CANTERA18AVBP CANTERA18AVBP

This will generate a file named CANTERA18AVBP with all the sources, that you can peruse and modify all you want.


2.1.1 Cerfacs versions

The pre-compiled version(s) can be used at Cerfacs on every fedora core 14 computer, except kronos. You need not worry about the type of environment you use, just open a terminal and type:

module load cantera/2.1.1*

Where the * stands for the version you want to use. See this page for more information about the different available versions.

If you need to access the code: you can download the updated sources in a click !! Copy the sources in your working directory and untar them:

tar-xvf cantera211.tar.gz

Alternatively, you can also get the sources on your NFS work directory from your terminal. To do this, log into baal, diablo or asmodan, go into your wkdir and execute this command:

svn co file:///home/cfd1/srcantera/SVNCANTERA211

These two procedures will generate a directory named SVNCANTERA211 with all the sources, that you can peruse and modify all you want.

Compile the Cerfacs-Cantera version (2.1.1)

Once downloaded, you can compile the sources (although it is recommanded to use the precompiled versions !). First, you will have to set the right PATH and PYTHONPATH environment:

For a bash SHELL environment:

PYTHONPATH=
PATH=/usr/bin/:$PATH

For a tcsh SHELL environment:

setenv PYTHONPATH
setenv PATH /usr/bin:$PATH

Then, go into SVNCANTERA211 and launch the command:

scons build prefix=pathtowkdir/SVNCANTERA211/INSTALL_DIR optimize=n blas_lapack_libs=blas,lapack

If all goes well, launch the install:

scons install

In the end, it will return a "source" command that you will need to use to launch your Cantera simulations !



Please, report all bugs by e mail : felden@cerfacs.fr or cazeres@cerfacs.fr