openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
#include <iostream>
#include <fstream>
#include <cstring>
#include <string>
#include <cmath>
#include <stdlib.h>
#include <limits>
#include <algorithm>
#include "vect.h"
#include "mesher_p.h"
#include "mesher_d.h"
Go to the source code of this file.
Classes | |
class | TisAxes |
class | Region |
class | BlockRegion |
class | SphericalRegion |
class | CylindricalRegion |
class | Element |
class | Tetrahedron |
class | Hexahedron |
class | Quadrilateral |
class | Triangle |
class | Line |
class | tmProfile |
class | BBoxDef |
class | BoundingBox |
class | fibDef |
class | Grid |
class | Grid2D |
class | Grid3D |
class | Grid1D |
Macros | |
#define | BOX_CENTERS_GRID false |
#define | NODE_GRID true |
Enumerations | |
enum | region_t { Myocardium =1, Isobath, Anisobath } |
Functions | |
Point | p_assign_array (float *p) |
std::ostream & | operator<< (std::ostream &out, Element &e) |
std::ostream & | operator<< (std::ostream &out, Point p) |
int | main (int argc, char *argv[]) |
Variables | |
const Point | e_circ = {1,0,0} |
const Point | e_long = {0,1,0} |
const Point | e_rad = {0,1,0} |
const float | CM2UM =1.e4 |
This is a program to generate regular meshes. The dimensions of the block are given by size and the bath dimensions are added to it. The block is centered on XY and extend in Z from 0. If the Z component of the bath is negative, bath is also added below Z=0. Regions can be defined with the block which are tagged in the output tetrahedron file. Region defintions are searched in order, so the first one (or last if specified) when regions overlap, the first or last one is used depending on the search flag. Each region may be specifed as a
the origin and extends in the direction of the axis
Note that in the final model produced, region 0 is bath, region 1 is default myocardium, and if the user has not specified a tag for the region, the region number of specified region R is R+2, i.e., elements defined in regdef[1] will have the tag 3 in the elem file unless explicitly set.
Definition in file mesher.cc.
std::ostream& operator<< | ( | std::ostream & | out, |
Element & | e | ||
) |
Point p_assign_array | ( | float * | p | ) |