Modifying Model Finite Element Attributes

You can use the 3DEXPERIENCE modeling and scenario apps to modify any of the finite element attributes that are available in the user interface.

This page discusses:

Attributes that should not be or are not modifiable through the GUI are defined in (and modifications must be made through) included accessory files. The accessory files include Python scripts (.py), input files (.inp), an Abaqus environment file (.env), and xml text files (.xml). Python scripts are used to perform keyword editing, to automatically run procedures (for example, the ventricular fiber orientation) that are not supported by 3DEXPERIENCE, and automatic postprocessing of results (for example, ECG generation). Input files contain predefined material definitions for the electrical and mechanical analyses. The xml file describes the logic for keyword editing. The sections that follow describe the procedures and or mechanisms to define model attributes through the accessory files. Some of these attributes might be hard wired (for example, groups), so you should not modify them because the Model execution might not run to completion. There are other attributes that might be visible (and modifiable) in the user interface but are also hard wired and should not be changed for the same reasons. Nonmodifiable attributes are identified within this Tips for Modifying the Heart Model section.

Keyword Editing

A Python script (inputFileModify.pyc) is used to make keyword edits to the default Model. This script uses instructions contained in 3 .xml files to modify the input file:

  • LH_Electrical_Case_INP_Modification.xml for electrical propagation analysis (included in the default Model)
  • LH_Mechanical_Case_INP_Modification_step1.xml for mechanical analysis to compute prestress (created on running the mechanical analysis)
  • LH_Mechanical_Case_INP_Modification_step2.xml for mechanical analysis for cardiac cycle (created on running the mechanical analysis)

Keyword editing is used for the following definitions:

  • Electrical analysis material properties
  • Mechanical analysis material properties for computing the prestress
  • Mechanical analysis material properties for the heart beat cycle
  • Distribution of fiber orientation in the ventricles
  • User-defined amplitude for AV delay
  • User-defined amplitudes for leaflet pressure
  • Updated coordinates of chordae insertion location
  • Mechanical analysis boundary conditions for the application of prestress
  • Pericardium

Modification to keyword editing through the .xml files is required when introducing any additional unsupported (through the user interface) features into the Model. The following two Python scripts are provided to facilitate editing of .xml files for the mechanical analysis:

  • Code03_Write_Mechanical_Preload_XML.py
  • Code04_Write_Mechanical_XML.py

Modifying Material Property Parameter Values

Table 1 shows the accessory files used to assign material properties to each region of the Model. To change the material definition of any region, you must update the corresponding material accessory file. As indicated in the table, unique mechanical material accessory files are used for preload analysis (file names with “mech-umat” prefixes) and the heart beat cycles (file names with “mech-mat” prefixes).

Table 1. Accessory Files Corresponding to Each Region of the Heart
Region Electrical Material Accessory Files
Ventricles elec-mat-V.inp
LA elec-mat-LA.inp
RA elec-mat-RA.inp
Purkinje elec-mat-PURKINJE.inp
Region Mechanical Material Accessory Files
Ventricles at MV and TV annuli and outflow tracks mech-u/mat-PASSIVE.inp
Remainder of LV mech-u/mat-LV_ACTIVE.inp
Remainder of RV mech-u/mat-RV_ACTIVE.inp
LA at pulmonary vein, posterior wall, appendage, and mitral valve annulus region mech-u/mat-LA_ARTERY.inp
Remainder of LA mech-u/mat-LA_ACTIVE.inp
RA at coronary veins, IVC and SVC regions mech-u/mat-RA_ARTERY.inp
Remainder of RA mech-u/mat-RA_ACTIVE.inp
Vasculatures (AA, PT, SVC) mech-u/mat-ARTERY.inp

Do not change the assigned material names or section definitions used in the material property definitions. Changing their names can cause the Model to fail when you run it.

Fiber Orientation Assignments for Ventricles

The fiber orientation definition procedure used for the ventricles is described in Ventricle Fiber Orientation. The definition uses groups used for fiber orientation assignment for ventricle parts as shown in Table 2 that should not be modified or deleted.

