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

reactingFoam, strange behavior, bug ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2015, 06:58
Question reactingFoam, strange behavior, bug ?
  #1
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Dear All,

I encountered, a very strange behavior, which I hope could be explained with help of other Foamers.

I am running calculations using reactingFoam, but without reactions and combustions. I am interested in passive gas mixing.

The problem is:
I run the same calculations (exacly the same set-up, mesh, etc.) with two different max Courant Number:
1. maxCo = 2
and
2. maxCo = 0.25

I would expect that calculations with maxCo = 0.25 should be more numerically stable and give more presice results, because dt is smaller.
BUT
-results for maxCo = 0.25 are numerically unstable, they blew up after some time,
- results for maxCo = 2 are stable and gives nice smooth results...

Attached are results, which show O2 content in few points of the domain. They are compared with some experimental results.
Why for maxCo = 0.25 results are so different and so "bad", and why does it blew up ?

here results with maxCo = 2


Here results with MaxCo = 0.25

Thanks,
ZMM
Attached Images
File Type: jpg MAX_Co_2.jpg (43.9 KB, 280 views)
File Type: jpg MAX_Co_0p25_.jpg (42.0 KB, 278 views)
ziemowitzima is offline   Reply With Quote

Old   April 7, 2015, 05:39
Default
  #2
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
markusrehm is on a distinguished road
Hi,

it has been a long time since I have bee using reactingFoam. I guess that there is a problem with the chemical time scales and or the ODE-Solver.
Might be that the reactions have not really started and after each time step they are averaged. Which ODE-Solver are you using?

Maybe you can check your mechanism in chemfoam?

Regards, Markus.
markusrehm is offline   Reply With Quote

Old   April 7, 2015, 07:53
Default
  #3
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Hi Markus,
Thank you for your interest !
In my case I do NOT use chemical reactions, just passive mixing.
But in the chemistryProperties I have:

chemistrySolver ode;

but later:

chemistry off;


Regards,
ZMM
ziemowitzima is offline   Reply With Quote

Old   April 8, 2015, 07:59
Default
  #4
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
markusrehm is on a distinguished road
Hi,

I remember that there was an issue with the diffusion terms even leading to wrong temperature. But as mentioned above I haven' t used the solver for a long time.

Maybe that helps:

http://www.cfd-online.com/Forums/ope...-update-2.html

Good luck.

Markus
markusrehm is offline   Reply With Quote

Reply

Tags
bug?, courant number, 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
How to switch off combustion and reaction in reactingFoam shenzhou1987 OpenFOAM Running, Solving & CFD 16 October 26, 2017 16:31
calculate flame speed using reactingFoam IColin OpenFOAM Running, Solving & CFD 0 February 4, 2014 16:14
reactingFoam wedge handling wrong U dhondupant OpenFOAM Bugs 1 December 9, 2010 08:34
reactingFoam - turbulent reacting flow hamburgFoam OpenFOAM 0 December 7, 2009 13:57
Strange incorrect inlet behavior for reactingFoam mrangitschdowcom OpenFOAM Running, Solving & CFD 4 August 29, 2007 16:55


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