proteus  1.8.1
C/C++/Fortran libraries
Classes | Functions
mesh

A library of mesh generation and manipulation functions. More...

Classes

struct  Mesh
 
struct  MultilevelMesh
 
class  NodeTuple< nNodes >
 
class  Node
 
class  ElementNeighbors
 

Functions

void initializeMesh (Mesh &mesh)
 
void deleteMesh (Mesh &mesh)
 
void initializeMultilevelMesh (MultilevelMesh &multilevelMesh)
 
void deleteMultilevelMesh (MultilevelMesh &multilevelMesh)
 
int edgeMeshElements (const int &nx, Mesh &mesh)
 
int regularEdgeMeshNodes (const int &nx, const double &Lx, Mesh &mesh)
 
int globallyRefineEdgeMesh (const int &nLevels, Mesh &mesh, MultilevelMesh &multilevelMesh, bool averageNewNodeFlags=false)
 
int locallyRefineEdgeMesh (MultilevelMesh &multilevelMesh, int *elementTagArray)
 
int locallyRefineTriangleMesh (MultilevelMesh &multilevelMesh, int *elementTagArray)
 
int locallyRefineTriangleMesh_4T (MultilevelMesh &multilevelMesh, int *elementTagArray)
 
int locallyRefineTriangleMesh_redGreen (MultilevelMesh &multilevelMesh, int *elementTagArray)
 
int setNewestNodeBasesToLongestEdge (MultilevelMesh &multilevelMesh)
 
int regularRectangularToTriangularMeshElements (const int &nx, const int &ny, Mesh &mesh, int triangleFlag)
 
int regularRectangularToTriangularMeshNodes (const int &nx, const int &ny, const double &Lx, const double &Ly, Mesh &mesh)
 
int regularRectangularToTriangularElementBoundaryMaterials (const double &Lx, const double &Ly, Mesh &mesh)
 
int globallyRefineTriangularMesh (const int &nLevels, Mesh &mesh, MultilevelMesh &multilevelMesh, bool averageNewNodeFlags=false)
 
int regularQuadrilateralMeshElements (const int &nx, const int &ny, Mesh &mesh)
 
int regularQuadrilateralMeshElementBoundaryMaterials (const double &Lx, const double &Ly, Mesh &mesh)
 
int globallyRefineQuadrilateralMesh (const int &nLevels, Mesh &mesh, MultilevelMesh &multilevelMesh, bool averageNewNodeFlags=false)
 
int regularMeshNodes (const int &nx, const int &ny, const int &nz, const double &Lx, const double &Ly, const double &Lz, Mesh &mesh)
 
int regularMeshNodes2D (const int &nx, const int &ny, const double &Lx, const double &Ly, Mesh &mesh)
 
int regularHexahedralMeshElementBoundaryMaterials (const double &Lx, const double &Ly, const double &Lz, Mesh &mesh)
 
int regularHexahedralToTetrahedralMeshNodes (const int &nx, const int &ny, const int &nz, const double &Lx, const double &Ly, const double &Lz, Mesh &mesh)
 
int regularHexahedralToTetrahedralMeshElements (const int &nx, const int &ny, const int &nz, Mesh &mesh)
 
int regularHexahedralToTetrahedralElementBoundaryMaterials (const double &Lx, const double &Ly, const double &Lz, Mesh &mesh)
 
int regularHexahedralMeshElements (const int &nx, const int &ny, const int &nz, const int &px, const int &py, const int &pz, Mesh &mesh)
 
int reorientTetrahedralMesh (Mesh &mesh)
 
int regularNURBSMeshElements (const int &nx, const int &ny, const int &nz, const int &px, const int &py, const int &pz, Mesh &mesh)
 
int globallyRefineHexahedralMesh (const int &nLevels, Mesh &mesh, MultilevelMesh &multilevelMesh, bool averageNewNodeFlags=false)
 
int globallyRefineTetrahedralMesh (const int &nLevels, Mesh &mesh, MultilevelMesh &multilevelMesh, bool averageNewNodeFlags=false)
 
int constructElementBoundaryElementsArray_edge (Mesh &mesh)
 