Fiber orientations in the ventricles are generated in 3 steps:

  1. A Python script (Code05_Create_HeatTransfer.py) reads these groups from the input file and uses them to set up three heat transfer analyses. These analyses establish a temperature gradient in 1) the radial direction between interior and exterior nodes, 2) the axial direction between apex and basal nodes, and 3) the axial direction between the tip and base of the papillary muscles.
  2. Another Python script (Code06_postODB_HeatTransfer.py) then reads the results of the previous analyses, and outputs the heat flux that represents local transmural, apicobasal, and along papillary directions.
  3. A third Python script (Code07_Write_Ventricle_Fiber_Distribution.py) reads the local vector of heat flux and computes and outputs the longitudinal and transverse directions of the myocardium within the ventricles. You can specify a different fiber angle using the “fiber_angle” variable in this script (default = 60 degrees).
Table 2. Element, node, and surface names used to define fiber orientations in the ventricles
Type Name
Element

Ventricles_ELEM_ALL

Ventricles_Upper_Passive

MPMA

MPMP1

MPMP2

TAPM

TCPM

TPPM

TSPM

LV

MV_Annulus

RV

TV_Annulus

Surface

Apex

TIE_LA_LV

TIE_RA_RV

TIE_AA_LV

TIE_PT_RV

Ventricles_Exterior

Ventricles_LV_Interior_Face

Ventricles_RV_Interior_Face

Node

MPMA_Tip_Nodes

MPMA_Transition2_Nodes

MPMP1_Tip_Nodes

MPMP1_Transition2_Nodes

MPMP2_Tip_Nodes

MPMP2_Transition2_Nodes

TAPM_Tip_Nodes

TAPM_Transition2_Nodes

TCPM_Tip_Nodes

TCPM_Transition2_Nodes

TPPM_Tip_Nodes

TPPM_Transition2_Nodes

TSPM_Tip_Nodes

TSPM_Transition2_Nodes

ANT POINT

POST POINT

LV POINT

RV POINT

Extremum_Epi

Extremum_Endo

Extremum_Endo_RV

CAV_CAP_V_MV_NODES

CAV_CAP_V_TV_NODES

Element and Node Numbering

Node and element numbering for each meshed part must fall within a predetermined range. Upon any refinement of the mesh, those bounds might need to be expanded. For example, the ventricle part (Ventricles_Mechanical_FEMrep) nodes and elements range is 1 to 400,000. To edit the upper bound of this range, both the Numbering Manager AND the value for the maxNodeElem in the python scripts (this is, Code05_Create_HeatTransfer.py, Code07_Write_Ventricle_Fiber_Distribution.py, Code11_Write_Pericardium_Connectors.py, Code22_Write_Strain.py) must be updated, as shown in Figure 1. These scripts are located in the simulation template file Accessory folder “LH Include Abaqus Input Files Doc” and are accessed by means of Process Composer.

Figure 1. Model Element and Node Numbering in Simulation Template File Accessory Folder

Pericardium Definition

The stiffness of the pericardium K ( Z ) is characterized by a maximum stiffness value, K c :

K ( Z ) = K c ⋅ S ( Z ) ,

where S ( Z ) is a sigmoid function of the apicobasal location (Z):

S ( Z ) = M M + e M − Z W .

The apicobasal location ranges from 0 at the apex to 1 at the base, as shown in Figure 2, with stiffness being highest at the apex and gradually decreasing to zero toward the base. The parameter M determines the horizontal shift of the curve; a smaller M value shifts the curve to the left, a larger M value shifts the curve to the right. The parameter W affects the steepness of the curve's transition, or the width of the drop; a larger W value results in a slower and more gradual transition.

Figure 2. Pericardium stiffness definition. (A) Sigmoidal curve used to assign stiffness. (B) Apicobasal location (Z) corresponding to the heart

A Python script (Code11_Write_Pericardium_Connectors.py) reads the local transmural vector and apicobasal location for each node on the exterior face of the ventricles, and establishes an axial connector that is oriented radially with stiffness based on this function.

Chordae Insertion Locations

