CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   rhoCentralFoam with Chemistry (https://www.cfd-online.com/Forums/openfoam-programming-development/223695-rhocentralfoam-chemistry.html)

TommyM January 22, 2020 11:49

rhoCentralFoam with Chemistry
 
1 Attachment(s)
Hi All,
I am trying to implement chemistry in rhoCentralFoam. I have included the YEqn in the source code (mass fraction Y is based on central-upwind schemes, just like the other variables).
Anyway, when I run the solver an error appears telling that I have not defined the chemical species in fvSolution (O2, CO2, ...), but I have defined a "for" cycle including all the species in Y(i), just like reactingFoam do.
My YEqn.H file is attached, if someone would help me in understand this issue.
Thanks,


Tommy

openfoammaofnepo January 23, 2021 05:46

It seems that there is similar development from http://blog.nus.edu.sg/huangwei/nus-...alfoam-solver/. Some validations and verification are also provided.



Quote:

Originally Posted by TommyM (Post 755339)
Hi All,
I am trying to implement chemistry in rhoCentralFoam. I have included the YEqn in the source code (mass fraction Y is based on central-upwind schemes, just like the other variables).
Anyway, when I run the solver an error appears telling that I have not defined the chemical species in fvSolution (O2, CO2, ...), but I have defined a "for" cycle including all the species in Y(i), just like reactingFoam do.
My YEqn.H file is attached, if someone would help me in understand this issue.
Thanks,


Tommy



All times are GMT -4. The time now is 22:24.