sfepy.postprocess.utils_vtk module

Postprocessing utils based on VTK library

sfepy.postprocess.utils_vtk.get_vtk_by_group(vtkdata, group_lower, group_upper=None)[source]

Get submesh by material group id.

Parameters:
vtkdataVTK object

Mesh, scalar, vector and tensor data.

group_lowerint

The lower material id.

group_lowerint

The Upper material id.

Returns:
slectionVTK object

Mesh, scalar, vector and tensor data.

sfepy.postprocess.utils_vtk.get_vtk_edges(vtkdata)[source]

Get mesh edges.

Parameters:
vtkdataVTK object

Mesh, scalar, vector and tensor data.

Returns:
edgesVTK object

Mesh, scalar, vector and tensor data.

sfepy.postprocess.utils_vtk.get_vtk_from_file(filename)[source]

Read VTK file.

Parameters:
filenamestr

Name of the VTK file.

Returns:
vtkdataVTK object

Mesh, scalar, vector and tensor data.

sfepy.postprocess.utils_vtk.get_vtk_from_mesh(mesh, data, prefix='')[source]
sfepy.postprocess.utils_vtk.get_vtk_surface(vtkdata)[source]

Get mesh surface.

Parameters:
vtkdataVTK object

Mesh, scalar, vector and tensor data.

Returns:
surfaceVTK object

Mesh, scalar, vector and tensor data.

sfepy.postprocess.utils_vtk.tetrahedralize_vtk_mesh(vtkdata)[source]

3D cells are converted to tetrahedral meshes, 2D cells to triangles.

Parameters:
vtkdataVTK object

Mesh, scalar, vector and tensor data.

Returns:
tetraVTK object

Mesh, scalar, vector and tensor data.

sfepy.postprocess.utils_vtk.write_vtk_to_file(filename, vtkdata)[source]

Write VTK file.

Parameters:
filenamestr

Name of the VTK file.

vtkdataVTK object

Mesh, scalar, vector and tensor data.