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

Reaction products display

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2011, 09:29
Default Reaction products display
  #1
Member
 
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 14
megacrout is on a distinguished road
Hi,

I am running a case very similar to the counterFlowFlame2D tutorial (combustion/reactingFoam) and IŽd like to display the products - not only the reactants - in paraView. How can I achieve that? I am pretty sure it does not have anything to do with paraView (directly) but I am not quite sure about what I have to do in OpenFoam to get the result I want.

Do I have to add a file in the 0 folder for every product I want to display (instead of setting them using the Ydefault file)? If so, do I have to modify/create any other file? If not, what am I supposed to do?

Thanks to any answer.

Tibo
megacrout is offline   Reply With Quote

Old   July 4, 2011, 16:43
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Are you able to see your products at the reaction proceeds? You should be able to see them as they are created at later time steps, unless they are subsequently being consumed by another reaction.
mturcios777 is offline   Reply With Quote

Old   July 6, 2011, 04:13
Default
  #3
Member
 
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 14
megacrout is on a distinguished road
Nope.
I only modified the mesh. The reaction (thereŽs only one), constants, solvers, equations... everything else remained untouched. But still, I cannot display any product concentration profile at any time step.
Any idea about what could be wrong?
megacrout is offline   Reply With Quote

Old   July 6, 2011, 13:08
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
If you see only products but no reactants, then there may be no reaction happening. What do your temperature profiles look like?
mturcios777 is offline   Reply With Quote

Old   July 7, 2011, 05:39
Default
  #5
Member
 
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 14
megacrout is on a distinguished road
It seems you got me wrong here.
I can NOT see any PRODUCT. Reactants are fine. The sum of their respective mole fractions at a given time (>0) and at a given place does not give 1, which proves that OF computes at least one more mole fraction.

By the way, if you only see products but no reactant (as you wrote), this does NOT mean you have no reaction taking place but rather that your reaction takes place so quickly that you do not even have time to compute any measurable reactant concentration. Or that you messed up your code ahaha!

Temperature profile looks fine. It goes up to several thousand Kelvin at what I assume to be the right place and the right time.

Can you, or someone else, tell me what I have to do to be able to display and plot the computed product profiles?

Thanks in advance.

Tibo

Last edited by megacrout; July 7, 2011 at 09:49.
megacrout is offline   Reply With Quote

Old   July 7, 2011, 14:44
Default
  #6
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
You are correct on my comment. I MEANT to write reactants not products, but it had been a long day...

Very strange. Do the time directories have CO2 and H2O files written to them? If so then the problem is with ParaView. If not, then something has happened to the solver...
mturcios777 is offline   Reply With Quote

Old   July 8, 2011, 03:41
Default
  #7
Member
 
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 14
megacrout is on a distinguished road
Yes, all product files are in the time step folders.

I actually just checked it out one more time and noticed that CO2 and H2O (among other computed parameters) appear in the "Volume Field" window of ParaView but not in the drop-down menu from which we can choose the parameter to display (after selecting them in "Volume Field" and clicking "Apply", of course).

Do you have any idea about how I can get it to work?
megacrout is offline   Reply With Quote

Old   July 8, 2011, 05:19
Default
  #8
Member
 
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 14
megacrout is on a distinguished road
Ok, I got it now. And I better understand what you meant in your first post, Marco.

The products are not defined for the first time step, i.e. I do not have any "H2O" or "CO2" file in my "0" directory. For that reason, no product to display in the first time step (not even a 0 value everywhere).

Second problem: I either never paid attention to the fact that the products go unchecked in the "Volume Field" menu when I select time steps other than 0 or never clicked again on "Apply" after re-selecting all displayable fields. If one does that, the products appear in the top drop-down menu and the their profiles can be watched.

However, because of the non-existing values for the first time step, watching the entire simulation once or in a loop does not work great. I expect creating an initial condition for every product or simply selecting "Skip Zero Time" in paraView to solve the problem.

Anyway, thanks a lot Marco.

Last edited by megacrout; July 8, 2011 at 05:43.
megacrout is offline   Reply With Quote

Reply

Tags
paraview, products, reactingfoam, reaction


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
reaction in particular cells wlt_1985 FLUENT 0 April 11, 2011 01:41
Segmentation fault in running alternateSteadyReactingFoam,why? NewKid OpenFOAM 18 January 20, 2011 16:55
reaction in UDF(DEFINE_VR_RATE) louiza FLUENT 3 October 13, 2010 23:59
CFX5.7 - chemical reaction problem... H.L. CFX 4 March 25, 2009 10:33
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 00:07


All times are GMT -4. The time now is 08:21.