gstools.tools.to_vtk_unstructured

gstools.tools.to_vtk_unstructured(pos, fields)[source]

Export a field to vtk structured rectilinear grid file.

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

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

Returns:

A PyVista unstructured grid of the unstructured field data. Data arrays live on the point data of this PyVista dataset. This is essentially a point cloud with no topology.

Return type:

pyvista.UnstructuredGrid