[FLASH-USERS] courant factor

Klaus Weide klaus at flash.uchicago.edu
Fri Apr 28 12:29:36 EDT 2017


On Fri, 28 Apr 2017, Riccardo Ciolfi wrote:

>  Dear Robert and Klaus, 
> 
> thank you very much for you reply. 
> 
> First, I would like to ask a clarification: does "global" delta_t mean 
> that it is set the same in the entire block (but can still vary in 
> different blocks) or it is the same in the entire computational domain 
> of the simulation (i.e. in all the blocks)?

There is no subcycling within Hydro in FLASH, so all cells in all blocks 
are advance by the same time step.

> To answer your question, my setup is purely hydro (an initial ball of 
> matter in expansion, with a max expansion speed of 1e-4 c).
> In 1D it is a spherically simmetric expansion and cfl=0.8 is fine. In 2D 
> I use axisymmetry and cylindrical coordinates with reflective bounday 
> conditions on R_cyl=0 and outflow-type on R_cyl_max, z_min, and z_max.
> Could it be that the cfl is required very low close to the axis, thus 
> compromising the choice of delta_t for the entire domain?

Here are some ideas (some may have been mentioned by others already):

(I'll assume you are using HydroMain/unsplit/Hydro_Unsplit since that's 
the default in 4.4 and you haven't said otherwise.)

1. The standard output may have useful information that you have not 
considered. In particular, the numbers within parentheses give the 
coordinates of the (or a) cell that determines the time step.
This could give you a quick idea of where your problem lies, without even 
having to look at a plot file.

2. you may want to modify dtinit and tstep_change_factor (to let the time 
step grow more slowly at the beginning).

3. Maybe use shockLowerCFL = .TRUE.

4. Try using a location-dependent CFL value. To do that, just declare a 
VARIABLE named cfl in your Config, and initialize UNK(CFL_VAR,...) in 
Simulation_initBlock as desired. Your could, for example, set a low value 
of 0.1 close to the axis, and 0.8 elsewhere.
(Note: there will still be only one global time step - just the way it is 
computed can use a different factor in different cells.)

Klaus



More information about the flash-users mailing list