D3plotReader#

class ansys.health.heart.post.dpf_utils.D3plotReader(path: pathlib.Path)#

Use DPF to parse the d3plot.

Overview#

get_initial_coordinates

Get initial coordinates.

get_ep_fields

Get EP fields container.

print_lsdyna_ms_results

Print available ms results.

get_displacement_at

Get the displacement field.

get_material_ids

Get a list of the material IDs.

get_history_variable

Get history variables in the d3plot.

get_heatflux

Get nodal heat flux vector from the d3plot.

Import detail#

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

Attribute detail#

D3plotReader.ds#
D3plotReader.model#
D3plotReader.meshgrid: pyvista.UnstructuredGrid#
D3plotReader.time#

Method detail#

D3plotReader.get_initial_coordinates() numpy.ndarray#

Get initial coordinates.

D3plotReader.get_ep_fields(at_step: int = None) ansys.dpf.core.FieldsContainer#

Get EP fields container.

D3plotReader.print_lsdyna_ms_results() None#

Print available ms results.

D3plotReader.get_displacement_at(time: float) numpy.ndarray#

Get the displacement field.

Parameters:
timefloat

Time to get the displacement field at.

Returns:
np.ndarray

Displacement array.

D3plotReader.get_material_ids() numpy.ndarray#

Get a list of the material IDs.

D3plotReader.get_history_variable(hv_index: List[int], at_step: int = 0) numpy.ndarray#

Get history variables in the d3plot.

Parameters:
hv_index: List[int]

History variables index.

at_step: int, default: 0

Step to get the history variables at.

Returns:
np.ndarray

History variables data.

Notes

d3plot.get_history_variable(hv_index=list(range(9)), at_frame=at_frame). To get the deformation gradient (column-wise storage), see MAT_295 in the LS-DYNA manuals.

D3plotReader.get_heatflux(step: int = 2) numpy.ndarray#

Get nodal heat flux vector from the d3plot.

Parameters:
stepint, default: 2

Time step

Returns:
np.ndarray

Heat flux.