CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to check whether an unsteady simulation is convergent or divergent

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2022, 11:42
Post How to check whether an unsteady simulation is convergent or divergent
  #1
New Member
 
Join Date: Jan 2022
Posts: 20
Rep Power: 4
JD_PM is on a distinguished road
Hey there Foamers!


When dealing with steady simulations I check the residuals to conclude whether the simulation converges or not: if most of the parameters are associated to a low residual value (without remarkable oscillations) after 1500/2000 timesteps then we can conclude that the simulation is convergent. For example, I run a rhoSimpleFoam simulation and obtained the following residuals https://ibb.co/qnTyCY7.

The above is my understanding, please let me know if it's not right.

OK, but what if we deal with an unsteady simulation? How to check in a trustful manner (i.e. in a quantitative way if possible) whether the simulation is convergent or not?

The residuals are not helpful in this case, because all variables oscillate within certain residual value range (for instance, see the pressure variable https://ibb.co/gzX4YnR; obtained using interPhaseChangeFoam).

I guess that it depends on what unsteady solver are we using. I am running interPhaseChangeFoam.

Thank you!
JD_PM is offline   Reply With Quote

Old   April 20, 2022, 04:15
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14
Tobermory will become famous soon enough
For an unsteady simulation, "convergence" means that the solution has achieved an accurate enough solution at that time step before moving on to the next time step. The solver (you are using interPhaseChange, so it is running PIMPLE) performs a number of inner interations (PIMPLE loops) to solve at each time step - you can look at the residuals of those inner iterations to see whether they have dropped significantly from their initial values; if they have not, then that is an indication that your solution is not very well converged at that time step ... and of course any errors at that time step will propagate to later time steps. In that case, you might benefit from increasing the max number of inner iterations to make the solver work harder, or you may need to reduce the time step and/or improve the grid. Hope that helps.
JD_PM likes this.
Tobermory is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restarting a unsteady simulation (as a continuation) pro_ SU2 1 May 8, 2020 07:48
How do set a steady solution as an initial solution to an unsteady simulation? pro_ SU2 10 April 28, 2020 18:05
To check for unsteady simulation using residuals in flunet raunakjung FLUENT 0 March 12, 2017 01:47
Unsteady simulation damping oscialltions PedFr0 Main CFD Forum 11 April 28, 2014 10:50
Procedure to run unsteady simulation? STN Main CFD Forum 2 February 16, 2002 05:37


All times are GMT -4. The time now is 18:39.