EPpostprocessor#

class ansys.health.heart.post.dpf_utils.EPpostprocessor(results_path: pathlib.Path, model: ansys.health.heart.models.HeartModel = None)#

Postprocess EP (plectrophysiology) results.

Overview#

load_ep_fields

Load all EP fields.

get_activation_times

Get the field with activation times.

get_transmembrane_potential

Get transmembrane potential.

get_extracellular_potential

Get extracellular potential.

get_intracellular_potential

Get intracellular potential.

get_calcium

Get calcium concentration.

read_ep_nodout

Read EP results.

create_post_folder

Create postprocessing folder.

animate_transmembrane

Animate transmembrane potentials and export to VTK.

export_transmembrane_to_vtk

Export transmembrane potentials to VTK.

compute_ECGs

Compute ECGs.

read_ECGs

Read ECG text file produced by the LS-DYNA simulation.

compute_12_lead_ECGs

Compute 12-lead ECGs from 10 electrodes.

Import detail#

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

Attribute detail#

EPpostprocessor.reader#
EPpostprocessor.fields = None#
EPpostprocessor.model = None#

Method detail#

EPpostprocessor.load_ep_fields()#

Load all EP fields.

EPpostprocessor.get_activation_times(at_step: int = None)#

Get the field with activation times.

EPpostprocessor.get_transmembrane_potential(node_id=None, plot: bool = False)#

Get transmembrane potential.

EPpostprocessor.get_extracellular_potential(node_id=None, plot: bool = False)#

Get extracellular potential.

EPpostprocessor.get_intracellular_potential(node_id=None, plot: bool = False)#

Get intracellular potential.

EPpostprocessor.get_calcium(node_id=None, plot: bool = False)#

Get calcium concentration.

EPpostprocessor.read_ep_nodout()#

Read EP results.

EPpostprocessor.create_post_folder(path: pathlib.Path = None)#

Create postprocessing folder.

EPpostprocessor.animate_transmembrane()#

Animate transmembrane potentials and export to VTK.

EPpostprocessor.export_transmembrane_to_vtk()#

Export transmembrane potentials to VTK.

EPpostprocessor.compute_ECGs(electrodes: numpy.ndarray)#

Compute ECGs.

EPpostprocessor.read_ECGs(path: pathlib.Path)#

Read ECG text file produced by the LS-DYNA simulation.

EPpostprocessor.compute_12_lead_ECGs(ECGs: numpy.ndarray, times: numpy.ndarray, plot: bool = True) numpy.ndarray#

Compute 12-lead ECGs from 10 electrodes.

Parameters:
ECGsnp.ndarray

mxn array containing ECGs, where m is the number of time steps and n is 10 electrodes in this order: ‘’V1’’ ‘’V2’’ ‘’V3’’ ‘’V4’’ ‘’V5’’ ‘’V6’’ ‘’RA’’ ‘’LA’’ ‘’RL’’ ‘’LL’’

plotbool, default: True

Whether to plot.

Returns:
np.ndarray

12-lead ECGs in this order: I II III aVR aVL aVF V1 V2 V3 V4 V5 V6