This chemistryModel can be used in the latest OpenFOAM-dev (today is 4th July 2018). Besides, OF-6 is OK.
install optionLoop.
install pyJac.
under the environment of OpenFOAM-6:
cd $WM_PROJECT_USER_DIR
mkdir pyJac
cp $FOAM_TUTORIALS/combustion/reactingFoam/RAS/SandiaD_LTS/chemkin/grimech30.dat pyJac
cp $FOAM_TUTORIALS/combustion/reactingFoam/RAS/SandiaD_LTS/chemkin/thermo30.dat pyJac
cd pyJac
python -m pyjac --lang c --last_species N2 --input grimech30.dat --thermo thermo30.dat --build_path ./out
still in the pyJac
directory:
python -m pyjac.libgen --source_dir ./out --lang c -out $FOAM_USER_LIBBIN
mkdir -p $FOAM_RUN
run
cp -r $FOAM_TUTORIALS/combustion/reactingFoam/RAS/SandiaD_LTS .
cd SandiaD_LTS
foamDictionary -entry chemistryType.method -set pyJac constant/chemistryProperties
sed -i '$a\libs ("libpyJacChemistryModel.so" );' system/controlDict
foamCleanTutorials
./Allrun