Shock & Detonation Toolbox - Linux Installation
There are two major components to this installation: Install Cantera and Install SciPy.
Cantera Installation - Linux
- First Python 2.4 and the Numeric/numpy package must be installed. If they are not installed in /usr/bin they must have their paths set or sourced from your .bashrc file before installing Cantera.
- Installation Instructions: Install the Cantera Libraries developed by Goodwin (cantera.org)
- Read Cantera_index.py for a list of the available functions in Cantera for Python
- To test Cantera functionality
The terminal should look like the screen shot below
- Open a python interpreter by typing
- Import the Cantera module
from Cantera import *
- Create a gas object
gas = importPhase('h2o2.cti')
- print the gas object
NOTE: If there is an error, check
for h2o2.cti. If it does not exist, try a different cti file in that directory, i.e. gri30.cti,
in place of h2o2.cti.
- Create a site-package folder for the shock & detonation toolbox in your python directory
- SDToolbox.tar: Add the modules to this toolbox
- demos.tar: Save the demo files to a location where you plan to store the output files
For more information about these files visit the demos page
SciPy Installation - Linux
- Download SciPy tarball and unpack
- Follow the INSTALL.txt to install Numeric, LAPACK, ATLAS, scipy_distutils, & F2PY in this given order. NOTE: Numeric should already be installed if you installed Cantera first.
- Install SciPy according to INSTALL.txt