You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demo/time_dependent/complete_cycle.py
+84-58Lines changed: 84 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# # Complete Multiscale Simulation with Prestressing
2
2
#
3
3
# This comprehensive demo illustrates a complete cardiac mechanics pipeline involving:
4
-
# 1. **Geometry**: Generating a Bi-Ventricular (BiV) mesh from the UK Biobank Atlas, rotating it, and generating fiber fields using LDRB.
4
+
# 1. **Geometry**: Generating a Bi-Ventricular (BiV) mesh from the UK Biobank Atlas, rotating it, and generating fiber fields using LDRB, which is similar to what is implemented in [rotated BiV demo](../boundary_conditions/ukb_bcs.py). In addition we show how to generate additional fields such as longitudinal and circumferential fields for computing e.g longitudinal strain, similar to the [additional data demo in `caridac-geometriesx`](https://computationalphysiology.github.io/cardiac-geometriesx/demos/additional_data.html)
5
5
# 2. **0D Circulation**: Running a 0D closed-loop circulation model (Regazzoni) to establish physiological pressure traces.
6
-
# 3. **Prestressing**: Solving the Inverse Elasticity Problem (IEP) to find the unloaded reference configuration that matches the atlas geometry at End-Diastole (ED).
6
+
# 3. **Prestressing**: Solving the Inverse Elasticity Problem (IEP) to find the unloaded reference configuration that matches the atlas geometry at End-Diastole (ED). This is similar to what is impemtented in [the BiV prestress demo](../prestress/prestress_biv.py)
7
7
# 4. **Inflation**: Ramping the unloaded mesh back to the End-Diastolic state to initialize the dynamic simulation.
8
-
# 5. **Multiscale Coupling**: Running a forward simulation coupled to the 0D circulation model.
8
+
# 5. **Multiscale Coupling**: Running a forward simulation coupled to the 0D circulation model, which is similar to what is implemented in the [time dependent BiV problem](time_dependent_land_circ_biv.py)
9
9
# 6. **Post-processing**: Computing Fiber Stress and Fiber Strain.
10
10
#
11
11
# ---
@@ -62,7 +62,7 @@ def filter(self, record):
62
62
return1ifself.comm.rank==0else0
63
63
64
64
65
-
outdir=Path("results_biv_complete_cycle")
65
+
outdir=Path("results_biv_complete_cycle2")
66
66
outdir.mkdir(parents=True, exist_ok=True)
67
67
geodir=outdir/"geometry"
68
68
@@ -83,18 +83,6 @@ def run_0D(outdir):
83
83
logger.info("Running 0D circulation model to steady state...")
0 commit comments