Finite Element Mesh
Detailed Description
A module that groups mesh related classes.
Classes | |
| class | Field |
| To enable defining various physical fields. More... | |
| class | Domain |
| To store and treat finite element geometric information. More... | |
| class | Edge |
| To describe an edge. More... | |
| class | Element |
| To store and treat finite element geometric information. More... | |
| class | ElementList |
| To a list of elements having some common properties. More... | |
| class | Grid |
| To manipulate structured grids. More... | |
| class | Mesh |
| To store and manipulate finite element meshes. More... | |
| class | Node |
| To describe a node. More... | |
| class | NodeList |
| To a list of nodes having some common properties. More... | |
| class | Partition |
| To partition a finite element mesh into balanced submeshes. More... | |
| class | Side |
| To store and treat finite element sides (edges in2-D or faces in 3-D). More... | |
| class | SideList |
| To a list of sides having some common properties. More... | |
Defines | |
| #define | GRAPH_MEMORY 1000000 |
| #define | MAX_NB_CONT_LINES 50 |
| #define | MAX_NB_EDGES 5000000 |
| #define | MAX_NB_EDGES_BY_PACK 100000 |
| #define | MAX_NB_ELEMENT_EDGES 10 |
| #define | MAX_NB_ELEMENT_NODES 20 |
| #define | MAX_NB_ELEMENT_SIDES 8 |
| #define | MAX_NB_ELEMENTS_BY_PACK 100000 |
| #define | MAX_NB_HOLES 10 |
| #define | MAX_NB_LINE_NODES 1000 |
| #define | MAX_NB_LINES 200 |
| #define | MAX_NB_MATERIALS 10 |
| #define | MAX_NB_NODES_BY_PACK 300000 |
| #define | MAX_NB_SIDE_NODES 9 |
| #define | MAX_NB_SIDES 1000000 |
| #define | MAX_NB_SIDES_BY_PACK 300000 |
| #define | MAX_NB_SUB_DOMAINS 5 |
| #define | MAX_NB_SUBMESHES 500 |
| #define | MAX_NB_VERTICES 50 |
| #define | MAX_NBDOF_EDGE 2 |
| #define | MAX_NBDOF_NODE 6 |
| #define | MAX_NBDOF_SIDE 6 |
Functions | |
| double | getMaxSideMeasure (const Mesh &m) |
| Return maximal measure (length or area) of sides of given mesh. | |
| double | getMaxSize (const Mesh &m) |
| Return maximal size of element edges for given mesh. | |
| double | getMeanElementMeasure (const Mesh &m) |
| Return average measure (length, area or volume) of elements of given mesh. | |
| double | getMeanSideMeasure (const Mesh &m) |
| Return average measure (length or area) of sides of given mesh. | |
| double | getMinElementMeasure (const Mesh &m) |
| Return minimal measure (length, area or volume) of elements of given mesh. | |
| double | getMinSideMeasure (const Mesh &m) |
| Return minimal measure (length or area) of sides of given mesh. | |
| double | getMinSize (const Mesh &m) |
| Return minimal size of element edges for given mesh. | |
| void | MeshToMesh (const Mesh &m1, const Mesh &m2, const Vect< double > &u1, Vect< double > &u2, size_t nx, size_t ny=1, size_t nz=1) |
| Function to redefine a vector defined on a mesh to a new mesh. | |
| ostream & | operator<< (ostream &s, const Side &sd) |
| Output side data. | |
| ostream & | operator<< (ostream &s, const Node &nd) |
| Output node data. | |
| ostream & | operator<< (ostream &s, const SideList &sl) |
| Output SideList instance. | |
| ostream & | operator<< (ostream &s, const ElementList &el) |
| Output ElementList instance. | |
| ostream & | operator<< (ostream &s, const NodeList &nl) |
| Output NodeList instance. | |
| ostream & | operator<< (ostream &s, const Mesh &ms) |
| Output mesh data. | |
| ostream & | operator<< (ostream &s, const Material &m) |
| Output material data. | |
| ostream & | operator<< (ostream &s, const Element &el) |
| Output element data. | |
| ostream & | operator<< (ostream &s, const Edge &ed) |
| Output edge data. | |
Define Documentation
| #define GRAPH_MEMORY 1000000 |
Memory necessary to store matrix graph. This value is necessary only if nodes are to be renumbered.
| #define MAX_NB_CONT_LINES 50 |
Maximum number of lines on each contour. Used only if class Domain is invoked.
| #define MAX_NB_EDGES 5000000 |
Maximum number of edges
| #define MAX_NB_EDGES_BY_PACK 100000 |
Number of edges in a pack. Edges are stored in mesh by packs. Edges are used only when an edge finite element method is to be used.
| #define MAX_NB_ELEMENT_EDGES 10 |
Maximum number of edges by element
| #define MAX_NB_ELEMENT_NODES 20 |
Maximum number of nodes by element
| #define MAX_NB_ELEMENT_SIDES 8 |
Maximum number of sides by element
| #define MAX_NB_ELEMENTS_BY_PACK 100000 |
Number of elements in a pack. Elements are stored in mesh by packs.
| #define MAX_NB_HOLES 10 |
Maximum number of holes. Used only if class Domain is invoked.
| #define MAX_NB_LINE_NODES 1000 |
Maximum number of nodes on each line. Used only if class Domain is invoked.
| #define MAX_NB_LINES 200 |
Maximum number of lines. Used only if class Domain is invoked.
| #define MAX_NB_MATERIALS 10 |
Maximum number of materials.
| #define MAX_NB_NODES_BY_PACK 300000 |
Number of nodes in a pack. Nodes are stored in mesh by packs.
| #define MAX_NB_SIDE_NODES 9 |
Maximum number of nodes by side
| #define MAX_NB_SIDES 1000000 |
Maximum number of sides
| #define MAX_NB_SIDES_BY_PACK 300000 |
Number of sides in a pack. Sides are stored in mesh by packs.
| #define MAX_NB_SUB_DOMAINS 5 |
Maximum number of subdomains. Used only if class Domain is invoked.
| #define MAX_NB_SUBMESHES 500 |
Maximum number of mesh partitions. Useful if mesh is to be partitioned by class Partition
| #define MAX_NB_VERTICES 50 |
Maximum number of vertices.
| #define MAX_NBDOF_EDGE 2 |
Maximum number of DOF supported by each edge
| #define MAX_NBDOF_NODE 6 |
Maximum number of DOF supported by each node
| #define MAX_NBDOF_SIDE 6 |
Maximum number of DOF supported by each side
Function Documentation
| double getMaxSideMeasure | ( | const Mesh & | m | ) |
Return maximal measure (length or area) of sides of given mesh.
- Parameters:
-
[in] m Reference to mesh instance
- Note:
- Use this function only if sides are present in the mesh and for 2-D meshes
| double getMaxSize | ( | const Mesh & | m | ) |
Return maximal size of element edges for given mesh.
- Parameters:
-
[in] m Reference to mesh instance
| double getMeanElementMeasure | ( | const Mesh & | m | ) |
Return average measure (length, area or volume) of elements of given mesh.
- Parameters:
-
[in] m Reference to mesh instance
| double getMeanSideMeasure | ( | const Mesh & | m | ) |
Return average measure (length or area) of sides of given mesh.
- Parameters:
-
[in] m Reference to mesh instance
- Note:
- Use this function only if sides are present in the mesh and for 2-D meshes
| double getMinElementMeasure | ( | const Mesh & | m | ) |
Return minimal measure (length, area or volume) of elements of given mesh.
Return maximal measure (length, area or volume) of elements of given mesh.
- Parameters:
-
[in] m Reference to mesh instance
| double getMinSideMeasure | ( | const Mesh & | m | ) |
Return minimal measure (length or area) of sides of given mesh.
- Parameters:
-
[in] m Reference to mesh instance
- Note:
- Use this function only if sides are present in the mesh and for 2-D meshes
| double getMinSize | ( | const Mesh & | m | ) |
Return minimal size of element edges for given mesh.
- Parameters:
-
[in] m Reference to mesh instance
| void MeshToMesh | ( | const Mesh & | m1, | |
| const Mesh & | m2, | |||
| const Vect< double > & | u1, | |||
| Vect< double > & | u2, | |||
| size_t | nx, | |||
| size_t | ny = 1, |
|||
| size_t | nz = 1 | |||
| ) |
Function to redefine a vector defined on a mesh to a new mesh.
The program interpolates (piecewise linear) first the vector on a finer structured grid. Then the values on the new mesh nodes are computed.
- Parameters:
-
[in] m1 Reference to the first mesh instance [out] m2 Reference to the second mesh instance [in] u1 Input vector of nodal values defined on first mesh [out] u2 Output vector of nodal values defined on second mesh [in] nx Number of cells in the x-direction in the fine structured grid [in] ny Number of cells in the y-direction in the fine structured grid The default value of ny is 1, i.e. a 1-D grid [in] nz Number of cells in the z-direction in the fine structured grid The default value of nz is 1, i.e. a 1-D or 2-D grid