Part#

class ansys.health.heart.parts.Part(name: str = None, part_type: _PartType = _PartType.UNDEFINED)#

Base part class.

Overview#

get_point

Get a point from the part.

get_element_ids

Get element IDs that make up the part.

surfaces

List of surfaces belonging to the part.

surface_names

List of surface names belonging to the part.

element_ids

Get element IDs that make up the part.

name

Part name.

pid

Part ID.

mid

Material ID associated with the part.

points

Points of interest belonging to the part.

fiber

Flag indicating if the part has fiber/sheet data.

active

Flag indicating if active stress is established.

meca_material

Material model to assign in the simulator.

ep_material

EP material model to assign in the simulator.

__str__

Return a string representation of the part.

Import detail#

from ansys.health.heart.parts import Part

Property detail#

property Part.surfaces: list[ansys.health.heart.objects.SurfaceMesh]#

List of surfaces belonging to the part.

property Part.surface_names: list[str]#

List of surface names belonging to the part.

property Part.element_ids: numpy.ndarray#

Get element IDs that make up the part.

Attribute detail#

Part.name: str = None#

Part name.

Part.pid: int | None = None#

Part ID.

Part.mid: int | None = None#

Material ID associated with the part.

Part.points: list[ansys.health.heart.objects.Point] = []#

Points of interest belonging to the part.

Part.fiber: bool = False#

Flag indicating if the part has fiber/sheet data.

Part.active: bool = False#

Flag indicating if active stress is established.

Part.meca_material: ansys.health.heart.settings.material.material.MechanicalMaterialModel#

Material model to assign in the simulator.

Part.ep_material: ansys.health.heart.settings.material.ep_material.EPMaterial#

EP material model to assign in the simulator.

Method detail#

Part.get_point(pointname: str) ansys.health.heart.objects.Point | None#

Get a point from the part.

Part.get_element_ids(mesh: ansys.health.heart.objects.Mesh = None) numpy.ndarray#

Get element IDs that make up the part.

Parameters:
meshMesh, default: None

The mesh object where to get the element IDs from.

Returns:
np.ndarray

Array of element IDs that make up the part.

Part.__str__() str#

Return a string representation of the part.