openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Member Functions | Protected Attributes | List of all members
Grid Class Referenceabstract
Inheritance diagram for Grid:
Collaboration diagram for Grid:

Public Member Functions

 Grid (char *, Region **, int)
 
virtual ~Grid ()
 
void unPrMFiberDefs (void)
 
virtual void build_mesh (float *, float *, float *, bool *, float *, float, bool, int)=0
 
virtual void output_boundary (char *)=0
 
void add_element (Element &, region_t)
 
void set_indx_bounds (bool *sym)
 
bool chk_bath (int i, int j, int k)
 
bool os_good ()
 

Protected Attributes

Pointpt
 
int npt
 
BoundingBox b_bbx
 
BoundingBox t_bbx
 
std::ofstream pt_os
 
std::ofstream elem_os
 
std::ofstream lon_os
 
std::ofstream elemc_os
 
std::ofstream vec_os
 
Region ** region
 
int num_axes
 
fibDef f_def
 
tmProfile f_xi
 
tmProfile s_xi
 
int dim
 

Detailed Description

Definition at line 490 of file mesher.cc.

Constructor & Destructor Documentation

◆ Grid()

Grid::Grid ( char *  msh,
Region **  r,
int  d 
)

Definition at line 549 of file mesher.cc.

◆ ~Grid()

virtual Grid::~Grid ( )
inlinevirtual

Definition at line 493 of file mesher.cc.

Member Function Documentation

◆ add_element()

void Grid::add_element ( Element elem,
region_t  regtype 
)

output a tetrahedron and its fibre axis

Parameters
elemthe element
regtypetype of element

Definition at line 634 of file mesher.cc.

Here is the caller graph for this function:

◆ build_mesh()

virtual void Grid::build_mesh ( float *  ,
float *  ,
float *  ,
bool *  ,
float *  ,
float  ,
bool  ,
int   
)
pure virtual

Implemented in Grid1D, Grid3D, and Grid2D.

Here is the caller graph for this function:

◆ chk_bath()

bool Grid::chk_bath ( int  i,
int  j,
int  k 
)

check whether an element is bath or not

Parameters
ibox index along x direction
jbox index along y direction
kbox index along z direction
Returns
true if bath, false otherwise

Definition at line 603 of file mesher.cc.

Here is the caller graph for this function:

◆ os_good()

bool Grid::os_good ( )

Definition at line 543 of file mesher.cc.

Here is the caller graph for this function:

◆ output_boundary()

virtual void Grid::output_boundary ( char *  )
pure virtual

Implemented in Grid1D, Grid3D, and Grid2D.

◆ set_indx_bounds()

void Grid::set_indx_bounds ( bool *  sym)

set box index bounds for tissue

Parameters
symbath symmetry information along x, y and z
Postcondition
index bounds are set in the tissue bounding box structure

Definition at line 581 of file mesher.cc.

Here is the caller graph for this function:

◆ unPrMFiberDefs()

void Grid::unPrMFiberDefs ( void  )

Definition at line 617 of file mesher.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ b_bbx

BoundingBox Grid::b_bbx
protected

Definition at line 504 of file mesher.cc.

◆ dim

int Grid::dim
protected

Definition at line 512 of file mesher.cc.

◆ elem_os

std::ofstream Grid::elem_os
protected

Definition at line 506 of file mesher.cc.

◆ elemc_os

std::ofstream Grid::elemc_os
protected

Definition at line 506 of file mesher.cc.

◆ f_def

fibDef Grid::f_def
protected

Definition at line 509 of file mesher.cc.

◆ f_xi

tmProfile Grid::f_xi
protected

Definition at line 510 of file mesher.cc.

◆ lon_os

std::ofstream Grid::lon_os
protected

Definition at line 506 of file mesher.cc.

◆ npt

int Grid::npt
protected

Definition at line 503 of file mesher.cc.

◆ num_axes

int Grid::num_axes
protected

Definition at line 508 of file mesher.cc.

◆ pt

Point* Grid::pt
protected

Definition at line 502 of file mesher.cc.

◆ pt_os

std::ofstream Grid::pt_os
protected

Definition at line 506 of file mesher.cc.

◆ region

Region** Grid::region
protected

Definition at line 507 of file mesher.cc.

◆ s_xi

tmProfile Grid::s_xi
protected

Definition at line 511 of file mesher.cc.

◆ t_bbx

BoundingBox Grid::t_bbx
protected

Definition at line 505 of file mesher.cc.

◆ vec_os

std::ofstream Grid::vec_os
protected

Definition at line 506 of file mesher.cc.


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