CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Setting Time Step (https://www.cfd-online.com/Forums/fluent/216701-setting-time-step.html)

dinknflicka April 16, 2019 16:21

Setting Time Step
 
Hi all,

I have a general question regarding setting the time step. If I am running a simulation for several days of physical time where I essentially just want to monitor the depletion and distribution of several User-Defined Scalars over several days and I am not interested in capturing specific phenomena at certain time points, is using a large time step acceptable?

I see most simulations setting a time step with something like 0.001s to monitor flow phenomena over time, but if I'm simulating over 3 days of physical time, is it acceptable to pick a time step of several minutes if I still reach convergence for each time step in an appropriate number of iterations? Thanks for any input regarding this.

LuckyTran April 16, 2019 16:41

Is it okay? Yes. But there is some unreasonable limit and that is governed by the Courant number.

When the time-scale you are interested in is much longer than the natural flow time-scales, then your problem naturally requires more time-steps and you have to just accept it. Even a simple problem can be computationally expensive.

dinknflicka April 16, 2019 17:19

Hi there, thanks for the reply. I've done some reading on the Courant number and it seems like from what I've read that ideally the Courant number should not be greater than 1. Is this just a general rule of thumb when setting up simulations?

In my particular case, it seems the courant number is 1.08 with a time step of about 30 seconds, so I was planning on picking a time step that would reduce the courant number to 1. From your experience is this a logical process of determining the maximum time step that would be acceptable while still arriving at a meaningful solution?

AlexanderZ April 17, 2019 01:45

1. run your case with small time step for few physical minutes (1sec time step or less)
2. run your case with big time step for the same physical minutes (30 sec timestep)
3. compare solutions

best regards

LuckyTran April 17, 2019 11:19

Quote:

Originally Posted by dinknflicka (Post 730995)
Hi there, thanks for the reply. I've done some reading on the Courant number and it seems like from what I've read that ideally the Courant number should not be greater than 1. Is this just a general rule of thumb when setting up simulations?

In my particular case, it seems the courant number is 1.08 with a time step of about 30 seconds, so I was planning on picking a time step that would reduce the courant number to 1. From your experience is this a logical process of determining the maximum time step that would be acceptable while still arriving at a meaningful solution?


A Courant number of 1 is pretty good and if you are ok with 30s, that's a good place to start. But you mentioned that you wanted to take several minute time-steps...


For explicit time-stepping the Courant number must be less than 1 or it will diverge. Here it is a very explicit rule.

For an implicit solver (and Fluent is a an implicit solver) you can tolerate larger Courant numbers. You still have the numerical oscilllations but they are more manageable. Furthermore, Fluent uses under-relaxation (both explicit and implicit relation) which makes is nicely stable and Courant numbers of 2 and 10 are quite common. But you cannot get too large or you will also run into problems with accuracy even if it doesn't blow up. So yes it is a generally good idea and rule-of-thumb to have a Courant number <1.

The best thing to do is run simulations at different Courant numbers and see how it affects the solution (start near a Courant number of 1). And then make a well-informed decision on what Courant number works for you. You'll also be tweaking the number of iterations per time-step anyway so this is a good time to do it.

Btw you are not unique. Everyone that has done a transient simulation has encountered the problem you have. And you'll learn soon enough the impact of taking large time-steps. Happy learning.


If you want to take bigger time-steps, you need to get a coarser mesh, which might not even be the solution for you if you need a particular spatial resolution.


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