hp2FEM  0.1
Public Member Functions | Public Attributes
ElementTopologicalIndices Class Reference

Class that stores the numbers for each element topological entity based on the polynomial order. More...

#include <ElementTopologicalIndices.h>

Collaboration diagram for ElementTopologicalIndices:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ElementTopologicalIndices ()
 Default constructor.
 ElementTopologicalIndices (ElementShape_E ElemShape, unsigned long MaxPolyOrder, BuiltInArray< long > &PolyOrder)
 Constructor with parameters related to the maximum polynomial order and an array with element polynomial orders.
 ElementTopologicalIndices (ElementTopologicalIndices &Instance)
 Copy-initializer constructor.
 ~ElementTopologicalIndices ()
 Class destructor.
ElementTopologicalIndicesoperator= (ElementTopologicalIndices &Instance)
 Copies the contents of Instance to the current object.
unsigned long * GetEdgeIndices (unsigned long PolyOrder, unsigned long EdgeNum, unsigned long &NumberIndices)
 Returns the local edge indices for the element given the polynomial order.
unsigned long * GetFaceIndices (unsigned long PolyOrder, unsigned long FaceNum, unsigned long &NumberIndices)
 Returns the local face indices for the element given the polynomial order.
unsigned long GetNumberElementNodes (unsigned long PolyOrder)
 Returns the number of element nodes.
unsigned long GetNumberVertexIndices ()
 Returns the number of vertex nodes of the element given the polynomial order.
unsigned long GetNumberEdgeIndices (unsigned long PolyOrder)
 Returns the number of edge nodes of the element given the polynomial order.
unsigned long GetNumberFaceIndices (unsigned long PolyOrder)
 Returns the number of face nodes of the element for the given polynomial order.
unsigned long GetNumberBodyIndices (unsigned long PolyOrder)
 Returns the number of body nodes of the element for the given polynomial order.
unsigned long GetNumberInternalFaceIndices (unsigned long PolyOrder)
 Returns the number of face nodes of the element for the given polynomial order. Do not account vertices and edges.
unsigned long GetNumberVertices ()
 Returns the number of vertices of the element.
unsigned long GetNumberEdges ()
 Returns the number of edges of the element.
unsigned long GetNumberFaces ()
 Returns the number of faces of the element.
unsigned long GetNumberBodies ()
 Returns the number of bodies of the element.
void SetElementShape (ElementShape_E Element)
 Sets the shape of the element.
void Save (FILE *File)
 Writes class information to a binary file.
void Restore (FILE *File)
 Restores class data from a binary file.
void RunTopologicalIndices (ElementShape_E ElemShape, BuiltInArray< long > &PolyOrder, unsigned long MaxPolyOrder=0)
 Builds the topologicals indices for the given group number.
void Print (FILE *File)
 Prints class information in an ASCII file.
void Free ()
 Releases the physical memory allocate for the ElementTopologicalIndices attributes.

Public Attributes

unsigned long NumPolyOrderSets
 Number of different polynomial orders for the elements.
BuiltInArray< long > PolyOrderSets
 Array with size equal to the maximum polynomial order. Each position stores -1 if the polynomial order is not used or the row number of index table if the polynomial order is used.
TwoIndexTable< unsigned long > FaceIndTable
 Table that store the topological face indices for each polynomial order.
TwoIndexTable< unsigned long > EdgeIndTable
 Table that store the topological edge indices for each polynomial order.
unsigned long NumberVertices
 Stores the number of vertices.
unsigned long NumberEdges
 Stores the number of edges.
unsigned long NumberFaces
 Stores the number of faces.
unsigned long NumberBodies
 Stores the number of faces.
ElementShape_E ElementShape
 Stores the element shape.

Detailed Description

Class that stores the numbers for each element topological entity based on the polynomial order.

Author:
Marco Lucio Bittencourt/ Fabiano Fernandes Bargos Gilberto Luis Valente da Costa
Date:
March/28/2011

Constructor & Destructor Documentation

ElementTopologicalIndices::ElementTopologicalIndices ( ElementShape_E  ElemShape,
unsigned long  MaxPolyOrder,
BuiltInArray< long > &  PolyOrder 
)