The ties between the leaflets and chordae are modeled in Abaqus using the “Node-to-Surface” approach, as shown in Figure 3. This approach establishes tie constraints by determining which nodes on the leaflet surface (denoted as “primary nodes” on the element-based surface shown in red dots) are closest to each secondary node (chordae insertion node – denoted as a “secondary node” – on the truss element shown in blue cross). The position of the secondary node is then modified to distribute the load as evenly as possible over the leaflet and minimize local element distortion. As shown in the figure, when the chordae insertion node is located at the center of an element face (Center), less element distortion results compared to when it is offset from the center toward one of the associated leaflet surface nodes (Small offset), or one that is coincident with a node on the element face (Coincident).

Figure 3. Variations of constraints between leaflets and chordae.

Groups are used to update the chordae insertion coordinates and should not be modified or deleted. A python script (Code12_Update_Chordae_Insertion_Coords.py) reads these groups and outputs an include file with the updated chordae insertion coordinates.

Table 3. Mesh type and corresponding name.
Type Name
Element

LV-Mechanical_Mesh_V

RV-Mechanical_Mesh_V

Node

Chordae Points

TV Chordae Points

Surface

MV_Pressure_Surf

TV_Pressure

Element Type Restrictions

Only second order tetrahedral elements (C3D10) are supported for meshing the ventricles, atria and vasculature (AA, PT, SVC). Changing the element type (bricks, first order tetrahedral elements) in the GUI is not blocked, but doing so will create a fiber orientation assignment error.

Only incompatible mode eight-node brick elements (C3D8I) or a combination of C3D8I and triangular prism elements (C3D6) are supported for meshing the valve leaflets. Similarly, changing these element types (for example, to C3D4 or C3D10) in the user interface is not blocked, but doing so results in an error when updating the chordae insertion coordinates.

Output Requests

The following output requests are included in the model and are used to run the analyses. As such they should not be modified or simulations might fail and postprocessing scripts will not run properly:

  • Nodal field output NT11, element field outputs COORD, EVOL, HFL are used for ECG computation.
  • Monitor for history output of fluid cavity pressure (that is, PCAV-AC, PCAV-LV, PCAV-RV, PCAV-LA, PCAV-RA, PCAV-PC, PCAV-AC) are used for computing leaflet pressure.
  • History output of fluid cavity (that is, H_Output_*, * for each fluid cavity) related output including PCAV, CVOL and CMFL are used for postprocessing for pressure, volume and flow outputs.
  • Field output SDV in PRE_LOAD step is used for prestress computation.
  • Field output COORD is used for extracting coordinates to strain computation.
  • History output COORD at MV and TV annuli and PM are used for sub model of MV and TV.

Adding or Removing Heart Beat Cycles

By default, two heart beat cycles are performed for the model. Adding cycles might be desirable after deploying a device to eliminate any transient effects. Removing the second cycle might be desirable when seeking to reduce runtime.

  • To add more cardiac cycles, a new time step named BEAT# must be defined. All model definitions can be propagated to this new step, but Temp_BEAT1_01 must be modified to specify the beginning and ending steps as BEAT, with the beginning increment as 1 and the end increment as last.
  • To remove cardiac cycle 2, delete the BEAT2 step.
  • When adding or removing, the XML file for keyword editing also needs to be modified by adding or removing keyword editing related to the inclusion of a file defining the pericardium boundary condition in the modified step.

Performing a Mechanical Analysis Only

If the temporal and spatial solution of the electrical response in the heart is NOT required as an input to the mechanical model for your particular study, the Model can be simplified and efficiency gains realized by instead activating the mechanical contraction through the temporal (but nonspatially) varying electrical impulse instead. With this approach, differences testing has shown that the pressure and volume responses is expected to be less than 6% for atrial and ventricular chambers because of these simplifications.

To bypass the entire electrical analysis, all steps related to computing fiber orientations, both electrical analyses, and the post-processing steps related to extracting activation and ECG can be deactivated. In addition, instead of using the LH_Electrical_Analysis.odb as the temperature field for the activation, a time-varying but spatially uniform electrical excitation for the atria and ventricles with an AV delay (Figure 4) can be applied.

Figure 4. AV_Node and SA_Node amplitudes