AFEPack
|
#include <Geometry.h>
公有类型 | |
enum | { dim = DIM, dow = DOW } |
typedef afepack::Point< DOW > | point_t |
typedef GeometryBM::bmark_t | bmark_t |
公有成员 | |
Mesh () | |
Mesh (const mesh_t &) | |
virtual | ~Mesh () |
mesh_t & | operator= (const mesh_t &) |
unsigned int | n_point () const |
unsigned int | n_geometry (int) const |
const std::vector< point_t > & | point () const |
std::vector< point_t > & | point () |
const point_t & | point (int) const |
point_t & | point (int) |
const std::vector< std::vector < GeometryBM > > & | geometry () const |
std::vector< std::vector < GeometryBM > > & | geometry () |
const std::vector< GeometryBM > & | geometry (int) const |
std::vector< GeometryBM > & | geometry (int) |
const GeometryBM & | geometry (int, int) const |
GeometryBM & | geometry (int, int) |
bmark_t | boundaryMark (int, int) const |
bmark_t & | boundaryMark (int, int) |
void | renumerateElement () |
void | renumerateElementHSFC (void(*f)(double, double, double, double &, double &, double &)=NULL) |
void | readData (const std::string &) |
void | writeData (const std::string &) const |
void | readData1d (const std::string &) |
virtual void | writeEasyMesh (const std::string &) const |
virtual void | writeTecplotData (const std::string &) const |
DeclException1 (ExcMeshData, char *,<< "Mesh data error: "<< arg1) | |
私有类型 | |
typedef Mesh< DIM, DOW > | mesh_t |
私有属性 | |
std::vector< point_t > | pnt |
std::vector< std::vector < GeometryBM > > | geo |
友元 | |
std::istream & | operator>> (std::istream &, mesh_t &) |
std::ostream & | operator<< (std::ostream &, const mesh_t &) |
filtering_istream & | operator>> (filtering_istream &, TemplateGeometry< DIM > &) |
std::ostream & | operator<< (std::ostream &, const TemplateGeometry< DIM > &) |
The data structure of a mesh. The class Mesh
administrate a set of points and a set of geometries. The geometries are organized according its dimension and stored in arrays. A lot of mechanism provided to retrieve information from the mesh.
typedef GeometryBM::bmark_t Mesh< DIM, DOW >::bmark_t |
被MovingMesh重载。
bmark_t Mesh< DIM, DOW >::boundaryMark | ( | int | , |
int | |||
) | const |
Boundary marker of certain geometry in certain dimension.
bmark_t& Mesh< DIM, DOW >::boundaryMark | ( | int | , |
int | |||
) |
Boundary marker of certain geometry in certain dimension.
const std::vector<std::vector<GeometryBM> >& Mesh< DIM, DOW >::geometry | ( | ) | const |
Geometries arrays.
std::vector<std::vector<GeometryBM> >& Mesh< DIM, DOW >::geometry | ( | ) |
Geometries arrays.
const std::vector<GeometryBM>& Mesh< DIM, DOW >::geometry | ( | int | ) | const |
Geometries array in certain dimension.
std::vector<GeometryBM>& Mesh< DIM, DOW >::geometry | ( | int | ) |
Geometries array in certain dimension.
const GeometryBM& Mesh< DIM, DOW >::geometry | ( | int | , |
int | |||
) | const |
Certain geometry in certain dimension.
GeometryBM& Mesh< DIM, DOW >::geometry | ( | int | , |
int | |||
) |
Certain geometry in certain dimension.
unsigned int Mesh< DIM, DOW >::n_geometry | ( | int | ) | const |
Number of geometries in certain dimension.
Number of points in the mesh.
Copy operator.
Point array.
A certain point.
Read in data from a file in the internal data format.
被TemplateGeometry< DIM >、TemplateGeometry< TDIM >、TriangleMesh< DOW >及TriangleMesh< 2 >重载。
void Mesh< DIM, DOW >::readData1d | ( | const std::string & | ) |
Read in 1 dimensional data from a file with only the node corrdinates.
void Mesh< DIM, DOW >::renumerateElement | ( | ) |
Renumerate the element of the mesh. This is a very simple but efficient algorithm to decrease the band-width of the sparse system obtained.
void Mesh< DIM, DOW >::renumerateElementHSFC | ( | void(*)(double, double, double, double &, double &, double &) | f = NULL | ) |
Write data to a file in the internal data format.
被TemplateGeometry< DIM >、TemplateGeometry< TDIM >、TriangleMesh< DOW >及TriangleMesh< 2 >重载。
virtual void Mesh< DIM, DOW >::writeEasyMesh | ( | const std::string & | ) | const [inline, virtual] |
virtual void Mesh< DIM, DOW >::writeTecplotData | ( | const std::string & | ) | const [inline, virtual] |
std::ostream& operator<< | ( | std::ostream & | , |
const mesh_t & | |||
) | [friend] |
Stream output.
std::ostream& operator<< | ( | std::ostream & | os, |
const TemplateGeometry< DIM > & | t | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | , |
mesh_t & | |||
) | [friend] |
Stream input.
filtering_istream& operator>> | ( | filtering_istream & | is, |
TemplateGeometry< DIM > & | t | ||
) | [friend] |
std::vector<std::vector<GeometryBM> > Mesh< DIM, DOW >::geo [private] |
Geometries arrays of the mesh. The geometries in n
dimension are in the n-th
entry of the array, which is still an array.
Point array of the mesh.