Hmm, this simulation is taking quite a while...What if we want to stop the simulation, make some modifications to the simulation file and restart where we left from? Or equivalently, save the whole simulation at regular intervals for latter post-processing?
You can do this using the GfsOutputSimulation object. Like this for example:
GfsOutputSimulation { step = 0.1 } half-cylinder-%3.1f.sim { variables = U,V,P }where variables defines which variables you want to save. By default all the variables are saved.
If you now re-run the simulation, you will get a new file every 0.1 time units. This file is a valid simulation file (like half-cylinder.sim) and you can use it directly to restart the simulation from this point onward. If you edit it, you will see that the general structure is the same as usual but for five pretty big chunks of data.
The first chunk starts with GtsSurface and is just the data contained in half-cylinder.gts but this time embedded directly (by using GtsSurface rather than GtsSurfaceFile) into the simulation file. The goal there is to have fully self-contained simulations files which you can just move around without having to keep track of twenty different files.
The four other chunks are each associated with a GfsBox and contain both the topology of the corresponding cell tree but also the associated physical data, solid boundary definitions etc...
You can of course edit this file, add new outputs and so on and restart the simulation from where you left it.