carputils
Doxygen code documentation for the python framework controlling openCARP
Public Member Functions | Properties | List of all members
carputils.mesh.fourch.FourChamber Class Reference
Inheritance diagram for carputils.mesh.fourch.FourChamber:
carputils.mesh.general.Mesh3D carputils.mesh.general.Mesh

Public Member Functions

def __init__ (self, r_lv, r_rv, thickness_lv, thickness_rv, r_la, r_ra, thickness_la, thickness_ra, height_biv, height_la, height_ra, separation=1.0, gap=None, div_freewall_lv=30, div_freewall_rv=25, div_septum=15, div_trans_lv=3, div_trans_rv=2, div_trans_la=1, div_trans_ra=1, div_circum_la=None, div_circum_ra=None, div_height_biv=2, div_height_la=1, div_height_ra=1, args, kwargs)
 
def generate_carp_rigid_dbc (self, basename)
 
def generate_vtk (self, filename, pointdata={}, celldata={})
 Generate VTK file of mesh. More...
 
- Public Member Functions inherited from carputils.mesh.general.Mesh3D
def __init__ (self, fibre_rule=lambda t:0.0, fibre_rule_2=None, tetrahedrise=True)
 
def elements (self)
 Generate and return array of element point indices. More...
 
def faces (self, selection, return_elem=False)
 Generate an array of faces on the specified surface. More...
 
def n_face (self, surface)
 Return the number of faces in a given surface. More...
 
def face_centres (self, selection)
 Calculate the centroids of faces on the specified surface. More...
 
def face_normals (self, selection, unit=True)
 Calculate the normals to faces on the specified surface. More...
 
def face_areas (self, selection)
 Calculate the areas of faces on the specified surface. More...
 
def generate_cyl_coords (self, filename)
 Generate cylindrical coordinate field for the mesh. More...
 
def generate_carp (self, meshname, faces=[])
 Generate the mesh and store it to disk in openCARP format. More...
 
def generate_carp_rigid_dbc (self, basename)
 Generate files for DBC definiton preventing free motion. More...
 
def generate_vtk_face (self, filename, selection)
 Generate VTK file of selected face. More...
 
- Public Member Functions inherited from carputils.mesh.general.Mesh
def __init__ (self)
 
def add_region (self, tag, func)
 Add a new tag region. More...
 
def points (self)
 Generate and return numpy array of point coordinates. More...
 
def n_pts (self)
 Return the number of points/nodes in the mesh. More...
 
def elements (self)
 Generate and return list of numpy arrays of element node indices. More...
 
def n_elem (self)
 Count and return the total number of elements in the mesh. More...
 
def element_centres (self)
 Calculate the centroids of the mesh elements. More...
 
def element_tags (self)
 Determine element tags based on rules passed to :meth:add_region. More...
 
def fibres (self)
 Generate numpy array of fibre vectors and return. More...
 
def generate_carp (self, meshname)
 Generate the mesh and store it to disk in openCARP format. More...
 
def generate_vtk (self, filename)
 Generate VTK file of mesh. More...
 

Properties

 biv_bounding_box = property
 
 la_bounding_box = property
 
 ra_bounding_box = property
 

Constructor & Destructor Documentation

◆ __init__()

def carputils.mesh.fourch.FourChamber.__init__ (   self,
  r_lv,
  r_rv,
  thickness_lv,
  thickness_rv,
  r_la,
  r_ra,
  thickness_la,
  thickness_ra,
  height_biv,
  height_la,
  height_ra,
  separation = 1.0,
  gap = None,
  div_freewall_lv = 30,
  div_freewall_rv = 25,
  div_septum = 15,
  div_trans_lv = 3,
  div_trans_rv = 2,
  div_trans_la = 1,
  div_trans_ra = 1,
  div_circum_la = None,
  div_circum_ra = None,
  div_height_biv = 2,
  div_height_la = 1,
  div_height_ra = 1,
  args,
  kwargs 
)

Member Function Documentation

◆ generate_carp_rigid_dbc()

def carputils.mesh.fourch.FourChamber.generate_carp_rigid_dbc (   self,
  basename 
)

◆ generate_vtk()

def carputils.mesh.fourch.FourChamber.generate_vtk (   self,
  filename,
  pointdata = {},
  celldata = {} 
)

Generate VTK file of mesh.

Parameters

filename str Filename to write out to

Property Documentation

◆ biv_bounding_box

carputils.mesh.fourch.FourChamber.biv_bounding_box = property
static

◆ la_bounding_box

carputils.mesh.fourch.FourChamber.la_bounding_box = property
static

◆ ra_bounding_box

carputils.mesh.fourch.FourChamber.ra_bounding_box = property
static

The documentation for this class was generated from the following file: