, pos, fields)[source]

Export a field to vtk structured rectilinear grid file.

  • filename (str) – Filename of the file to be saved, including the path. Note that an ending (.vtr) will be added to the name.

  • pos (list) – the position tuple, containing main direction and transversal directions

  • fields (dict or numpy.ndarray) – Structured fields to be saved. Either a single numpy array as returned by SRF, or a dictionary of fields with theirs names as keys.