|
[Sponsors] |
reactingFoam solution is strongly dependent on time step size |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2011, 09:12 |
reactingFoam solution is strongly dependent on time step size
|
#1 |
New Member
Andras Horvath
Join Date: Mar 2009
Posts: 29
Rep Power: 17 |
Dear Foamers and CFD-hackers,
This is a (desperate) cross-post from the "Running+Solving" section. I am using OpenFoam-1.7.1 (git: 03e7e056c215). I noticed that there is a tight dependence between "T gas max" and the CFL number in the reactingFoam tutorial case. Lower Courant-numbers lead to lower maximum temperatures and vice versa. In "applications/solvers/combustion/reactingFoam/chemistry.H" the line // Chalmers PaSR model kappa = (runTime.deltaT() + tc)/(runTime.deltaT() + tc + tk); with an _absolute_ runTime.deltaT() clearly is an error, isn't it? Also to test mesh dependence of the solution i tried this: I refined the original mesh from the tutorial from 4000 -> 400000 cells (x10 in both directions) and ran the tutorial again. It crashes both in single and parallel at around 0.0007s. I also tried removing runTime.deltaT() from the kappa-equation in the source code, recompiled it, and ran it to the same effect. At some point epsilon becomes negative and the solver crashes. Can this be considered a bug or is it just a defficiency in the underlying Chalmers PaSR model? Cheers, Andras |
|
July 13, 2011, 03:45 |
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
According to http://www.openfoam.com/mantisbt/view.php?id=249 it seems not to be a bug, but it depends on the model. You might want to refer to the original literature to be safe.
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
July 13, 2011, 08:50 |
Chalmers PaSR model
|
#3 |
New Member
Andras Horvath
Join Date: Mar 2009
Posts: 29
Rep Power: 17 |
According to "F. P. Kärrholm: Numerical Modelling of Diesel Spray Injection, Turbulence Interaction and Combustion, Department of Applied Mechanics, Chalmers University of Technology, Göteborg, Sweden (2008)" the reaction rate multiplier kappa is defined by
kappa = tc / (tc + tmix) where tc is the chemical time scale and tmix is the turbulence time scale, where tmix = Cmix * k/epsilon using Cmix=0.03. The source code of reactingFoam introduces the absolute time step into the k-equation, and uses Cmix=0.1 (in the tutorial case): ---- OpenFOAM/OpenFOAM-1.7.1/applications/solvers/combustion/reactingFoam/chemistry.H ---- // Chalmers PaSR model kappa = (runTime.deltaT() + tc)/(runTime.deltaT() + tc + tk); ---- Cheers, Andras Last edited by andras; July 13, 2011 at 16:02. Reason: small typo |
|
July 13, 2011, 11:28 |
|
#4 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
I guess the implementation is older. However, I would write this in you bug report ;-)
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
Tags |
cfl, crash, mesh, reactingfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time step size and max iterations per time step | pUl| | FLUENT | 31 | October 23, 2020 23:50 |
IcoTopoFoam case is aborted | deepblue17 | OpenFOAM Running, Solving & CFD | 25 | December 2, 2010 15:20 |
Is there a way to write the time step size, time a | may | FLUENT | 6 | November 22, 2009 12:52 |
Navier-Stokes time step size | Martin | Main CFD Forum | 2 | June 6, 2008 04:38 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 13:32 |