SystemModelPost#

class ansys.health.heart.post.system_model_post.SystemModelPost(dir: str)#

Postprocessing system model.

Notes

The units are ms, kPa, and mL.

Overview#

get_ejection_fraction

Compute ejection fraction on a given time interval.

plot_pv_loop

Plot PV loop.

Import detail#

from ansys.health.heart.post.system_model_post import SystemModelPost

Attribute detail#

SystemModelPost.dir#
SystemModelPost.model_type = 'LV'#
SystemModelPost.lv_system#

Method detail#

SystemModelPost.get_ejection_fraction(t_start: float = 0, t_end: float = 100000000000.0) float#

Compute ejection fraction on a given time interval.

Parameters:
t_startfloat, default: 0

Start time.

t_endfloat, default: 10e10

End time.

Returns:
float

Ejection fraction.

SystemModelPost.plot_pv_loop(t_start: float = 0, t_end: float = 100000000000.0, show_ed: bool = True, ef: list[float, float] = [None, None]) matplotlib.pyplot.Figure#

Plot PV loop.

Parameters:
t_startfloat, default: 0

Start time to plot.

t_endfloat, default: 10e10

End time to plot.

show_edbool, default: True

Whether to show the end of the diastole state in zeropressure.

eflist[float, float], default: [None, None]

Ejection fraction to show in the legend.

Returns:
plt.Figure

Figure handle.