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

How to access the boundary conditions of species in reaction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2019, 06:23
Default How to access the boundary conditions of species in reaction
  #1
New Member
 
Join Date: Mar 2019
Posts: 6
Rep Power: 7
xixiuqi is on a distinguished road
Hi everyone,

Now I am going to use reactingFoam to simulation combustion. I want to change the boundary conditions in iterations. For example, I use
Code:
T.boundaryFieldRef()[patchID] == calculatedTemperature
for the temperature boundary conditions have fixedValue patch.

However, I want to change the species(fuel, oxygen) boundary conditions during the reaction. How can I get access to the boundary conditions of the species?
xixiuqi is offline   Reply With Quote

Old   July 23, 2019, 10:45
Default
  #2
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15
adhiraj is on a distinguished road
Would something like this work?

Code:
composition.Y("CH4").boundaryFieldRef()[patchID] == value;
adhiraj is offline   Reply With Quote

Old   July 23, 2019, 15:03
Default
  #3
New Member
 
Join Date: Mar 2019
Posts: 6
Rep Power: 7
xixiuqi is on a distinguished road
It can work.

Thank you so much adhiraj.
xixiuqi is offline   Reply With Quote

Reply

Tags
reactingfoam


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
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 00:07


All times are GMT -4. The time now is 10:54.