ConductionPath
#
- class ansys.health.heart.pre.conduction_path.ConductionPath(name: ConductionPathType, mesh: ansys.health.heart.objects.Mesh, id: int, is_connected: numpy.ndarray, relying_surface: pyvista.PolyData, material: ansys.health.heart.settings.material.ep_material.EPMaterial = EPMaterial.DummyMaterial(), up_path: ConductionPath | None = None, down_path: ConductionPath | None = None)#
Conduction path class.
Overview#
Plot the conduction path with underlying surface. |
Create a conduction path on a base mesh through a set of keypoints. |
|
Build conduction path from LS-DYNA k-file. |
Import detail#
from ansys.health.heart.pre.conduction_path import ConductionPath
Property detail#
- property ConductionPath.up_path: ConductionPath | None#
Get upstream conduction path.
- property ConductionPath.down_path: ConductionPath | None#
Get downstream conduction path.
- property ConductionPath.length#
Length of the conduction path.
Attribute detail#
- ConductionPath.name#
- ConductionPath.mesh#
- ConductionPath.id#
- ConductionPath.is_connected#
- ConductionPath.relying_surface#
- ConductionPath.ep_material#
Method detail#
- ConductionPath.plot()#
Plot the conduction path with underlying surface.
- static ConductionPath.create_from_keypoints(name: ConductionPathType, keypoints: list[numpy.ndarray], id: int, base_mesh: pyvista.PolyData | pyvista.UnstructuredGrid, connection: Literal['none', 'first', 'last', 'all'] = 'none', line_length: float | None = 1.5) ConductionPath #
Create a conduction path on a base mesh through a set of keypoints.
- Parameters:
- name
ConductionPathType
Name of the conduction path.
- keypoints
list
[np.ndarray
] Keypoints used to construct the path on the base mesh.
- id
int
ID of the conduction path.
- base_mesh
pv.PolyData
|pv.UnstructuredGrid
Base mesh where the conductionn path is created. If
PolyData
, then the result is a geodesic path on the surface. Ifpv.UnstructuredGrid
, then the result the shortest path in the solid.- connection
Literal
["none", "first", "last", "all"] - , default: “none”
Describes how the path is connected to the solid mesh.
- line_length
float
|None
, default: 1.5 Length of line element in case of refinement.
- name
- Returns:
ConductionPath
Conduction path.
- static ConductionPath.create_from_k_file(name: ConductionPathType, k_file: str, id: int, base_mesh: pyvista.PolyData, model, merge_apex: bool = True) ConductionPath #
Build conduction path from LS-DYNA k-file.
- Parameters:
- Returns:
ConductionPath
Conduction path.