int constructElementBoundaryElementsArray_triangle (Mesh &mesh)
 
int constructElementBoundaryElementsArray_quadrilateral (Mesh &mesh)
 
int constructElementBoundaryElementsArray_tetrahedron (Mesh &mesh)
 
int constructElementBoundaryElementsArray_hexahedron (Mesh &mesh)
 
int constructElementBoundaryElementsArray_NURBS (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_edge (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_triangle (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_quadrilateral (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_tetrahedron (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_edge (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_triangle (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_quadrilateral (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_tetrahedron (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_hexahedron (Mesh &mesh)
 
int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_NURBS (Mesh &mesh)
 
int writeElements (std::ostream &meshFile, const Mesh &mesh)
 
int writeNodes (std::ostream &meshFile, const Mesh &mesh)
 
int readElements (std::istream &meshFile, Mesh &mesh)
 
int allocateGeometricInfo_tetrahedron (Mesh &mesh)
 
int allocateGeometricInfo_triangle (Mesh &mesh)
 
int allocateGeometricInfo_edge (Mesh &mesh)
 
int allocateGeometricInfo_quadrilateral (Mesh &mesh)
 
int allocateGeometricInfo_hexahedron (Mesh &mesh)
 
int allocateGeometricInfo_NURBS (Mesh &mesh)
 
int computeGeometricInfo_tetrahedron (Mesh &mesh)
 
int computeGeometricInfo_triangle (Mesh &mesh)
 
int computeGeometricInfo_edge (Mesh &mesh)
 
int computeGeometricInfo_hexahedron (Mesh &mesh)
 
int computeGeometricInfo_quadrilateral (Mesh &mesh)
 
int computeGeometricInfo_NURBS (Mesh &mesh)
 
int assignElementBoundaryMaterialTypesFromParent (Mesh &parentMesh, Mesh &childMesh, const int *levelElementParentsArray, const int &nSpace_global)
 
int allocateNodeAndElementNodeDataStructures (Mesh &mesh, int nElements_global, int nNodes_global, int nNodes_element)
 
int setFromTriangleElements (triangulateio *trimesh, Mesh &mesh, int base)
 
int setFromTriangleNodes (triangulateio *trimesh, Mesh &mesh, int base)
 
int readTriangleMesh (Mesh &mesh, const char *filebase, int base)
 
int readTriangleElementBoundaryMaterialTypes (Mesh &mesh, const char *filebase, int base)
 
int writeTriangleMesh (Mesh &mesh, const char *filebase, int base)
 
int readTetgenMesh (Mesh &mesh, const char *filebase, int base)
 
int readTetgenElementBoundaryMaterialTypes (Mesh &mesh, const char *filebase, int base)
 
int writeTetgenMesh (Mesh &mesh, const char *filebase, int base)
 
int read3DM (Mesh &mesh, const char *filebase, int indexBase)
 
int read2DM (Mesh &mesh, const char *filebase, int indexBase)
 
int readHex (Mesh &mesh, const char *filebase, int indexBase)
 
int readBC (Mesh &mesh, const char *filebase, int indexBase)
 
int write3dmMesh (Mesh &mesh, const char *filebase, int base)
 
int write2dmMesh (Mesh &mesh, const char *filebase, int base)
 
int copyElementBoundaryMaterialTypesFromTriangle (triangulateio *trimesh, Mesh &mesh, int base)
 
template<int nNodes>
bool operator< (const NodeTuple< nNodes > &left, const NodeTuple< nNodes > &right)
 
void midpoint (const double *left, const double *right, Node &midpoint)
 
double edgeLength (const Node &left, const Node &right)
 
double edgeLengthFromNodeNumbers (double *nodeArray, const int &left, const int &right)
 
bool operator< (const Node &left, const Node &right)
 
int newEdge (int eN, int *nodes, int n0, int n1)
 
int newTriangle (int eN, int *nodes, int n0, int n1, int n2)
 
int newTetrahedron (int eN, int *nodes, int n0, int n1, int n2, int n3)
 
int newQuadrilateral (int eN, int *nodes, int n0, int n1, int n2, int n3)
 
int newHexahedron (int eN, int *nodes, int n0, int n1, int n2, int n3, int n4, int n5, int n6, int n7)
 
bool newestNodeBisect (int eN, int &nElements_global, int &nNodes_global, std::vector< double > &nodeArray, std::vector< int > &elementNodesArray, std::vector< int > &elementNeighborsArray, std::vector< std::list< int > > &childrenList, std::vector< int > &elementParentsArray, std::vector< int > &bases, std::vector< bool > &refined)
 
bool add4TnodesForRefinement2d (int eN, int &nNodes_global, std::vector< bool > &refined, std::vector< int > &edgeMidNodesArray, const int *elementNodesArray, const int *elementBoundariesArray, const int *elementNeighborsArray, const double *nodeArray)
 
bool add4TnodesForConformity2d (int eN, int ebN_longest, int ebN_neig, int eN_neig, int &nNodes_global, std::vector< bool > &refined, std::vector< int > &edgeMidNodesArray, const int *elementNodesArray, const int *elementBoundariesArray, const int *elementNeighborsArray, const double *nodeArray)
 
int findLocalLongestEdge2d (int eN, const int *elementNodesArray, const double *nodeArray)
 
bool subdivideTriangle4T (int eN_parent, int &eN_new, int *elementParentsArray, int *elementChildrenOffsets, int *elementChildrenArray, int *elementNodesArray_child, const std::vector< int > &edgeMidNodesArray, const std::vector< bool > &refined, const int *elementNodesArray_parent, const int *elementBoundariesArray_parent, const double *nodeArray_parent)
 

Detailed Description

Function Documentation

◆ add4TnodesForConformity2d()

bool add4TnodesForConformity2d ( int  eN,
int  ebN_longest,
int  ebN_neig,
int  eN_neig,
int &  nNodes_global,
std::vector< bool > &  refined,
std::vector< int > &  edgeMidNodesArray,
const int *  elementNodesArray,
const int *  elementBoundariesArray,
const int *  elementNeighborsArray,
const double *  nodeArray 
)

Definition at line 7336 of file mesh.cpp.

◆ add4TnodesForRefinement2d()

bool add4TnodesForRefinement2d ( int  eN,
int &  nNodes_global,
std::vector< bool > &  refined,
std::vector< int > &  edgeMidNodesArray,
const int *  elementNodesArray,
const int *  elementBoundariesArray,
const int *  elementNeighborsArray,
const double *  nodeArray 
)

Definition at line 7278 of file mesh.cpp.

◆ allocateGeometricInfo_edge()

int allocateGeometricInfo_edge ( Mesh mesh)

Definition at line 3913 of file mesh.cpp.

◆ allocateGeometricInfo_hexahedron()

int allocateGeometricInfo_hexahedron ( Mesh mesh)

Definition at line 3638 of file mesh.cpp.

◆ allocateGeometricInfo_NURBS()

int allocateGeometricInfo_NURBS ( Mesh mesh)

Definition at line 3730 of file mesh.cpp.

◆ allocateGeometricInfo_quadrilateral()

int allocateGeometricInfo_quadrilateral ( Mesh mesh)

Definition at line 3843 of file mesh.cpp.

◆ allocateGeometricInfo_tetrahedron()

int allocateGeometricInfo_tetrahedron ( Mesh mesh)

Definition at line 3524 of file mesh.cpp.

◆ allocateGeometricInfo_triangle()

int allocateGeometricInfo_triangle ( Mesh mesh)

Definition at line 3743 of file mesh.cpp.

◆ allocateNodeAndElementNodeDataStructures()

int allocateNodeAndElementNodeDataStructures ( Mesh mesh,
int  nElements_global,
int  nNodes_global,
int  nNodes_element 
)

Definition at line 3994 of file mesh.cpp.

◆ assignElementBoundaryMaterialTypesFromParent()

int assignElementBoundaryMaterialTypesFromParent ( Mesh parentMesh,
Mesh childMesh,
const int *  levelElementParentsArray,
const int &  nSpace_global 
)

Definition at line 4557 of file mesh.cpp.

◆ computeGeometricInfo_edge()

int computeGeometricInfo_edge ( Mesh mesh)

Definition at line 3925 of file mesh.cpp.

◆ computeGeometricInfo_hexahedron()

int computeGeometricInfo_hexahedron ( Mesh mesh)

Definition at line 3650 of file mesh.cpp.

◆ computeGeometricInfo_NURBS()

int computeGeometricInfo_NURBS ( Mesh mesh)

Definition at line 3736 of file mesh.cpp.

◆ computeGeometricInfo_quadrilateral()

int computeGeometricInfo_quadrilateral ( Mesh mesh)

Definition at line 3853 of file mesh.cpp.

◆ computeGeometricInfo_tetrahedron()

int computeGeometricInfo_tetrahedron ( Mesh mesh)

Definition at line 3536 of file mesh.cpp.

◆ computeGeometricInfo_triangle()

int computeGeometricInfo_triangle ( Mesh mesh)

Definition at line 3755 of file mesh.cpp.

◆ constructElementBoundaryElementsArray_edge()

int constructElementBoundaryElementsArray_edge ( Mesh mesh)

Definition at line 622 of file mesh.cpp.

◆ constructElementBoundaryElementsArray_hexahedron()

int constructElementBoundaryElementsArray_hexahedron ( Mesh mesh)

Definition at line 1306 of file mesh.cpp.

◆ constructElementBoundaryElementsArray_NURBS()

int constructElementBoundaryElementsArray_NURBS ( Mesh mesh)

Definition at line 1514 of file mesh.cpp.

◆ constructElementBoundaryElementsArray_quadrilateral()

int constructElementBoundaryElementsArray_quadrilateral ( Mesh mesh)

Definition at line 949 of file mesh.cpp.

◆ constructElementBoundaryElementsArray_tetrahedron()

int constructElementBoundaryElementsArray_tetrahedron ( Mesh mesh)

Definition at line 1118 of file mesh.cpp.

◆ constructElementBoundaryElementsArray_triangle()

int constructElementBoundaryElementsArray_triangle ( Mesh mesh)

Definition at line 780 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_edge()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_edge ( Mesh mesh)

Definition at line 2630 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_hexahedron()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_hexahedron ( Mesh mesh)

Definition at line 3294 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_NURBS()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_NURBS ( Mesh mesh)

Definition at line 1736 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_quadrilateral()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_quadrilateral ( Mesh mesh)

Definition at line 2960 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_tetrahedron()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_tetrahedron ( Mesh mesh)

Definition at line 3115 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_triangle()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryAndEdgeNumbers_triangle ( Mesh mesh)

Definition at line 2785 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_edge()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_edge ( Mesh mesh)

Definition at line 1942 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_quadrilateral()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_quadrilateral ( Mesh mesh)

Definition at line 2277 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_tetrahedron()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_tetrahedron ( Mesh mesh)

Definition at line 2450 of file mesh.cpp.

◆ constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_triangle()

int constructElementBoundaryElementsArrayWithGivenElementBoundaryNumbers_triangle ( Mesh mesh)

Definition at line 2103 of file mesh.cpp.

◆ copyElementBoundaryMaterialTypesFromTriangle()

int copyElementBoundaryMaterialTypesFromTriangle ( triangulateio *  trimesh,
Mesh mesh,
int  base 
)

Definition at line 4935 of file mesh.cpp.

◆ deleteMesh()

void deleteMesh ( Mesh mesh)
inline

Definition at line 164 of file mesh.h.

◆ deleteMultilevelMesh()

void deleteMultilevelMesh ( MultilevelMesh multilevelMesh)
inline

Definition at line 275 of file mesh.h.

◆ edgeLength()

double edgeLength ( const Node left,
const Node right 
)
inline

Definition at line 460 of file mesh.h.

◆ edgeLengthFromNodeNumbers()

double edgeLengthFromNodeNumbers ( double *  nodeArray,
const int &  left,
const int &  right 
)
inline

Definition at line 467 of file mesh.h.

◆ edgeMeshElements()

int edgeMeshElements ( const int &  nx,
Mesh mesh 
)

Definition at line 59 of file mesh.cpp.

◆ findLocalLongestEdge2d()

int findLocalLongestEdge2d ( int  eN,
const int *  elementNodesArray,
const double *  nodeArray 
)

Definition at line 7407 of file mesh.cpp.

◆ globallyRefineEdgeMesh()

int globallyRefineEdgeMesh ( const int &  nLevels,
Mesh mesh,
MultilevelMesh multilevelMesh,
bool  averageNewNodeFlags = false 
)

Definition at line 4014 of file mesh.cpp.

◆ globallyRefineHexahedralMesh()

int globallyRefineHexahedralMesh ( const int &  nLevels,
Mesh mesh,
MultilevelMesh multilevelMesh,
bool  averageNewNodeFlags = false 
)

Definition at line 4538 of file mesh.cpp.

◆ globallyRefineQuadrilateralMesh()

int globallyRefineQuadrilateralMesh ( const int &  nLevels,
Mesh mesh,
MultilevelMesh multilevelMesh,
bool  averageNewNodeFlags = false 
)

Definition at line 4234 of file mesh.cpp.

◆ globallyRefineTetrahedralMesh()

int globallyRefineTetrahedralMesh ( const int &  nLevels,
Mesh mesh,
MultilevelMesh multilevelMesh,
bool  averageNewNodeFlags = false 
)

Definition at line 4253 of file mesh.cpp.

◆ globallyRefineTriangularMesh()

int globallyRefineTriangularMesh ( const int &  nLevels,
Mesh mesh,
MultilevelMesh multilevelMesh,
bool  averageNewNodeFlags = false 
)

Definition at line 4109 of file mesh.cpp.

◆ initializeMesh()

void initializeMesh ( Mesh mesh)
inline

Definition at line 87 of file mesh.h.

◆ initializeMultilevelMesh()

void initializeMultilevelMesh ( MultilevelMesh multilevelMesh)
inline

Definition at line 266 of file mesh.h.

◆ locallyRefineEdgeMesh()

int locallyRefineEdgeMesh ( MultilevelMesh multilevelMesh,
int *  elementTagArray 
)

Definition at line 5854 of file mesh.cpp.

◆ locallyRefineTriangleMesh()

int locallyRefineTriangleMesh ( MultilevelMesh multilevelMesh,
int *  elementTagArray 
)

Definition at line 6004 of file mesh.cpp.

◆ locallyRefineTriangleMesh_4T()

int locallyRefineTriangleMesh_4T ( MultilevelMesh multilevelMesh,
int *  elementTagArray 
)

Definition at line 6722 of file mesh.cpp.

◆ locallyRefineTriangleMesh_redGreen()

int locallyRefineTriangleMesh_redGreen ( MultilevelMesh multilevelMesh,
int *  elementTagArray 
)

Definition at line 6211 of file mesh.cpp.

◆ midpoint()

void midpoint ( const double *  left,
const double *  right,
Node midpoint 
)
inline

Definition at line 453 of file mesh.h.

◆ newEdge()

int newEdge ( int  eN,
int *  nodes,
int  n0,
int  n1 
)
inline

Definition at line 499 of file mesh.h.

◆ newestNodeBisect()

bool newestNodeBisect ( int  eN,
int &  nElements_global,
int &  nNodes_global,
std::vector< double > &  nodeArray,
std::vector< int > &  elementNodesArray,
std::vector< int > &  elementNeighborsArray,
std::vector< std::list< int > > &  childrenList,
std::vector< int > &  elementParentsArray,
std::vector< int > &  bases,
std::vector< bool > &  refined 
)

Definition at line 6900 of file mesh.cpp.

◆ newHexahedron()

int newHexahedron ( int  eN,
int *  nodes,
int  n0,
int  n1,
int  n2,
int  n3,
int  n4,
int  n5,
int  n6,
int  n7 
)
inline

Definition at line 535 of file mesh.h.

◆ newQuadrilateral()

int newQuadrilateral ( int  eN,
int *  nodes,
int  n0,
int  n1,
int  n2,
int  n3 
)
inline

Definition at line 525 of file mesh.h.

◆ newTetrahedron()

int newTetrahedron ( int  eN,
int *  nodes,
int  n0,
int  n1,
int  n2,
int  n3 
)
inline

Definition at line 515 of file mesh.h.

◆ newTriangle()

int newTriangle ( int  eN,
int *  nodes,
int  n0,
int  n1,
int  n2 
)
inline

Definition at line 506 of file mesh.h.

◆ operator<() [1/2]

bool operator< ( const Node left,
const Node right 
)
inline

Definition at line 474 of file mesh.h.

◆ operator<() [2/2]

template<int nNodes>
bool operator< ( const NodeTuple< nNodes > &  left,
const NodeTuple< nNodes > &  right 
)
inline

Definition at line 433 of file mesh.h.

◆ read2DM()

int read2DM ( Mesh mesh,
const char *  filebase,
int  indexBase 
)

Definition at line 5574 of file mesh.cpp.

◆ read3DM()

int read3DM ( Mesh mesh,
const char *  filebase,
int  indexBase 
)

Definition at line 5490 of file mesh.cpp.

◆ readBC()

int readBC ( Mesh mesh,
const char *  filebase,
int  indexBase 
)

Definition at line 5732 of file mesh.cpp.

◆ readElements()

int readElements ( std::istream &  meshFile,
Mesh mesh 
)

Definition at line 4743 of file mesh.cpp.

◆ readHex()

int readHex ( Mesh mesh,
const char *  filebase,
int  indexBase 
)

Definition at line 5657 of file mesh.cpp.

◆ readTetgenElementBoundaryMaterialTypes()

int readTetgenElementBoundaryMaterialTypes ( Mesh mesh,
const char *  filebase,
int  base 
)

Definition at line 5177 of file mesh.cpp.

◆ readTetgenMesh()

int readTetgenMesh ( Mesh mesh,
const char *  filebase,
int  base 
)

Definition at line 5118 of file mesh.cpp.

◆ readTriangleElementBoundaryMaterialTypes()

int readTriangleElementBoundaryMaterialTypes ( Mesh mesh,
const char *  filebase,
int  base 
)

Definition at line 5060 of file mesh.cpp.

◆ readTriangleMesh()

int readTriangleMesh ( Mesh mesh,
const char *  filebase,
int  base 
)

Definition at line 4970 of file mesh.cpp.

◆ regularEdgeMeshNodes()

int regularEdgeMeshNodes ( const int &  nx,
const double &  Lx,
Mesh mesh 
)

Definition at line 73 of file mesh.cpp.

◆ regularHexahedralMeshElementBoundaryMaterials()

int regularHexahedralMeshElementBoundaryMaterials ( const double &  Lx,
const double &  Ly,
const double &  Lz,
Mesh mesh 
)

Definition at line 312 of file mesh.cpp.

◆ regularHexahedralMeshElements()

int regularHexahedralMeshElements ( const int &  nx,
const int &  ny,
const int &  nz,
const int &  px,
const int &  py,
const int &  pz,
Mesh mesh 
)

Definition at line 470 of file mesh.cpp.

◆ regularHexahedralToTetrahedralElementBoundaryMaterials()

int regularHexahedralToTetrahedralElementBoundaryMaterials ( const double &  Lx,
const double &  Ly,
const double &  Lz,
Mesh mesh 
)

Definition at line 268 of file mesh.cpp.

◆ regularHexahedralToTetrahedralMeshElements()

int regularHexahedralToTetrahedralMeshElements ( const int &  nx,
const int &  ny,
const int &  nz,
Mesh mesh 
)

Definition at line 232 of file mesh.cpp.

◆ regularHexahedralToTetrahedralMeshNodes()

int regularHexahedralToTetrahedralMeshNodes ( const int &  nx,
const int &  ny,
const int &  nz,
const double &  Lx,
const double &  Ly,
const double &  Lz,
Mesh mesh 
)

Definition at line 457 of file mesh.cpp.

◆ regularMeshNodes()

int regularMeshNodes ( const int &  nx,
const int &  ny,
const int &  nz,
const double &  Lx,
const double &  Ly,
const double &  Lz,
Mesh mesh 
)

Definition at line 368 of file mesh.cpp.

◆ regularMeshNodes2D()

int regularMeshNodes2D ( const int &  nx,
const int &  ny,
const double &  Lx,
const double &  Ly,
Mesh mesh 
)

Definition at line 419 of file mesh.cpp.

◆ regularNURBSMeshElements()

int regularNURBSMeshElements ( const int &  nx,
const int &  ny,
const int &  nz,
const int &  px,
const int &  py,
const int &  pz,
Mesh mesh 
)

Definition at line 541 of file mesh.cpp.

◆ regularQuadrilateralMeshElementBoundaryMaterials()

int regularQuadrilateralMeshElementBoundaryMaterials ( const double &  Lx,
const double &  Ly,
Mesh mesh 
)

Definition at line 362 of file mesh.cpp.

◆ regularQuadrilateralMeshElements()

int regularQuadrilateralMeshElements ( const int &  nx,
const int &  ny,
Mesh mesh 
)

Definition at line 513 of file mesh.cpp.

◆ regularRectangularToTriangularElementBoundaryMaterials()

int regularRectangularToTriangularElementBoundaryMaterials ( const double &  Lx,
const double &  Ly,
Mesh mesh 
)

Definition at line 139 of file mesh.cpp.

◆ regularRectangularToTriangularMeshElements()

int regularRectangularToTriangularMeshElements ( const int &  nx,
const int &  ny,
Mesh mesh,
int  triangleFlag 
)

Definition at line 88 of file mesh.cpp.

◆ regularRectangularToTriangularMeshNodes()

int regularRectangularToTriangularMeshNodes ( const int &  nx,
const int &  ny,
const double &  Lx,
const double &  Ly,
Mesh mesh 
)

Definition at line 166 of file mesh.cpp.

◆ reorientTetrahedralMesh()

int reorientTetrahedralMesh ( Mesh mesh)

Definition at line 225 of file mesh.cpp.

◆ setFromTriangleElements()

int setFromTriangleElements ( triangulateio *  trimesh,
Mesh mesh,
int  base 
)

Definition at line 4863 of file mesh.cpp.

◆ setFromTriangleNodes()

int setFromTriangleNodes ( triangulateio *  trimesh,
Mesh mesh,
int  base 
)

Definition at line 4897 of file mesh.cpp.

◆ setNewestNodeBasesToLongestEdge()

int setNewestNodeBasesToLongestEdge ( MultilevelMesh multilevelMesh)

Definition at line 6183 of file mesh.cpp.

◆ subdivideTriangle4T()

bool subdivideTriangle4T ( int  eN_parent,
int &  eN_new,
int *  elementParentsArray,
int *  elementChildrenOffsets,
int *  elementChildrenArray,
int *  elementNodesArray_child,
const std::vector< int > &  edgeMidNodesArray,
const std::vector< bool > &  refined,
const int *  elementNodesArray_parent,
const int *  elementBoundariesArray_parent,
const double *  nodeArray_parent 
)

Definition at line 7435 of file mesh.cpp.

◆ write2dmMesh()

int write2dmMesh ( Mesh mesh,
const char *  filebase,
int  base 
)

Definition at line 5790 of file mesh.cpp.

◆ write3dmMesh()

int write3dmMesh ( Mesh mesh,
const char *  filebase,
int  base 
)

Definition at line 5770 of file mesh.cpp.

◆ writeElements()

int writeElements ( std::ostream &  meshFile,
const Mesh mesh 
)

Definition at line 4819 of file mesh.cpp.

◆ writeNodes()

int writeNodes ( std::ostream &  meshFile,
const Mesh mesh 
)

Definition at line 4807 of file mesh.cpp.

◆ writeTetgenMesh()

int writeTetgenMesh ( Mesh mesh,
const char *  filebase,
int  base 
)

Definition at line 5455 of file mesh.cpp.

◆ writeTriangleMesh()

int writeTriangleMesh ( Mesh mesh,
const char *  filebase,
int  base 
)

Definition at line 5030 of file mesh.cpp.