|
[Sponsors] |
August 8, 2015, 10:13 |
rhoSimplecFoam
|
#1 |
Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13 |
Hi guys, I'm trying to use rhoSimplecFoam from the OpenFOAM v2.1.x distribution (therein lies the problem).
It keeps crashing after a few iterations, with what seems to be a density spike, causing the epsilon equation to crash. When I view the solution from just before the crash, I see a high density cell just upstream of the aircraft. I'm imposing limits on the density (0.5min and 2.0max) within the fvSolution file. Has anyone actually got rhoSimplecFoam (or rhoSimpleFoam for that matter) to work??? My testcase is an aircraft at 100m/sec and I'm using freestream boundaries. rhoSimpleFoam does not even get past the 1st iteration. I think its likely something to do with the fvSchemes and fvSolution file settings... any help much appreciated. Thanks. |
|
August 8, 2015, 12:04 |
|
#2 |
Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13 |
...and it seems to have something to do with the location specified in pRefPoint:
pRefPoint (-15 35 35); pRefValue 100000; |
|
August 9, 2015, 13:34 |
|
#3 |
Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13 |
Finally got rhoSimpleFoam working for an aircraft at 100m/sec.
Having consistent boundary conditions, and turbulence values, seems to be the key factors, and not using pRefPoint also. Got a nice convergence plot from rhoSimpleFoam below. |
|
November 5, 2018, 05:24 |
|
#4 | |
New Member
Join Date: Dec 2017
Posts: 3
Rep Power: 8 |
Quote:
I know quite a lot time has passed, but do you still have the fvschemes and fvsolution to post? I'd like to know how you obtained such a beautiful convergence! Thank you |
||
November 5, 2018, 08:55 |
|
#5 |
Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13 |
I will have a look for them...
|
|
November 5, 2018, 09:43 |
|
#6 |
Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13 |
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default steadyState; } gradSchemes { default Gauss linear; } divSchemes { default none; div(phi,U) Gauss upwind; div((muEff*dev2(T(grad(U))))) Gauss linear; div(phi,h) Gauss upwind; div(phi,epsilon) Gauss upwind; div(phi,k) Gauss upwind; div(phid,p) Gauss upwind; div(phi,K) Gauss upwind; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; UD upwind phid; } snGradSchemes { default corrected; } fluxRequired { default no; p; pCorr; } // ************************************************** *********************** // |
|
November 5, 2018, 09:44 |
|
#7 |
Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13 |
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { p { solver GAMG; tolerance 1e-08; relTol 0.1; smoother GaussSeidel; nPreSweeps 0; nPostSweeps 2; nFinestSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 20; agglomerator faceAreaPair; mergeLevels 1; } "(U|h|k|epsilon)" { solver GAMG; tolerance 1e-08; relTol 0.1; smoother GaussSeidel; nPreSweeps 0; nPostSweeps 2; nFinestSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 20; agglomerator faceAreaPair; mergeLevels 1; } } SIMPLE { nNonOrthogonalCorrectors 0; rhoMin rhoMin [1 -3 0 0 0] 0.5; rhoMax rhoMax [1 -3 0 0 0] 2.0; transonic no; } relaxationFactors { fields { p 0.3; rho 0.1; } equations { // pEqn 0.3; U 0.5; h 0.5; k 0.5; epsilon 0.5; } } // ************************************************** *********************** // |
|
November 5, 2018, 09:47 |
|
#8 |
Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13 |
Those (supplied) are the fvSchemes and fvSolution for the rhoSimple solver.
I have also done same for rhoSimplec solver if you need them. Contact me on garcfd (at) gmail (dot) com if you need any help. |
|
November 5, 2018, 15:13 |
|
#9 |
New Member
Join Date: Dec 2017
Posts: 3
Rep Power: 8 |
Thank you very much!
|
|
Tags |
openfoam2.1.x, rhosimplecfoam, rhosimplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Big problem predicting adiabatic wall temperature (wing, mach 0.33, rhoSimplecFoam) | fredo490 | OpenFOAM Running, Solving & CFD | 7 | May 12, 2022 02:24 |
rhoSimplecFoam with setFields | sino75 | OpenFOAM Pre-Processing | 0 | March 11, 2015 04:08 |
using GAMG in rhoSimplecFoam tutorial. why? | Farshad_Noravesh | OpenFOAM | 0 | November 21, 2012 01:38 |
rhoSimpleFoam versus rhoSimplecFoam | jeff.freeman | OpenFOAM Running, Solving & CFD | 1 | September 18, 2012 09:23 |
rhoSimplecFoam U-turn | j-blindi | OpenFOAM Running, Solving & CFD | 6 | October 29, 2011 17:21 |