Skip to content

Commit d976db4

Browse files
fix: missing conduction system for biventricle models (#1231)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent dd4c98f commit d976db4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

doc/source/changelog/1231.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Missing conduction system for biventricle models

src/ansys/health/heart/models_utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,15 @@ def define_fascile_bundle_end_node(
271271

272272

273273
def define_full_conduction_system(
274-
model: models.FullHeart | models.FourChamber,
274+
model: models.FullHeart | models.FourChamber | models.BiVentricle,
275275
purkinje_folder: str,
276276
landmarks: LandMarks = None,
277277
) -> tuple[list[ConductionPath], LandMarks]:
278278
"""Define the full conduction system.
279279
280280
Parameters
281281
----------
282-
model : models.FullHeart | models.FourChamber
282+
model : models.FullHeart | models.FourChamber | models.BiVentricle
283283
Heart model.
284284
purkinje_folder : str
285285
Folder with LS-DYNA's Purkinje generation.
@@ -310,6 +310,10 @@ def define_full_conduction_system(
310310
model=model,
311311
)
312312

313+
if isinstance(model, models.BiVentricle):
314+
return [left_purkinje, right_purkinje], landmarks
315+
316+
# Define other parts of the conduction system
313317
sa = define_sino_atrial_node(model, landmarks)
314318
av = define_atrio_ventricular_node(model, landmarks)
315319

src/ansys/health/heart/simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def compute_purkinje(self):
516516

517517
def compute_conduction_system(self):
518518
"""Compute the conduction system."""
519-
if isinstance(self.model, models.FourChamber):
519+
if isinstance(self.model, (models.FourChamber, models.BiVentricle)):
520520
# TODO: refinement is not correctly used
521521
# beam_length = self.settings.purkinje.edgelen.m
522522

0 commit comments

Comments
 (0)