, fields)[source]

Create a vtk structured rectilinear grid from a field.

  • 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.


A PyVista rectilinear grid of the structured field data. Data arrays live on the point data of this PyVista dataset.

Return type