|
[Sponsors] |
OF 2.0.0: Residual control does not work in interFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 22, 2011, 12:49 |
OF 2.0.0: Residual control does not work in interFoam
|
#1 |
Member
Lars Kiewidt
Join Date: Sep 2009
Location: Germany
Posts: 54
Rep Power: 17 |
Hi everybody,
I want to use the new convergence check for the PIMPLE solvers in interFoam (OpenFOAM-2.0.0). So, I specified the following in fvSolution: Code:
PIMPLE { momentumPredictor no; nOuterCorrectors 3; //nCorrectors 3; nNonOrthogonalCorrectors 0; nAlphaCorr 1; nAlphaSubCycles 2; cAlpha 1; residualControl { p_rgh 1e-3; } } Code:
PIMPLE: max iterations = 3 field p_rgh : relTol 0, tolerance 0 Code:
PIMPLE: not converged within 3 iterations Is that a bug or am I just missing a switch or something else? I already checked the source files but I could not find any valuable information in there. Thanks in advance! Lars |
|
June 24, 2011, 18:46 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Lars,
Have you also tested it with OpenFOAM 1.7.1 or 1.7.x? If it works with those and not 2.0.0 nor 2.0.x, then you might want to report it as bug! Best regards, Bruno
__________________
|
|
June 28, 2011, 08:25 |
|
#3 |
Member
Lars Kiewidt
Join Date: Sep 2009
Location: Germany
Posts: 54
Rep Power: 17 |
According to the OF-2.0.0 Release Notes this is a new feature for all SIMPLE/PIMPLE solvers. It was implementent in simpleFoam in OF-1.7.1 and I tested it successfully, also in OF-2.0.0. However, it is new for interFoam.
|
|
August 20, 2011, 09:34 |
|
#4 |
Member
Simon Lapointe
Join Date: May 2009
Location: Québec, Qc, Canada
Posts: 33
Rep Power: 17 |
Maybe you've already solved your problem, but have you tried something like this:
residualControl { p_rgh { tolerance 1e-3; absTol 0; } } I had the same problem as you described in pimpleFoam and solved it using this syntax. |
|
August 20, 2011, 10:03 |
|
#5 |
Member
Lars Kiewidt
Join Date: Sep 2009
Location: Germany
Posts: 54
Rep Power: 17 |
Sorry, I didn't work too much on that issue the last weeks. Your hint works perfectly, thank you. I just had to add relTol, so now it looks like this:
Code:
residualControl { p_rgh { tolerance 1e-06; relTol 0; absTol 0; } } |
|
August 6, 2012, 09:53 |
|
#6 |
New Member
Alessandro Pani
Join Date: Jul 2012
Posts: 21
Rep Power: 14 |
Hi guys! I've tried to modify the commands as suggested by Simon and LarsPT, but this doesn't work for me :
Code:
PIMPLE { momentumPredictor yes; nCorrectors 1; nNonOrthogonalCorrectors 0; nAlphaCorr 1; nAlphaSubCycles 1; cAlpha 1; maxCo 0.9; maxAlphaCo 0.2; nAlphaSweepIter 1; rDeltaTSmoothingCoeff 0.1; rDeltaTDampingCoeff 1; maxDeltaT 1; residualControl { p_rgh { tolerance 1e-02; relTol 0; absTol 0; } } } Thanks |
|
August 7, 2012, 08:28 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Alessandro,
A couple of more details would come in handy, such as:
Bruno
__________________
|
|
August 7, 2012, 09:51 |
|
#8 |
New Member
Alessandro Pani
Join Date: Jul 2012
Posts: 21
Rep Power: 14 |
I'm using LTSInterFoam on OF 2.1.1 the test case is the /multiphase/LTSInterFoam/wigleyhull |
|
August 7, 2012, 11:25 |
Little class on "Know your PIMPLE"
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
OK, let's do a little class on "Know your PIMPLE"
First we look into the file where the "residualControl" is read: Quote:
Also as you can see, without this value, it will operate in PISO mode! Which the tutorial "multiphase/LTSInterFoam/wigleyHull" uses by default. There is another example for LTSInterFoam in the latest 2.1.x: https://github.com/OpenFOAM/OpenFOAM...tem/fvSolution As you can see, neither one use the "nOuterCorrectors", so I do not know if LTSInterFoam is meant to be executed in PISO only or if it can be executed in PIMPLE mode... Best regards, Bruno
__________________
|
||
August 27, 2012, 03:49 |
|
#10 |
New Member
Alessandro Pani
Join Date: Jul 2012
Posts: 21
Rep Power: 14 |
Hi Wyldckat, sorry for the late reply, but i wasn't able to work on it in past weeks...
I'm taking a look at the controls you've posted... i've added nOuterCorrectors in the fvsolution ( erasing ncorr) and now it runs in PIMPLE and not in Piso... i let you know if the convergence controls works... But at this steps i would to know if for a problem like the wigley hull is better to run in PISO or in Pimple.... anyway thank you very much for your help... another little piece of the jigsaw puzzle added |
|
October 16, 2012, 03:01 |
Please help me???
|
#11 |
Member
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13 |
Hi dear foamers.
I have a question: I plot residual for velocity with gnuplot succefully.but have a problem yet!!! in my controlDict(pic attachmented) deltaT=1e-6 and writeInterval=0.001 , with this options I stop my run and seen 1024 folders in my tutorial. but I seen in my residual(pic attachmented) ,number of iterations:120000 and we underestand that in my tutorial That have been runed,should be i have 120 folders.???? my Supervisor tell me ,my residual not true???!!!please help me????? |
|
April 2, 2016, 14:46 |
|
#12 | |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear Bruno and other OFers,
Just for curiosity, in most tutorials the residualControl is not specified explicitly in the item for PIMPLE in fvSolution file. However, if we specify it, and then actually in the same file, we also specify the tleralence for each variable as follows: Code:
p_rgh { solver GAMG; tolerance 1e-5; relTol 0.01; smoother GaussSeidel; cacheAgglomeration true; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; }; Code:
PIMPLE { nNonOrthogonalCorrectors 0; nCorrectors 1; nOuterCorrectors 50; residualControl { U { tolerance 1e-5; relTol 0; } p_rgh { tolerance 1e-5; relTol 0; } } } https://openfoamwiki.net/index.php/O...hm_in_OpenFOAM Quote:
|
||
April 2, 2016, 19:20 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
April 6, 2016, 10:26 |
|
#14 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Thanks, Bruno.
So now we have two settings: one is set nOuterCorrectors = 4 for a PIMPLE loop, but do not use the residualControl for it; another one is to set nOuterCorrectors a higher value (say 50) but use the residualControl for it as described above. In my computations, for the latter, I can see the following output: Code:
PIMPLE: converged in 8 iterations |
|
April 10, 2016, 15:26 |
|
#15 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
It's sort-of like doing a local steady-state analysis for the current time step, but it's time accurate because the "d/dt" term is present in the SIMPLE (if I remember correctly). Keep in mind that SIMPLE can actually be used for transient simulations: http://openfoamwiki.net/index.php/Ma...ransientSimple
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
icoLagrangianFoam OF1.6 myNewParticleSolver | heavy_user | OpenFOAM | 23 | June 2, 2020 03:18 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
TurbFoam problemlarge Co number | sunnysun | OpenFOAM Running, Solving & CFD | 6 | March 10, 2009 09:05 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 22:14 |
MRFSimpleFoam amp cyclic patches | david | OpenFOAM Running, Solving & CFD | 36 | October 21, 2008 22:55 |