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

Is simpleFOAM suppose to be faster than pimpleFOAM or pisoFOAM?

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 5 Post By Bloerb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2020, 02:38
Default Is simpleFOAM suppose to be faster than pimpleFOAM or pisoFOAM?
  #1
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 141
Rep Power: 10
EternalSeekerX is on a distinguished road
Hey everyone,

So bare with me as I am new and learning openfoam. I have been doing a few tutorials and validation cases and I notice that with my 6 core laptop, simpleFOAM solves way faster than the other two solvers (even for the same geometry). Im not complaining but I am wondering if i am doing something wrong xD
EternalSeekerX is offline   Reply With Quote

Old   August 19, 2020, 05:34
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
Nope - that's totally as expected, for most steady state problems.
Tobermory is offline   Reply With Quote

Old   August 21, 2020, 18:27
Default
  #3
Senior Member
 
joegi
Join Date: Nov 2009
Location: genoa
Posts: 104
Rep Power: 17
joegi.geo is on a distinguished road
Well, your question is a little bit vague. That depends on what you want to do.


If you want to reach an steady behavior (like flat time series of forces), steady solvers might be faster (but not necessary). I can show you a gazillion cases where unsteady solvers are faster, but those cases are the exception rather than the rule.



Generally speaking, steady solver are faster (if you use the optimal under relaxation factors). However, they are not as accurate as unsteady solvers.


Rule of thumb:


Use steady solvers if you are sure that you are expecting a steady behavior; otherwise, use unsteady solvers or local time stepping (pseudo transient).
joegi.geo is offline   Reply With Quote

Old   August 23, 2020, 05:22
Lightbulb So it depends Case to Case?
  #4
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 141
Rep Power: 10
EternalSeekerX is on a distinguished road
Quote:
Originally Posted by joegi.geo View Post
Well, your question is a little bit vague. That depends on what you want to do.


If you want to reach an steady behavior (like flat time series of forces), steady solvers might be faster (but not necessary). I can show you a gazillion cases where unsteady solvers are faster, but those cases are the exception rather than the rule.



Generally speaking, steady solver are faster (if you use the optimal under relaxation factors). However, they are not as accurate as unsteady solvers.


Rule of thumb:


Use steady solvers if you are sure that you are expecting a steady behavior; otherwise, use unsteady solvers or local time stepping (pseudo transient).
I see, I brought it up because for example for a 3D Square Cylinder the RANS version using simpleFoam runs pretty fast (I assumed because it using a 1 second time step) while the LES version using pimpleFOAM took 40hrs. I assume its because of time step as well since LES case used really small time steps (which makes sense for vortex capturing).
EternalSeekerX is offline   Reply With Quote

Old   August 29, 2020, 14:56
Default
  #5
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
In CFD you have to solve for pressure p and velocity U but can't do so easily within one big matrix (nonlinear system and two variables). SIMPLE/PISO/PIMPLE are segregated solution techniques for such PDEs. Hence you split the system into two equation systems in a segregated solver. You need to solve this set of two systems in a loop to get an accurate solution of the intial system.
Solve A -> solution into B -> solve B -> solution into A --> ... --> until A and B fulfill the original system.... This is the PISO loop.
  • The SIMPLE algorithm uses only one pass through the loop per time step and keeps the solution stable by relaxation.
  • The PISO algorithm uses many loops per time step until convergence (these are the nCorrectors) and does not need relaxation to not blow up
  • The PIMPLE algorithm is SIMPLE+PISO. So the first loops are SIMPLE within in a time step and the last is PISO. (Hence relaxation factors are prescribed differently for the last loop (e.g U and UFinal))
The benefit of relaxation is that you have no limit in time step. You can choose every value you want. SIMPLE gets away with unlimited time steps without even properly solving each time step due to relaxation, but looses time accuracy due to it (meaning you can't resolve changes in time correctly like vorticies etc). Hence it is ideal for steady state problems. PISO on the other hand does not use relaxation and hence has a limit on the time step. Which means, in order for the solution to not blow up, you need a small enough time step to capture the solution and keep errors small, and enough corrector loops per time step. PIMPLE allows for bigger time steps by combining the two. In theory allowing bigger time steps and time accuracy due to the mixed approach.


As already mentioned this does not always equate to one being faster than the other but it usually does. Relaxation means limiting the change in your solution. Hence your solution does not blow up as easily. It caps the change that is possible. This means many many solution cycles until you reach the steady state. But they are easier to solve for. For some problems this relaxation means immensely slowing the solution down, since the change itself might already be small. One example are diffusion heavy low Reynolds number flows. Here a steady state forms nearly instantaneously in real time. Hence PISO can do just fine, since the increased time step due to relaxation looses its benefit.
David*, Kummi, SHUBHAM9595 and 2 others like this.
Bloerb 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
pimpleFoam vs simpleFoam vs pisoFoam vs icoFoam? phsieh2005 OpenFOAM Running, Solving & CFD 45 March 22, 2021 10:14
pisoFoam and pimpleFoam are unstable in foam-extend 4.0/4.1 (misunderstanding ?) Kombinator OpenFOAM Running, Solving & CFD 4 January 14, 2021 05:10
icoUncoupledKinematicParcelFoam - simpleFoam pisoFoam saidc. OpenFOAM Running, Solving & CFD 0 March 29, 2020 15:27
pisoFoam, pimpleFoam - Fluent user's questions RodriguezFatz OpenFOAM Running, Solving & CFD 0 September 4, 2013 05:26
Differences simpleFoam vs. pimpleFoam / RASModel.H vs turbulenceModel.H uli OpenFOAM Programming & Development 7 January 26, 2013 16:01


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