MechanicsDynaWriter
#
- class ansys.health.heart.writer.mechanics_writer.MechanicsDynaWriter(model: ansys.health.heart.models.HeartModel, settings: ansys.health.heart.settings.settings.SimulationSettings | None = None)#
Bases:
ansys.health.heart.writer.base_writer.BaseDynaWriter
Class for preparing the input for a mechanics LS-DYNA simulation.
Overview#
Update the keyword database. |
|
Create Robin boundary condition on a given surface. |
Collection of keyword decks relevant for mechanics. |
|
Flag indicating if the flow area is set for control volume. |
Import detail#
from ansys.health.heart.writer.mechanics_writer import MechanicsDynaWriter
Attribute detail#
- MechanicsDynaWriter.kw_database#
Collection of keyword decks relevant for mechanics.
Method detail#
- MechanicsDynaWriter.update(dynain_name: str | None = None, robin_bcs: list[Callable] = None) None #
Update the keyword database.
- Parameters:
Notes
You do not need to write mesh files if a Dynain file is given.
- MechanicsDynaWriter.write_robin_bc(robin_type: Literal['spring', 'damper'], constant: float, surface: pyvista.PolyData, normal: numpy.ndarray | None = None) list #
Create Robin boundary condition on a given surface.
- Parameters:
- robin_type
Literal
[“spring”, “damper”] Create spring or damper.
- constant
float
Stiffness (MPa/mm) or viscosity (MPa/mm*ms).
- surface
pv.PolyData
Surface to apply boundary condition to. It must contain point data
_global-point-ids
. It is scaled by the nodal area and point data scale factor if it exists.- normal
np.ndarray
, default:None
Normal values. If no normal values are given, nodal normals are used.
- robin_type
- Returns:
list
List of the DYNA input deck.