未分類
category
software installation (3)
* SD Toolbox
1. Download
SDToolbox_Python2.7_Cantera2.1.tgz
demos_Python2.7_Cantera2.1.tgz
http://shepherd.caltech.edu/EDL/public/cantera/html/SD_Toolbox/
2. Scipy installation
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
3. Unpack
cd ~/.local/lib/python2.7/site-packages/
cp ~/Downloads/SDToolbox_Python2.7_Cantera2.1.tgz .
tar -zxvf SDToolbox_Python2.7_Cantera2.1.tgz
cd ./SDToolbox
cp ~/Downloads/demos_Python2.7_Cantera2.1.tgz .
tar -zxvf demos_Python2.7_Cantera2.1.tgz
cd ~/.local/lib/python2.7/site-packages/
echo SDToolbox >> SDToolbox.pth
cd ~
4. Test
python
>>> from SDToolbox import *
>>> [cj_speed,_] = CJspeed(101325,300,’H2:2 O2:1′,’gri30.cti’,0)
>>> ctrl-D
* ok