D3plotToVTKExporter#

class ansys.health.heart.post.dpf_utils.D3plotToVTKExporter(d3plot_file: str, t_to_keep: float = 100000000000.0)#

Read d3plot and save the deformed mesh.

Overview#

convert_to_pvgrid_at_t

Convert d3plot data into a PyVista UnstructuredGrid object.

Import detail#

from ansys.health.heart.post.dpf_utils import D3plotToVTKExporter

Attribute detail#

D3plotToVTKExporter.data#
D3plotToVTKExporter.save_time#

Method detail#

D3plotToVTKExporter.convert_to_pvgrid_at_t(time: float, fname: str = None) pyvista.UnstructuredGrid#

Convert d3plot data into a PyVista UnstructuredGrid object.

Parameters:
timefloat

Time to convert.

fnamestr, default: None

Name of file to save data to.

Returns:
pv.UnstructuredGrid

Result in PyVista object.