solidipes_solid_mech_plugin.loaders.xdmf module

class solidipes_solid_mech_plugin.loaders.xdmf.XDMF(*args, **kwargs)[source]

Bases: Sequence, XML

class PyvistaPlotter(data_container=None, add_kwargs={}, show_kwargs={}, **kwargs)

Bases: Viewer

Viewer for pyvista meshes

Parameters:

**kwargs – keyword arguments passed to the pyvista.Plotter constructor

_abc_impl = <_abc._abc_data object>
_update_path_list(data_container)
add(data_container, **kwargs)

Add mesh to the viewer

Parameters:

**kwargs – keyword arguments passed to the pyvista.Plotter.add_mesh method

add_mesh(data_container: DataContainer, **kwargs)

Add mesh to the viewer

Parameters:

**kwargs – keyword arguments passed to the pyvista.Plotter.add_mesh method

add_points(data_container, **kwargs)

Add mesh as points to the viewer

Parameters:

**kwargs – keyword arguments passed to the pyvista.Plotter.add_points method

plotter

Pyvista plotter

save(path, **kwargs)

Save the view to a file

Parameters:
  • path – path to the file

  • **kwargs – keyword arguments passed to the pyvista.Plotter.screenshot method

show(auto_close=False, **kwargs)

Show the viewer

Parameters:
  • auto_close – whether to close the viewer after showing it

  • **kwargs – keyword arguments passed to the pyvista.Plotter.show method

shown

keeps track of whether the plotter has already been shown

_compatible_viewers: list[Type[Viewer]] = [<class 'solidipes_solid_mech_plugin.viewers.pyvista_plotter.PyvistaPlotter'>]

List of compatible Viewer classes. Doesn’t need to include Viewer classes already listed in parent classes.

property _element_count
_load_element(n)[source]

Load a single frame

_load_hdf5_data_item(item)[source]
_load_xdmf_data_item(item)[source]
property domain
find_dataitem_from_ref(ref)[source]
property grid
property grids
property mesh
property mesh_name
property n_frames
select_frame(frame)[source]
supported_mime_types = {'mesh/XDMF': 'xdmf'}

List of supported mime types and extensions. Override in subclasses. The key is the mime type and the value is one or more file extensions (string or list of strings)

property version
property xdmf