From Gerris

Revision as of 15:32, 24 July 2012; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

GfsTime defines the starting and finishing time for the run, either in terms of the floating-point model time or the integer time-step number, or a combination. By default both floating-point t and time-step number i are zero when the program starts, but it is possible to set different values using for example

 GfsTime { t = 1.4 i = 32 end = 0 }

and it will be found that this is done in the files produced by GfsOutputSimulation so that these can be used to restart runs. (Technical note: if i is zero, as it is by default but not in a restart, the initial velocity field is projected onto the divergence-free subspace before the simulation begins.)

The end and iend identifiers specify that the simulation should stop when the floating-point model time reaches the given value or the prescribed number of steps have been taken, whichever comes first; either stopping criterion is ignored if its keyword is omitted.

Another parameter, dtmax, can be used to cap the time-step, as in the Rayleigh–Taylor example

 Time { end = 1 dtmax = 5e-3 }
Personal tools