pyvista.examples.downloads.download_fea_bracket

pyvista.examples.downloads.download_fea_bracket#

download_fea_bracket(load=True)[source]#

Download the finite element solution of a bracket.

Contains von-mises equivalent cell stress assuming a vertical (y-axis) load.

Parameters:
loadbool, default: True

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

Returns:
pyvista.UnstructuredGrid | str

DataSet or filename depending on load.

Examples

Download and plot equivalent cell stress.

>>> from pyvista import examples
>>> grid = examples.download_fea_bracket()
>>> grid.plot()
../../../_images/pyvista-examples-downloads-download_fea_bracket-1_00_00.png

Plot the point stress using the 'jet' color map. Convert the cell data to point data.

>>> from pyvista import examples
>>> grid = examples.download_fea_bracket()
>>> grid = grid.cell_data_to_point_data()
>>> grid.plot(smooth_shading=True, split_sharp_edges=True, cmap='jet')
../../../_images/pyvista-examples-downloads-download_fea_bracket-1_01_00.png