Cantera/Interactive

From ScientificComputing
Jump to: navigation, search

You can use the Python interface of cantera interactively on a login node. For this, you first need to load all the required modules. After starting the Python interpreter with the command python, you can import the cantera package:

[leonhard@euler02 ~]$ module load legacy gcc/4.8.2 open_mpi/1.6.5 python/2.7.6 boost/1.55.0 matlab/8.2 cantera/2.1.2
Autoloading openblas/0.2.13_seq
[leonhard@euler02 ~]$ python
Python 2.7.6 (default, Jan 20 2014, 14:02:29) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cantera
>>> cantera.__version__
'2.1.2'

Please note that can only use interactive cantera session for small pre- and post-processing steps. All other computations need to be submitted as jobs through the batch system.