The models_utils.py module#
Summary#
Define Sino-atrial node. |
|
Define Atrio-ventricular node. |
|
Define His bundle bifurcation node. |
|
Define His bundle end node. |
|
Define Bachmann bundle end node. |
|
Define fascile bundle end node. |
|
Define the full conduction system. |
Description#
Stateless methods for the heart model.
Module detail#
- models_utils.define_sino_atrial_node(model: ansys.health.heart.models.FullHeart | ansys.health.heart.models.FourChamber, landmarks: ansys.health.heart.landmarks.LandMarks, target_coord: numpy.ndarray | list = None) ansys.health.heart.objects.Point | None#
Define Sino-atrial node.
- Parameters:
- model
models.FullHeart|models.FourChamber Heart model.
- landmarks
LandMarks Landmarks instance to store the SA node.
- target_coord
np.ndarray|list, default:None If
None, the target coordinate is computed as the midpoint between the centroids of the superior and inferior vena cavae. If a coordinate is provided, the closest point on the right atrium endocardium surface to that coordinate is used.
- model
- Returns:
Point|NoneSino-atrial node.
- models_utils.define_atrio_ventricular_node(model: ansys.health.heart.models.FullHeart | ansys.health.heart.models.FourChamber, landmarks: ansys.health.heart.landmarks.LandMarks, target_coord: numpy.ndarray | list = None) ansys.health.heart.objects.Point | None#
Define Atrio-ventricular node.
- Parameters:
- model
models.FullHeart|models.FourChamber Heart model.
- landmarks
LandMarks Landmarks instance to store the AV node.
- target_coord
np.ndarray|list, default:None If
None, the target coordinate is computed as the closest point on the right atrium endocardium surface to the right ventricle septum. If a coordinate is provided, the closest point on the right atrium endocardium surface to that coordinate is used.
- model
- Returns:
Point|NoneAtrioventricular node.
- models_utils.define_his_bundle_bifurcation_node(model: ansys.health.heart.models.FourChamber | ansys.health.heart.models.FullHeart, landmarks: ansys.health.heart.landmarks.LandMarks, target_coord: numpy.ndarray | list = None) ansys.health.heart.objects.Point | None#
Define His bundle bifurcation node.
- Parameters:
- model
models.FourChamber|models.FullHeart Heart model.
- landmarks
LandMarks Landmarks instance to get AV node and store HIS bifurcation node.
- target_coord
np.ndarray|list, default:None If
None, the target coordinate is computed as the closest point in the septum to the AV node. If a coordinate is provided, the closest point in the septum to that coordinate is used.
- model
- Returns:
Point|NoneHis bifurcation node.
- models_utils.define_his_bundle_end_node(model: ansys.health.heart.models.FullHeart | ansys.health.heart.models.FourChamber, landmarks: ansys.health.heart.landmarks.LandMarks, target_coord: numpy.ndarray | list = None, side: Literal['left', 'right'] = 'left', n_close: int = 20) ansys.health.heart.objects.Point | None#
Define His bundle end node.
- Parameters:
- model
models.FullHeart|models.FourChamber Heart model.
- landmarks
LandMarks Landmarks instance to get HIS bifurcation node and store end nodes.
- target_coord
np.ndarray|list, default:None If
None, the target coordinate is computed as the n-th closest point on the endocardium to the His bundle bifurcation node. Not implemented yet if a coordinate is provided.- side
Literal["left", "right"], default: “left” Side of the heart to define the end node for.
- n_close
int, default: 20 n-th closest point to the bifurcation node, to avoid too close to the bifurcation node.
- model
- Returns:
Point|NoneHis end node.
- models_utils.define_bachman_bundle_end_node(model: ansys.health.heart.models.FullHeart | ansys.health.heart.models.FourChamber, target_coord=None) ansys.health.heart.landmarks.LandMarks | None#
Define Bachmann bundle end node.
- models_utils.define_fascile_bundle_end_node(model: ansys.health.heart.models.FullHeart | ansys.health.heart.models.FourChamber, target_coord=None) ansys.health.heart.landmarks.LandMarks | None#
Define fascile bundle end node.
- models_utils.define_full_conduction_system(model: ansys.health.heart.models.FullHeart | ansys.health.heart.models.FourChamber | ansys.health.heart.models.BiVentricle, purkinje_folder: str, landmarks: ansys.health.heart.landmarks.LandMarks = None) tuple[list[ansys.health.heart.pre.conduction_path.ConductionPath], ansys.health.heart.landmarks.LandMarks]#
Define the full conduction system.
- Parameters:
- model
models.FullHeart|models.FourChamber|models.BiVentricle Heart model.
- purkinje_folder
str Folder with LS-DYNA’s Purkinje generation.
- landmarks
LandMarks,optional Existing landmarks instance. If None, a new one is created.
- model
- Returns: