From 4df5bb9784aa10d996d1ce41d751c00f1ffd8015 Mon Sep 17 00:00:00 2001 From: wenfengye Date: Tue, 29 Jul 2025 15:12:18 +0200 Subject: [PATCH 1/3] change zerop bc --- src/ansys/health/heart/writer/mechanics_writer.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ansys/health/heart/writer/mechanics_writer.py b/src/ansys/health/heart/writer/mechanics_writer.py index 79b9eaf65..c1c3b47f4 100644 --- a/src/ansys/health/heart/writer/mechanics_writer.py +++ b/src/ansys/health/heart/writer/mechanics_writer.py @@ -473,8 +473,17 @@ def _get_contraint_caps(self) -> list[CapType]: ] if isinstance(self, ZeroPressureMechanicsDynaWriter): - # add additional constraint to avoid rotation - constraint_caps.extend([CapType.PULMONARY_VALVE]) + constraint_caps.extend( + [ + # add additional constraint to avoid rotation + CapType.PULMONARY_VALVE, + # add additional constraint to on atrial + CapType.INFERIOR_VENA_CAVA, + CapType.LEFT_INFERIOR_PULMONARY_VEIN, + CapType.LEFT_SUPERIOR_PULMONARY_VEIN, + CapType.LEFT_ATRIUM_APPENDAGE, + ] + ) return constraint_caps From 7ff5104b77ed7af7726abf4ba0ece2264000e050 Mon Sep 17 00:00:00 2001 From: wenfengye Date: Tue, 29 Jul 2025 15:12:32 +0200 Subject: [PATCH 2/3] low la pressure --- src/ansys/health/heart/settings/defaults/mechanics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/health/heart/settings/defaults/mechanics.py b/src/ansys/health/heart/settings/defaults/mechanics.py index 763fb37c7..c3cd80495 100644 --- a/src/ansys/health/heart/settings/defaults/mechanics.py +++ b/src/ansys/health/heart/settings/defaults/mechanics.py @@ -153,7 +153,7 @@ # TODO: align names with cavity/part names. # https://doi.org/10.3389/fphys.2018.00539 "left_ventricle": Quantity(15, "mmHg"), - "left_atrial": Quantity(15, "mmHg"), + "left_atrial": Quantity(8, "mmHg"), "right_ventricle": Quantity(8, "mmHg"), "right_atrial": Quantity(8, "mmHg"), # # https://doi.org/10.1016/j.jbiomech.2020.109645 From accabef63b77044974c1f633de261c511438de5a Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 5 Aug 2025 14:53:58 +0000 Subject: [PATCH 3/3] chore: adding changelog file 1182.added.md [dependabot-skip] --- doc/source/changelog/1182.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/source/changelog/1182.added.md diff --git a/doc/source/changelog/1182.added.md b/doc/source/changelog/1182.added.md new file mode 100644 index 000000000..90787b567 --- /dev/null +++ b/doc/source/changelog/1182.added.md @@ -0,0 +1 @@ +Enhance zero pressure boundary conditions \ No newline at end of file