Constructor with parameters related to the maximum polynomial order and an array with element polynomial orders.

Parameters:
[in]ElemShape- Element Shape
[in]MaxPolyOrder- maximum interpolation polynomial order for all elements of the group.
[in]Polyorder- polynomial order sets used by the elements of the group.

Copy-initializer constructor.

Parameters:
[in]Instance- instance of ElementTopologicalIndices which data will be copied to the current object.
Returns:
Reference to the current object.

Member Function Documentation

Releases the physical memory allocate for the ElementTopologicalIndices attributes.

Note:
Statically allocated variables are set to the default values.
unsigned long * ElementTopologicalIndices::GetEdgeIndices ( unsigned long  PolyOrder,
unsigned long  EdgeNum,
unsigned long &  NumberIndices 
)

Returns the local edge indices for the element given the polynomial order.

Parameters:
[in]PolyOrder- element interpolation order.
[in]EdgeNum- the number of the edge.
[out]NumberIndices- number of edge indices for the given polynomial order.
Returns:
Pointer to array with the edge indices.
unsigned long * ElementTopologicalIndices::GetFaceIndices ( unsigned long  PolyOrder,
unsigned long  FaceNum,
unsigned long &  NumberIndices 
)

Returns the local face indices for the element given the polynomial order.

Parameters:
[in]PolyOrder- element interpolation order.
[in]FaceNum- the number of the face.
[out]NumberIndices- number of face indices for the given polynomial order.
Returns:
Pointer to array with the face indices.

Returns the number of bodies of the element.

Returns:
Returns the number of bodies.
unsigned long ElementTopologicalIndices::GetNumberBodyIndices ( unsigned long  PolyOrder)

Returns the number of body nodes of the element for the given polynomial order.

Returns:
Returns the number of body nodes.
unsigned long ElementTopologicalIndices::GetNumberEdgeIndices ( unsigned long  PolyOrder)

Returns the number of edge nodes of the element given the polynomial order.

Returns:
Returns the number of edge nodes.

Returns the number of edges of the element.

Returns:
Returns the number of edges.
unsigned long ElementTopologicalIndices::GetNumberElementNodes ( unsigned long  PolyOrder)

Returns the number of element nodes.

Parameters:
[in]PolyOrder- element polynomial order.
Returns:
an unsigned long type that to store the number of element nodes.
unsigned long ElementTopologicalIndices::GetNumberFaceIndices ( unsigned long  PolyOrder)

Returns the number of face nodes of the element for the given polynomial order.

Returns:
Returns the number of face nodes.

Returns the number of faces of the element.

Returns:
Returns the number of faces.
unsigned long ElementTopologicalIndices::GetNumberInternalFaceIndices ( unsigned long  PolyOrder)

Returns the number of face nodes of the element for the given polynomial order. Do not account vertices and edges.

Returns:
Returns the number of face nodes.

Returns the number of vertex nodes of the element given the polynomial order.

Returns:
Retruns the number of vertex nodes.

Returns the number of vertices of the element.

Returns:
Returns the number of vertices.
ElementTopologicalIndices & ElementTopologicalIndices::operator= ( ElementTopologicalIndices Instance)

Copies the contents of Instance to the current object.

Parameters:
[in]Instance- instance of ElementTopologicalIndices which data will be copied to the current object.
Returns:
Reference to the current object.
void ElementTopologicalIndices::Print ( FILE *  File)

Prints class information in an ASCII file.

Parameters:
[in]File- pointer to the ASCII file.
void ElementTopologicalIndices::Restore ( FILE *  File)

Restores class data from a binary file.

Parameters:
[in]File- pointer to the binary file.
void ElementTopologicalIndices::RunTopologicalIndices ( ElementShape_E  ElemShape,
BuiltInArray< long > &  PolyOrder,
unsigned long  MaxPolyOrder = 0 
)

Builds the topologicals indices for the given group number.

Parameters:
[in]ElementShape- Element Shape.
[in]PolyOrder- The different polynomial order using the element orders.
[in]MaxPolyOrder- maximum interpolation polynomial order for all elements of the group.
void ElementTopologicalIndices::Save ( FILE *  File)

Writes class information to a binary file.

Parameters:
[in]File- Pointer to the file.

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