pyvista.examples.downloads.download_nek5000

pyvista.examples.downloads.download_nek5000#

download_nek5000(load=True)[source]#

Download 2D nek5000 data example.

Added in version 0.45.0.

Parameters:
loadbool, optional

Load the dataset after downloading it when True. Set this to False and only the filename will be returned. True requires vtk >= 9.3.

Returns:
pyvista.UnstructuredGrid | str

DataSet or filename depending on load.

Examples

>>> from pyvista import examples
>>> dataset = examples.download_nek5000()
>>> dataset.plot(scalars='Velocity', cpos='xy')
../../../_images/pyvista-examples-downloads-download_nek5000-1_00_00.png

See also

Nek5000 Dataset

See this dataset in the Dataset Gallery for more info.