CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to add species source term through fvOptions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2019, 03:49
Default How to add species source term through fvOptions
  #1
Member
 
Join Date: Oct 2015
Location: Finland
Posts: 39
Rep Power: 11
blttkgl is on a distinguished road
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?

Last edited by blttkgl; February 19, 2019 at 03:54. Reason: Added information
blttkgl is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
How to add a source term on the nodes of the cells amina.yacoubi Fluent UDF and Scheme Programming 4 February 19, 2019 19:25
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57


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