hystrath / hyStrath

Hypersonic / Rarefied gas dynamics code developments (GPL-3.0)
https://hystrath.github.io/
GNU General Public License v3.0
219 stars 109 forks source link

Using H2 mechanism in chemFoam tutorial with hy2Foam #117

Open Johnxia1 opened 1 year ago

Johnxia1 commented 1 year ago

I am trying to use the H2 mechanism provided in OpenFOAM/OpenFOAM-v1706/tutorials/combustion/chemFoam/h2/chemkin with hy2Foam after converting it to the Foam format with chemkinToFoam but it crashes with "keyword ni" not found error. I can run the chemFoam example using both the original format and the converted format, where the reverse rates are automatically calculated using the law of mass-action. Can users only use reaction mechanisms provided in the chemDict directory with hy2Foam?

Thanks John

vincentcasseau commented 1 year ago

Could you please print what you get after using chemkinToFoam? The CHEMKIN format is not supported.

iainsymthe commented 1 year ago

chemkinToFoam is a utility that converts chemkin format inputs (chem.inp file in the chemFoam/H2 tutorial) into the OpenFoam format. That part works fine. When I use the openFoam format reactions.inp file created with chemkinToFoam, hy2Foam asks for the keyword ni to compute the equilibrium and reverse rates. It does not automatically compute reverse rates bases on the law of mass action like ChemFoam.