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

pimpleFoam convergence

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By sheaker

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2017, 02:57
Default pimpleFoam convergence
  #1
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Hello.

I've been running an unsteady simulation of a pump with pimpleFoam. The results seem reasonable but from timestep to timestep minimum and maximum values 'jump' for more than 10%, however these 'jumps' seem to be getting smaller.

The question is, how long should I leave the case running? So far, 10 full revolutions have passed, that's 0.4 seconds of simulation time.
kandelabr is offline   Reply With Quote

Old   October 13, 2017, 03:19
Default
  #2
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
Hello.

You could preview Your residuals in-time.
Take this file:
Code:
set logscale y
set title "Residuals"
set ylabel 'Residual'
set xlabel 'Iteration'
plot "< cat log | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\
     "< cat log | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\
     "< cat log | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\
     "< cat log | grep 'Solving for epsilon' | cut -d' ' -f9 | tr -d ','" title 'epsilon' with lines,\
     "< cat log | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\
     "< cat log | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines
pause 1
reread
Edit it for Your usage and put into Your case folder with any name, for example "Residuals".
Start simulation and write log file:
Code:
pimpleFoam | tee log
Type (in another terminal):
Code:
gnuplot Residuals -
Now You can check if Your case is still converging or not.

You should also set residuals in fvSolution file. Search for examples in /tutorials/


Have a nice day.
Sheaker
BlnPhoenix and nandhakumar like this.
sheaker is offline   Reply With Quote

Old   October 13, 2017, 03:25
Default
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Thanks for your reply.

If I understand correctly, you're suggesting plotting the residuals to see the convergence more clearly?

How do I tell an unsteady case is converging?
kandelabr is offline   Reply With Quote

Old   December 16, 2017, 09:10
Default
  #4
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
I found out that this happens when I keep Courant Number too low (1.0 or even less). If I run the case with Co > 10, the oscillations are minimal.

Is there something to this?
kandelabr is offline   Reply With Quote

Old   February 8, 2018, 12:38
Default
  #5
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 8
AndreasPe is on a distinguished road
Hi!

Which OpenFOAM version are you using?

I assume you are doing a transient simulation with some kind of Rotor-Stator Interface? Depending on the version you are using, this is a GGI (foam-extend) or AMI (OpenFOAM). We are investigating on these unphysical oscillations, you are describing, too. Using foam-extend-3.1/3.2 these oscillations occur in our cases, too. As you mentioned, the oscillations decrease if you increase your timestep, we also made this observation.

Prof. Jasak has made some changes in the pimple-algorithm in foam-extend-4.0 which also seems to deal with this problem (have a look here: http://foam-u.fr/wp-content/uploads/...ance_Jasak.pdf ). However, this affected the convergence rate of the pressure equation in our cases. Till now, I did not exactly understand how the changes he made exactly eliminate the oscillations. It seems to have to do with the way of the flux interpolation interacting with moving meshes. Is there anyone who understood the changes made in the pimple-algorithm and the effect on those pressure oscillations? I just found this presentation of Professor Jasak here: http://openfoam-extend.sourceforge.n...s/courses.html
AndreasPe 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
Convergence Centurion2011 FLUENT 48 June 14, 2022 23:29
Convergence problem with pimpleFoam with OpenFOAM-v1706 kaszt OpenFOAM Running, Solving & CFD 1 September 5, 2017 20:00
Understanding pimpleFoam convergence criterion Nucleophobe OpenFOAM Running, Solving & CFD 0 March 13, 2013 18:46
Force can not converge colopolo CFX 13 October 4, 2011 22:03
Convergence of CFX field in FSI analysis nasdak CFX 2 June 29, 2009 01:17


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