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

too small time-step interFoam solver

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By michielm
  • 1 Post By Chris Lucas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2012, 07:31
Default too small time-step interFoam solver
  #1
New Member
 
Join Date: Apr 2011
Posts: 28
Rep Power: 15
pepe.aero is on a distinguished road
Hi all,

i'm using interFoam solver working on a multiphase problem.
My target is to impose a Froude number up to 1-1.5.
I setup the adjustTimeStep as ON in the controlDict file in order to respect the CFL condition due to a Courant number of 1.0. This is very restrictive on the time-step, that results of order 1e-05 (or 1e-06) for Froude number = 0.57 .

Is anyone able to use interFoam with a larger time step (i.e. 1e-03) using a similar Froude number?
If yes (I hope!), is this a problem related to my numerical setup, or I have to impose unsteady "smooth" boundary conditions on velocity (ramp, cosine...ect...) ?

Thanks for your help,

Kind regards,

Andrea
pepe.aero is offline   Reply With Quote

Old   October 16, 2012, 09:04
Default
  #2
Member
 
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 16
michielm is on a distinguished road
As you probably know the CFL criterion is calculated as: \frac{u \Delta t}{\Delta x}

So given your expected maximum velocity (u) and grid size (\Delta x) you can calculate the timestep that you could roughly expect.

What velocity and grid size do you have?
michielm is offline   Reply With Quote

Old   October 16, 2012, 12:55
Default
  #3
New Member
 
Join Date: Apr 2011
Posts: 28
Rep Power: 15
pepe.aero is on a distinguished road
Hi Michiel,

thanks for the quick reply.

I know about CFL condition and Courant formulation. I agree with you about a roughly "a priori" estimation of time step, and I've tried to do it for my case. The result of my estimation agree more or less with the dt used by the solver. And this is good.

But I know that commercial solvers (as Fluent) are able to run CFD simulation up to Courant 5, 7, and in same cases 10 in order to increase time step. Of course this involves a reduction of solution accuracy, but my interest is to understand if OpenFOAM is able to run CFD simulation with Courant larger than 1.0, maybe after having modified some numerical parameters in fvSchemes and fvSolutions.

Hope this can be clearly explained. What is your idea about it?
Thanks again.

Regards,

Andrea
pepe.aero is offline   Reply With Quote

Old   October 16, 2012, 14:08
Default
  #4
Member
 
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 16
michielm is on a distinguished road
In principle the CFL criterion is only necessary for explicit time-marching schemes. So I guess that if you set up your discretization schemes (in fvSchemes) such that you solve all equations fully implicit that you can increase your timestep.

I am pretty sure this is also how it is possible in e.g. Fluent to have convergence with CFL>1, because with explicit schemes a CFL>1 will not only give you inaccurate answers, it will give you a diverging result.

But if you don't care too much about the accuracy of your results I think it will be easier and quicker to just lower the number of grid cells that you have.
Ethon likes this.
michielm is offline   Reply With Quote

Old   October 17, 2012, 04:17
Default
  #5
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18
Chris Lucas is on a distinguished road
Hi,

OpenFOAM used implicit schemes. Otherwise your time step would be even smaller as it is now.


One reason why to need CFL<1 is the piso algorithms used in the solver. If you include internal iterations with relaxation in the solver, you can run at higher CFL numbers (see rhoPimpleFoam). Or, as a faster method, use time discretization schemes with local time stepping (CoEuler …). This method can be used if you are interested in the steady state solution




Regards,
Christian
kiddmax likes this.
Chris Lucas is offline   Reply With Quote

Reply

Tags
courant number, interfoam, multiphase, time-step


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
Time step size and max iterations per time step pUl| FLUENT 31 October 23, 2020 23:50
why did Time step is too small in stiffbs? satum FLUENT 1 December 10, 2012 10:15
Problem with FloatingObject Leech OpenFOAM Running, Solving & CFD 10 March 29, 2012 16:24
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


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