AFEPack
|
#include <GmshMesh.h>
公有类型 | |
typedef int | GeometryType |
公有成员 | |
GmshMesh () | |
virtual | ~GmshMesh () |
void | readData (const std::string &) |
virtual void | generateMesh (Mesh< 3, 3 > &m) |
DeclException1 (ExcMeshData, char *,<< "Mesh data error: "<< arg1) | |
静态公有属性 | |
static const GeometryType | POINT = 15 |
static const GeometryType | LINE = 1 |
static const GeometryType | TRIANGLE = 2 |
static const GeometryType | QUADRANGLE = 3 |
static const GeometryType | TETRAHEDRON = 4 |
static const GeometryType | HEXAHEDRON = 5 |
static const GeometryType | PRISM = 6 |
static const GeometryType | PYRAMID = 7 |
私有属性 | |
std::list< GeometryBM > | node |
std::list< GeometryBM > | line |
std::list< GeometryBM > | surface |
This class provides facilities to asscess the mesh data file generated by the mesh generator {gmsh}. For 3-dimensional only. Though we can read in very flexible data format, we currently only use it to read in pure tetrahedron mesh.
typedef int GmshMesh::GeometryType |
GmshMesh::~GmshMesh | ( | ) | [virtual] |
GmshMesh::DeclException1 | ( | ExcMeshData | , |
char * | , | ||
<< "Mesh data error: "<< | arg1 | ||
) |
void GmshMesh::generateMesh | ( | Mesh< 3, 3 > & | m | ) | [virtual] |
void GmshMesh::readData | ( | const std::string & | filename | ) |
$MeshFormat
integer : for example, 2 means the version of Gmsh is 2.0
integer : for example, 0 means the type of data file is ASCII
integer : the size of the floating point numbers used in the file.
$EndMeshFormat$
$Nodes
$EndNodes
$Elements
重要:新版的 Gmsh 的四面体的定向和 AFEPack 的四面体的定向是相 反的,我们通过将 0, 1 两个点的顺序掉换来改变四面体的定向!
$EndElements
const GeometryType GmshMesh::HEXAHEDRON = 5 [static] |
const GeometryType GmshMesh::LINE = 1 [static] |
std::list<GeometryBM> GmshMesh::line [private] |
std::list<GeometryBM> GmshMesh::node [private] |
const GeometryType GmshMesh::POINT = 15 [static] |
const GeometryType GmshMesh::PRISM = 6 [static] |
const GeometryType GmshMesh::PYRAMID = 7 [static] |
const GeometryType GmshMesh::QUADRANGLE = 3 [static] |
std::list<GeometryBM> GmshMesh::surface [private] |
const GeometryType GmshMesh::TETRAHEDRON = 4 [static] |
const GeometryType GmshMesh::TRIANGLE = 2 [static] |