24
Cantera とは ?
Canterais a suite of object-oriented software tools
for problems involving
chemical kinetics, thermodynamics, and/or transport processes.
It is a C++ based code with interfaces for
python, matlab, C, and fortran 90.
Python での利用例
from Cantera import * #Use Cantera module
mech = 'h2air_highT.cti' #Reaction kinetics mechanism file
q = 'H2:2.0 O2:1.0 N2:3.76' #Gas composition
p = 100000. #Pressure
t = 300. #Temperature
gas=IdealGasMix(mech) #IdealGasMix Class
gas.set(X=q,T=t,P=p) #Define the state
gas.equilibrate('HP') #Equilibrium calculation under constant
#enthalpy and pressure
print gas #print compositions, state variables etc
https://code.google.com/p/cantera/