CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to set up large timesteps?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2020, 04:13
Default How to set up large timesteps?
  #1
New Member
 
Ann
Join Date: Nov 2019
Posts: 6
Rep Power: 6
Adyk is on a distinguished road
Hi there,

i'm not sure if it's even possible: I'd like to run a case for a long time (in future probably up to 4 weeks, so that the endtime is around 2.400.000 seconds). The details in between are not that important to me, so the timesteps can be large.

In controlDict I tried to adjust the Courant Number maxCo (set it to 1000.000), timePrecision, writeInterval and deltaT, but every time i got errors.

So my questions are: is it possible at all to run a case for such long time interval (with large timesteps/writeInterval) and if yes, how do i do this?

Hope you can help me out!
Adyk is offline   Reply With Quote

Old   January 27, 2020, 04:24
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

The best solution to large timesteps is to use the pimple algorithm the "right" way.

https://openfoamwiki.net/index.php/O...hm_in_OpenFOAM

https://holzmann-cfd.com/en/openfoam...rithm-analysis

https://holzmann-cfd.com/en/publicat...nd-openfoam-v7 (Worth the €9.99)

Most transient in-compressible tutorials utilize pimple, but in PISO mode.

Using a Co = 1000 might be a stretch.
You can maybe safely utilize a Co of 50 -> 200 depending on your flow type.

Beware this is only for in-compressible transient simulations. If you are doing combustion, interface flow (VoF) etc. a Co below or equal to 1 would still be needed.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   January 27, 2020, 04:43
Default
  #3
New Member
 
Ann
Join Date: Nov 2019
Posts: 6
Rep Power: 6
Adyk is on a distinguished road
Hi Linnemann,
thanks for your quick reply!

Well, I'm using rheoInterfoam (from rheoTools), it's a solver for incompressible, two-phase flows (VOF). I'm not sure, but I think it's using pimple:

in "fvSolution":
Code:
 
PIMPLE
{
    nInIter         1;
    SIMPLEC         true;
    
    nCorrectors     1;
    nNonOrthogonalCorrectors 0;
}
Hm, oh, did not know, that the Courant number in VoF should be at max. 1.. What is the reason for that? Because with the higher couant number (e.g. 250) it's working fine
Adyk is offline   Reply With Quote

Old   January 27, 2020, 06:19
Default
  #4
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Well it depends on the level of accuracy you expect from your solution.

https://www.researchgate.net/post/is...gh_in_openFoam

So even though you "can" have a high Co, the trade-off is between accuracy/stability and simulation time.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Reply

Tags
controldict, large timestep, timestep, writeinterval


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
does Hyperthreading affect the application of UDF? SJSW Fluent UDF and Scheme Programming 11 October 10, 2018 22:28
CFD-Post: create chart from a large data set Kosch ANSYS 0 August 30, 2018 22:39
AMI memory leak? MichiB OpenFOAM Programming & Development 14 August 1, 2015 18:18
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Help with GNUPlot Renato. Main CFD Forum 6 June 6, 2007 19:51


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