|
[Sponsors] |
July 4, 2011, 10:29 |
Reaction products display
|
#1 |
Member
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 15 |
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 |
|
July 4, 2011, 17:43 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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.
|
|
July 6, 2011, 05:13 |
|
#3 |
Member
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 15 |
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? |
|
July 6, 2011, 14:08 |
|
#4 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
If you see only products but no reactants, then there may be no reaction happening. What do your temperature profiles look like?
|
|
July 7, 2011, 06:39 |
|
#5 |
Member
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 15 |
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 10:49. |
|
July 7, 2011, 15:44 |
|
#6 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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... |
|
July 8, 2011, 04:41 |
|
#7 |
Member
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 15 |
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? |
|
July 8, 2011, 06:19 |
|
#8 |
Member
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 15 |
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 06:43. |
|
Tags |
paraview, products, reactingfoam, reaction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
reaction in particular cells | wlt_1985 | FLUENT | 0 | April 11, 2011 02:41 |
Segmentation fault in running alternateSteadyReactingFoam,why? | NewKid | OpenFOAM | 18 | January 20, 2011 17:55 |
reaction in UDF(DEFINE_VR_RATE) | louiza | FLUENT | 3 | October 14, 2010 00:59 |
CFX5.7 - chemical reaction problem... | H.L. | CFX | 4 | March 25, 2009 11:33 |
chemical reaction - decompostition | La S. Hyuck | CFX | 1 | May 23, 2001 01:07 |