|
[Sponsors] |
anyone used setFields for igniting a flame (reactingFoam) ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 3, 2015, 22:22 |
anyone used setFields for igniting a flame (reactingFoam) ?
|
#1 |
Member
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 12 |
Hello all,
I am using reactingFOAM for an LES of premixed flame calculation (methane+air premixture) in OF-2.2.x. To ignite the flame, I set a patch of temperature using setFields like this: (I also set mass fraction of CO2 and H2O in this patch) When I ran the simulation for a couple of time steps, the temperature field became something like this: Ultimately however, the temperature in some cells went past 3500 K and the code produced NAN Could someone tell me how to use the setFields utility correctly for a premixed flame ? Which zone should we patch with a temperature field ? Please help |
|
March 5, 2015, 22:06 |
|
#2 |
Member
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 12 |
Anyone who might know how to use setFields for flame ignition ??
|
|
March 6, 2015, 08:23 |
|
#3 |
New Member
Join Date: Feb 2014
Posts: 24
Rep Power: 12 |
reactingFoam crashes with NaNs when the temperature exceeds the maximum temperature which thermodynamic data are available for.
I don't think the problem is your setFieldsDict, but you would have to attach your case directory if you want feedback on your approach. |
|
March 9, 2015, 13:57 |
|
#4 |
Member
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 12 |
Hi Hajott,
Thanks for your reply. Basically a schematic of my flow domain looks like this: My fvSchemes are the following: Code:
ddtSchemes { default backward; } gradSchemes { default Gauss linear; grad(pd) Gauss linear; } divSchemes { default none; div(phi,U) Gauss limitedLinearV 1; div(phi,h) Gauss limitedLinear 1; div(phi,Yi_h) Gauss limitedLinear 1; div(phi,K) Gauss limitedLinear 1; div(phid,pd) Gauss limitedLinear 1; div(phi,epsilon) Gauss limitedLinear 1; div(phi,k) Gauss limitedLinear 1; div((muEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { //default Gauss linear orthogonal; default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { //default orthogonal; default corrected; } fluxRequired { default no; pd; } Code:
solvers { rho { solver PCG; preconditioner DIC; tolerance 1e-06; relTol 0.1; } rhoFinal { $rho; tolerance 1e-06; relTol 0; } pd { solver GAMG; tolerance 1e-6; relTol 0.1; maxIter 100; smoother DICGaussSeidel; nPreSweeps 0; nPostSweeps 1; nFinestSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 50; agglomerator faceAreaPair; mergeLevels 1; }; pdFinal { solver GAMG; tolerance 1e-6; relTol 1.0e-2; maxIter 100; smoother DICGaussSeidel; nPreSweeps 0; nPostSweeps 1; nFinestSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 50; agglomerator faceAreaPair; mergeLevels 1; }; "(U|h|k|epsilon)" { solver PBiCG; preconditioner DILU; tolerance 1e-06; relTol 0.1; } "(U|h|k|epsilon)Final" { solver PBiCG; preconditioner DILU; tolerance 1e-06; relTol 0; } Yi { $hFinal; } } PIMPLE { momentumPredictor yes; nOuterCorrectors 2; nCorrectors 3; nNonOrthogonalCorrectors 0; } I have also attached my case in the zip file. Any comments or suggestions would be really appreciated |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to achieve ignition of premixed flame using ReactingFoam | Dan1788 | OpenFOAM Running, Solving & CFD | 25 | June 12, 2022 05:52 |
how to use setFields for flame ignition?? | Dan1788 | OpenFOAM Running, Solving & CFD | 5 | September 25, 2014 21:26 |
calculate flame speed using reactingFoam | IColin | OpenFOAM Running, Solving & CFD | 0 | February 4, 2014 16:14 |
Flame gets flushed away in reactingFoam | megacrout | OpenFOAM | 7 | November 7, 2011 06:33 |
Crosswind flame with reactingFoam | torvic | OpenFOAM Running, Solving & CFD | 1 | September 10, 2007 18:48 |