&savelist
itsave(1,3)=0
dtsave(3)=0.1d0
nslices=3
slicedir(1)=1
slicecoord(1)=0.6
slicedir(2)=3
slicecoord(2)=0.8
slicedir(3)=2
slicecoord(3)=0.7
/
The total number of slices is specified by nslices.
The implementation obtains a properly Morton ordered subdimensional forest with the same levels as the original simulation, such that the output can even be used for restarts in lower dimension.
In the standard configuration, BHAC will output cell-centered *.vtu files. In addition, you can select the format of the dump-files *.dat (for sub-dimensional re-starts) and ascii *.csv files.
This is controlled in the filelist:
&filelist
slice_type = 'vtuCC' | 'vtu' | 'dat' | 'csv'
/
This means in order: cell-centered vtu files, point-wise vtu files, native dump-files and ascii csv-files.
The output filename is composed of the direction and offset values. For example, the first slice output name reads filenameout-d1-x0.6D00-nXXXX.dat and analoge for the other two slices.
&savelist
itsave(1,3)=0
nslices=3
slicedir(1)=1
slicecoord(1)=0.6
slicedir(2)=3
slicecoord(2)=0.8
slicedir(3)=2
slicecoord(3)=0.7
/
The stoplist should look like the following,
&stoplist
itreset=.true.
itmax=0
/
where we reset the iteration counter (so that itsave(1,3)=0 will output slice data) and stop the code immediately after the IO (itmax=0).
The code can then be started with
./bhac -restart 10 -i slices.par -slice 10 -if output/datawhich will take the output output/data0010.dat (-restart 10, -if output/data) to create new slices with index 10 (-slice 10). The par-file is the newly created slices.par (-i slices.par) so that the default used to run the code can be left untouched. It is a simple exercise in shell scripting to run along all output-files in one go. For example with the BASH:
for i in {0..10}; do ./bhac -restart $i -i slices.par -slice $i -if output/data; done
import read,amrplot d = read.load(100,file='output/data-d3-x0.0D00-n',rotateX=-90)for a run in spherical coordinates where the third direction is phi and hence the slice is originally in the x-z plane.