geost.models.model_array.ModelDataArray.to_pyvista_grid#

ModelDataArray.to_pyvista_grid(data_vars: str | list[str] = None, structured: bool = True)#

Convert the model to a PyVista grid.

Parameters:
  • data_vars (str | list[str], optional) – String representing one data variable or list of data variables to include in the PyVista grid. If None, all data variables are included. The default is None.

  • structured (bool, optional) – If True, convert to a structured grid. If False, convert to an unstructured grid. The default is True.

Returns:

PyVista grid representation of the model.

Return type:

pyvista.UnstructuredGrid or pyvista.StructuredGrid