hp2FEM
0.1
|
Class that creates and manages all the information related to the mesh topology. More...
#include <MeshTopology.h>
Public Member Functions | |
MeshTopology () | |
Default constructor (without parameters). | |
MeshTopology (MeshTopology &Instance) | |
Copies the contents of instance to the current object. | |
~MeshTopology () | |
Destructor. | |
MeshTopology & | operator= (MeshTopology &Instance) |
Copies the contents of Instance for the object. | |
operator NodeElementTable & () | |
Cast operator to the NodeElementTable class. | |
operator NodeNodeTable & () | |
Cast operator to the OneIndexTable class. | |
operator ElementElementTable & () | |
Cast operator to the ElementElementTable class. | |
operator NodeEquationTable & () | |
Cast operator to the NodeEquationTable class. | |
operator HighOrder & () | |
Cast operator to the HighOrder class. | |
void | BuildAll (FEGroups &Groups, BoundaryData &BData, GeometryMesh &GeoMsh, unsigned long NumInputNodes, unsigned long Dimension) |
Builds all the tables related to the mesh topology (NodeNodeTable, NodeElementTable, ElementElementTable and EquationEquationTable) as well the high-order nodal coordinates and element incidence. | |
void | BuildAllElemElemSolver (FEGroups &Groups, BoundaryData &BData, GeometryMesh &GeoMsh, unsigned long NumInputNodes, unsigned long Dimension) |
Builds all the tables related to the mesh topology (NodeNodeTable, NodeElementTable, ElementElementTable and EquationEquationTable) as well the high-order nodal coordinates and element incidence. | |
void | Print (FILE *File, char *Message="") |
Prints the parameters of theMeshTopology to an ASCII file. | |
void | Save (char *Tabname, int Version, char *Filename) |
Writes class data to a binary database. | |
void | Save (FILE *File) |
Writes class information to a binary file. | |
void | Restore (char *Tabname, int Version, char *Filename) |
Restores class data (written using the Save method) from a binary file. | |
void | Restore (FILE *File) |
Restores class data (written using Save()) from a binary file. | |
void | Free () |
Releases the physical memory allocate for the class variables. | |
Protected Attributes | |
NodeElementTable | NoElemTabInputMesh |
object of NodeElementTable class that stores for, each node, the elements that share the node. This also called nodal patch. | |
NodeElementTable | NoElemTabSoluMesh |
object of NodeElementTable class that stores for, each node, the elements that share the node. This also called nodal patch. | |
NodeNodeTable | NoNoTab |
object NodeNodeTable of class that stores for each node its neighbour nodes, | |
ElementElementTable | ElemElemTab |
object of ElementElementTable class that store for each element its neighbour elements. | |
NodeEquationTable | NoEqTab |
object of EquationEquationTable class that store for each dof its neighbour dofs. | |
HighOrder | HghOrdr |
object of HighOrder class that creates the nodes for the elements given the polynomial orders. |
Class that creates and manages all the information related to the mesh topology.
MeshTopology::MeshTopology | ( | MeshTopology & | Instance | ) |
Copies the contents of instance to the current object.
[in] | Instance | - instance of the MeshTopology class. |
void MeshTopology::BuildAll | ( | FEGroups & | Groups, |
BoundaryData & | BData, | ||
GeometryMesh & | GeoMsh, | ||
unsigned long | NumInputNodes, | ||
unsigned long | Dimension | ||
) |
Builds all the tables related to the mesh topology (NodeNodeTable, NodeElementTable, ElementElementTable and EquationEquationTable) as well the high-order nodal coordinates and element incidence.
[in] | Groups | - instance of the FEGroups class which stores information for the finite element groups of the discrete model. |
[in] | NumInputNodes | - number of nodes that was read. |
[in] | Dimension | - problem dimension. |
void MeshTopology::BuildAllElemElemSolver | ( | FEGroups & | Groups, |
BoundaryData & | BData, | ||
GeometryMesh & | GeoMsh, | ||
unsigned long | NumInputNodes, | ||
unsigned long | Dimension | ||
) |
Builds all the tables related to the mesh topology (NodeNodeTable, NodeElementTable, ElementElementTable and EquationEquationTable) as well the high-order nodal coordinates and element incidence.
[in] | Groups | - instance of the FEGroups class which stores information for the finite element groups of the discrete model. |
[in] | NumInputNodes | - number of nodes that was read. |
[in] | Dimension | - problem dimension. |
MeshTopology::operator ElementElementTable & | ( | ) |
Cast operator to the ElementElementTable class.
MeshTopology::operator HighOrder & | ( | ) |
Cast operator to the HighOrder class.
MeshTopology::operator NodeElementTable & | ( | ) |
Cast operator to the NodeElementTable class.
MeshTopology::operator NodeEquationTable & | ( | ) |
Cast operator to the NodeEquationTable class.
MeshTopology::operator NodeNodeTable & | ( | ) |
Cast operator to the OneIndexTable class.
MeshTopology & MeshTopology::operator= | ( | MeshTopology & | Instance | ) |
Copies the contents of Instance for the object.
[in] | Instance | - instance of MeshTopology. |
void MeshTopology::Print | ( | FILE * | File, |
char * | Message = "" |
||
) |
Prints the parameters of theMeshTopology to an ASCII file.
[in] | File | - pointer to the ASCII file. |
[in] | Message | - optional message to be written to the ASCII file. |
void MeshTopology::Restore | ( | char * | Tabname, |
int | Version, | ||
char * | Filename | ||
) |
Restores class data (written using the Save method) from a binary file.
[in] | Tabname | - name of the database table for the data. |
[in] | Version | - data version number. |
[in] | Filename | - database prefix filename. Two files will be used: filename.dir and filename.bdg. The first one stores keys to the data stored in the filename.bdg file. |
void MeshTopology::Restore | ( | FILE * | File | ) |
Restores class data (written using Save()) from a binary file.
[in] | File | - pointer to the binary file. |
void MeshTopology::Save | ( | char * | Tabname, |
int | Version, | ||
char * | Filename | ||
) |
Writes class data to a binary database.
[in] | Tabname | - name of the database table under which the data will be stored. |
[in] | Version | - data version number. |
[in] | Filename | - database prefix filename. Two files will be used: filename.dir and filename.bdg. The first one stores keys to the data stored in the filename.bdg file. |
void MeshTopology::Save | ( | FILE * | File | ) |
Writes class information to a binary file.
[in] | File | - pointer to the binary file. |