CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to add species source term through fvOptions (https://www.cfd-online.com/Forums/openfoam-solving/214956-how-add-species-source-term-through-fvoptions.html)

blttkgl February 19, 2019 02:49

How to add species source term through fvOptions
 
Hey,


I use the scalarCodedSource to add source terms to my rho, U and h equations. But I can't seem to find the correct syntax for adding source terms to species equations. In YEqn.H fvOptions(rho,Yi) is present, but if I use Y or Yi keyword as a field I get the following:


Code:

Source motored_pressure_mass defined for field Yi but never used
Any idea how to solve this?


Best,


Bulut


Edit: Maybe I should've been clearer. I CAN add source term to a specific specie if I give it by name :


Code:

        fields      (rho U h CH4);

But is there a shorthand for doing this all the species in the chemical mechanism I use?


All times are GMT -4. The time now is 06:18.