pyvista.examples.downloads.download_electronics_cooling#

download_electronics_cooling(load=True)[source]#

Download the electronics cooling example datasets.

Data generated from public SimScale examples at SimScale Project Library - Turbo.

Licensing for this dataset is granted to freely and without restriction reproduce, distribute, publish according to the SimScale Terms and Conditions.

Parameters:
loadbool, default: True

Load the dataset after downloading it when True. Set this to False and only the filename will be returned.

Returns:
tuple[PolyData, UnstructuredGrid] | list[str]

DataSets or filenames depending on load.

Examples

Load the datasets and plot the air velocity through the electronics.

>>> import pyvista as pv
>>> from pyvista import examples
>>> structure, air = examples.download_electronics_cooling()

Show the type and bounds of the datasets.

>>> structure, air
(PolyData (...)
  N Cells:    344270
  N Points:   187992
  N Strips:   0
  X Bounds:   -3.000e-03, 1.530e-01
  Y Bounds:   -3.000e-03, 2.030e-01
  Z Bounds:   -9.000e-03, 4.200e-02
  N Arrays:   4, UnstructuredGrid (...)
  N Cells:    1749992
  N Points:   610176
  X Bounds:   -1.388e-18, 1.500e-01
  Y Bounds:   -3.000e-03, 2.030e-01
  Z Bounds:   -6.000e-03, 4.400e-02
  N Arrays:   10)
>>> z_slice = air.clip('z', value=-0.005)
>>> pl = pv.Plotter()
>>> pl.enable_ssao(radius=0.01)
>>> _ = pl.add_mesh(
...     z_slice,
...     scalars='U',
...     lighting=False,
...     scalar_bar_args={'title': 'Velocity'},
... )
>>> _ = pl.add_mesh(
...     structure,
...     color='w',
...     smooth_shading=True,
...     split_sharp_edges=True,
... )
>>> pl.camera_position = 'xy'
>>> pl.camera.roll = 90
>>> pl.enable_anti_aliasing('fxaa')
>>> pl.show()
../../../_images/pyvista-examples-downloads-download_electronics_cooling-1_00_00.png

See also

Electronics Cooling Dataset

See this dataset in the Dataset Gallery for more info.

Electronics Cooling CFD

Full example using this dataset.