D3plotReader
#
- class ansys.health.heart.post.dpf_utils.D3plotReader(path: pathlib.Path)#
Use DPF to parse the d3plot.
Overview#
Get initial coordinates. |
|
Get EP fields container. |
|
Print available ms results. |
|
Get the displacement field. |
|
Get a list of the material IDs. |
|
Get history variables in the d3plot. |
|
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.get_displacement_at(time: float) numpy.ndarray #
Get the displacement field.
- Parameters:
- time
float
Time to get the displacement field at.
- time
- 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.