OF 2.0.0: Residual control does not work in interFoam
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 Code:
PIMPLE: max iterations = 3 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 |
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 |
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.
|
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. |
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 |
Hi guys! I've tried to modify the commands as suggested by Simon and LarsPT, but this doesn't work for me :
Code:
Thanks :) |
Greetings Alessandro,
A couple of more details would come in handy, such as:
Bruno |
;)
I'm using LTSInterFoam on OF 2.1.1 the test case is the /multiphase/LTSInterFoam/wigleyhull |
Little class on "Know your PIMPLE"
OK, let's do a little class on "Know your PIMPLE" :D
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 |
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.... :rolleyes: anyway thank you very much for your help... another little piece of the jigsaw puzzle added :D |
Please help me???
2 Attachment(s)
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????? |
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 Code:
PIMPLE https://openfoamwiki.net/index.php/O...hm_in_OpenFOAM Quote:
|
Quote:
|
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 |
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 |
All times are GMT -4. The time now is 12:44. |