post_io

This section gives an overview over the different post processing I/O funtions of the dnami library.

Post processing I/O functions

pst.utils.post_io.load_ax(path, wp='float64')

Load the axes (x in 1d, (x,y) in 2d, (x,y,z) in 3d) which are the coordinates in physical space as well as the number of points in each direction.

Parameters:

path – The path to the axis file. Usually written out in the work directory in /path/to/wrk/out/axes.bin

Returns:

If it is a 1D problem x,nxgb is returned If it is a 2D problem x,y,nxgb,nygb is returned If it is a 3D problem x,y,z,nxgb,nygb,nzgb is returned

pst.utils.post_io.read_restart(fname, wp='float64')

Input a restart_XXXXXXXX file and the function will return the full core of q. Can also be used to read custom outputs from the dnami_io.write_data() function.

Parameters:

fname – The path to the restart file. Usually written out in the work directory in /path/to/wrk/restarts/restart_XXXXXXXX

Returns:

The timestep number n, the time t and the variables in the core of the domain q are returned

pst.utils.post_io.read_restart_wshell(fname, verbose=False, wp='float64')

Input a restart_XXXXXXXX file and the function will return the full q including the shell information. Can also be used to read custom outputs from the dnami_io.write_data() function.

Parameters:
  • fname – The path to the restart file. Usually written out in the work directory in /path/to/wrk/restarts/restart_XXXXXXXXX. The shell file name will be automatically detected.

  • verbose – print additional information

Returns:

The timestep number n, the time t and the variables in the full domain, including the shells, q are returned