hp2FEM  0.1
Public Member Functions | Protected Attributes
MeshTopology Class Reference

Class that creates and manages all the information related to the mesh topology. More...

#include <MeshTopology.h>

Collaboration diagram for MeshTopology:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MeshTopology ()
 Default constructor (without parameters).
 MeshTopology (MeshTopology &Instance)
 Copies the contents of instance to the current object.
 ~MeshTopology ()
 Destructor.
MeshTopologyoperator= (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.

Detailed Description

Class that creates and manages all the information related to the mesh topology.

Note:
This class has variables of the classes that store information about how nodes and elements are related for the FE model. This class has also an instance of the HighOrder class object that is responsible for generating of high order nodes/modes.
Author:
Fabiano Fernandes Bargos Gilberto Luis Valente da Costa
Date:
March/02/2011

Constructor & Destructor Documentation

Copies the contents of instance to the current object.

Parameters:
[in]Instance- instance of the MeshTopology class.
Returns:
Reference for the current object.

Member Function Documentation

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.

Parameters:
[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.

Parameters:
[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.

Returns:
Returns a reference to the ElemElemTab class variable.
MeshTopology::operator HighOrder & ( )

Cast operator to the HighOrder class.

Returns:
Returns a reference to the HghOrdr class attribute.
MeshTopology::operator NodeElementTable & ( )

Cast operator to the NodeElementTable class.

Returns:
Returns a reference to the NoElemTabInputMesh class variable.
MeshTopology::operator NodeEquationTable & ( )

Cast operator to the NodeEquationTable class.

Returns:
Returns a reference to the NoEqTab class variable.
MeshTopology::operator NodeNodeTable & ( )

Cast operator to the OneIndexTable class.

Returns:
Returns a reference to the NoNoTable class variable.
MeshTopology & MeshTopology::operator= ( MeshTopology Instance)

Copies the contents of Instance for the object.

Parameters:
[in]Instance- instance of MeshTopology.
Returns:
Reference of the current object.
void MeshTopology::Print ( FILE *  File,
char *  Message = "" 
)

Prints the parameters of theMeshTopology to an ASCII file.

Parameters:
[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.

Parameters:
[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.

Parameters:
[in]File- pointer to the binary file.
void MeshTopology::Save ( char *  Tabname,
int  Version,
char *  Filename 
)

Writes class data to a binary database.

Parameters:
[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.

Note:
The current object state can be completely recovered when applying the Restore() operation.
Parameters:
[in]File- pointer to the binary file.

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines