MechanicsSimulator#
- class ansys.health.heart.simulator.MechanicsSimulator(model: ansys.health.heart.models.FullHeart | ansys.health.heart.models.FourChamber | ansys.health.heart.models.BiVentricle | ansys.health.heart.models.LeftVentricle, dyna_settings: ansys.health.heart.settings.settings.DynaSettings, simulation_directory: pathlib = '', initial_stress: bool = True)#
Bases:
BaseSimulatorMechanics simulator with imposed active stress.
Overview#
Launch the main mechanical simulation. |
|
Compute the stress-free configuration of the model. |
If stress-free computation is taken into consideration. |
Import detail#
from ansys.health.heart.simulator import MechanicsSimulator
Attribute detail#
- MechanicsSimulator.initial_stress = True#
If stress-free computation is taken into consideration.
Method detail#
- MechanicsSimulator.simulate(folder_name: str = 'main-mechanics', zerop_folder: str | None = None, auto_post: bool = True, extra_k_files: list[str] | None = None)#
Launch the main mechanical simulation.
- Parameters:
- folder_name
str, default:'main-mechanics' Simulation folder name.
- zerop_folder
str|None, default:None Folder containing stress-free simulation. If
None, thezeropressurefolder under the root directory is used.- auto_postbool, default:
True Whether to run postprocessing scripts.
- extra_k_files
list[str], default:None User-defined k files.
- folder_name