|
[Sponsors] |
May 27, 2016, 07:26 |
ResidualControl OpenFoam 3.0.1
|
#1 |
New Member
DS
Join Date: May 2016
Posts: 28
Rep Power: 10 |
GoodMorning, I would ask you some suggestions to apply the residualControl on PimpleFoam solver of OpenFoam 3.0.1.
Until now I added the following strings in the fvSolution of the tutorial PITZDAILY: PIMPLE { nNonOrthogonalCorrectors 0; nCorrectors 2; residualControl { p_rgh { tolerance 1e-2; relTol 0; } p { tolerance 1e-2; relTol 0; } U { tolerance 1e-3; relTol 0; } } } but doesn't stop when it reach convergence condition. thank you really much best regards |
|
May 27, 2016, 11:10 |
|
#2 |
New Member
chubb87
Join Date: May 2011
Posts: 21
Rep Power: 15 |
Hi Denis,
you should check in the solver output at the beginning, if the dictionary is read correctly: it should say "PIMPLE: max iterations = xyz field p_rgh : relTol 0, tolerance 0.01" etc. What did you specify for nOuterCorrectors, I would choose a high value for that. Another thing to try might be to comment out the control of p and U, so that only p_rgh is checked and see if that works. Then add one variable at a time. I suspect p_rgh is not solved, only p. Maybe start without specifying p_rgh. Regards |
|
May 27, 2016, 14:06 |
|
#3 |
New Member
DS
Join Date: May 2016
Posts: 28
Rep Power: 10 |
dear chubb87,
thank you really much for all your suggestions but i didn't reach good news. I posted here one iterations Code:
Courant Number mean: 0.811001 max: 3.24254 deltaT = 0.000166667 Time = 0.0333333 PIMPLE: iteration 1 smoothSolver: Solving for Ux, Initial residual = 0.00250871, Final residual = 9.35103e-06, No Iterations 5 smoothSolver: Solving for Uy, Initial residual = 0.00683136, Final residual = 4.88956e-06, No Iterations 7 GAMG: Solving for p, Initial residual = 0.0225734, Final residual = 0.000200193, No Iterations 4 time step continuity errors : sum local = 1.77537e-07, global = -7.97343e-10, cumulative = -1.18619e-08 GAMG: Solving for p, Initial residual = 0.0138574, Final residual = 0.000120176, No Iterations 4 time step continuity errors : sum local = 1.06425e-07, global = -3.60448e-10, cumulative = -1.22223e-08 GAMG: Solving for p, Initial residual = 0.000814347, Final residual = 6.56738e-06, No Iterations 5 time step continuity errors : sum local = 5.83031e-09, global = -8.92967e-10, cumulative = -1.31153e-08 GAMG: Solving for p, Initial residual = 0.000206963, Final residual = 1.76587e-06, No Iterations 6 time step continuity errors : sum local = 1.5697e-09, global = -4.39032e-10, cumulative = -1.35543e-08 GAMG: Solving for p, Initial residual = 4.93477e-05, Final residual = 4.13283e-07, No Iterations 5 time step continuity errors : sum local = 3.67266e-10, global = 9.66343e-11, cumulative = -1.34577e-08 GAMG: Solving for p, Initial residual = 2.22904e-05, Final residual = 1.49174e-07, No Iterations 5 time step continuity errors : sum local = 1.32559e-10, global = -2.4542e-11, cumulative = -1.34822e-08 GAMG: Solving for p, Initial residual = 1.32491e-05, Final residual = 7.66981e-08, No Iterations 5 time step continuity errors : sum local = 6.81563e-11, global = 1.37968e-11, cumulative = -1.34685e-08 GAMG: Solving for p, Initial residual = 8.42648e-06, Final residual = 6.60599e-08, No Iterations 4 time step continuity errors : sum local = 5.87032e-11, global = 7.25156e-12, cumulative = -1.34612e-08 GAMG: Solving for p, Initial residual = 5.62289e-06, Final residual = 3.73129e-08, No Iterations 4 time step continuity errors : sum local = 3.31577e-11, global = 8.6153e-13, cumulative = -1.34603e-08 GAMG: Solving for p, Initial residual = 3.86804e-06, Final residual = 7.67479e-08, No Iterations 3 time step continuity errors : sum local = 6.82013e-11, global = -2.41396e-12, cumulative = -1.34628e-08 smoothSolver: Solving for epsilon, Initial residual = 0.00205922, Final residual = 5.91189e-06, No Iterations 5 smoothSolver: Solving for k, Initial residual = 0.00285806, Final residual = 8.64015e-06, No Iterations 6 ExecutionTime = 1.84 s ClockTime = 1 s and the changes applied are: PIMPLE { nNonOrthogonalCorrectors 0; nCorrectors 10; residualControl { p { tolerance 1e-3; relTol 0; } } } I'm sorry for disturb Thank you really much Regards |
|
May 28, 2016, 03:02 |
|
#4 |
New Member
chubb87
Join Date: May 2011
Posts: 21
Rep Power: 15 |
Well, what you have posted is only 1 pimple iteration, with 10 pressure corrections (because of nCorrectors). After that convergence is reached and so no second pimple iteration is executed. The solver is doing what he is told to do. 10 pressure corrections is quite high, normally 2 or 3 should be enough. But you can specify another parameter nOuterCorrectors, which is the number of pimple iterations and should be higher than nCorrectors in your case.
|
|
May 28, 2016, 05:07 |
|
#5 |
New Member
DS
Join Date: May 2016
Posts: 28
Rep Power: 10 |
Dear chubb87,
I thank you really really much for your help and suggestions. I would ask you another information. Looking to the solution seems that after few time steps the solutions converges and doesn't change so much from one time step to the following one. I would ask you if in PimpleFoam there is a way to stop the pimple loop as in simpleFoam when the residual control is satisfied, becouse now each simulation ends just when the endTime is reached. Thank you really really much again and I'm sorry for disturb. Best regards Denis |
|
May 28, 2016, 11:18 |
|
#6 |
New Member
chubb87
Join Date: May 2011
Posts: 21
Rep Power: 15 |
If you want to do a steady state simulation which stops when convergence is reached, why don't you use simpleFoam?
In pimpleFoam, the next time step is calculated after convergence is reached. If you think there are unsteady phenomena in the simulation maybe it makes sense to use pimpleFoam and stop the simulation when the solution does not change anymore (besides the transient phenomena) according to your judgement. |
|
May 28, 2016, 11:27 |
|
#7 |
New Member
DS
Join Date: May 2016
Posts: 28
Rep Power: 10 |
Dear chubb87,
thank you really much for your answer. So I will see the solution and I will extimate how much time the transient requests, and I will decide the endTime. All my difficulties starts when I tried to use the twoPhaseEulerFoam for my master thesis. This function uses the PimpleFoam and with my knowledge I couldn't convert the code in order to use the simpleFoam. For this reason I started to stuudy the pimpleFoam solvers. Thank you really much and I'm sorry for disturb again. Best regards Denis |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM Foundation releases OpenFOAMŪ 3.0.0 | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 1 | November 7, 2015 16:16 |
OpenFOAM Foundation Releases OpenFOAM v2.3.0 | opencfd | OpenFOAM Announcements from OpenFOAM Foundation | 3 | December 23, 2014 04:43 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |