hp2FEM  0.1
Public Member Functions | Protected Attributes
NodeElementTable Class Reference

Table that stores the elements that shares each node. Builds the nodal patch table. More...

#include <NodeElementTable.h>

Collaboration diagram for NodeElementTable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NodeElementTable ()
 Default constructor (without parameters).
 NodeElementTable (NodeElementTable &Instance)
 Copies the contents of instance to the object.
 ~NodeElementTable ()
 Destructor.
NodeElementTableoperator= (NodeElementTable &Instance)
 Copies the contents of Instance for the object.
void BuildNodeElementTable (FEGroups &Groups, unsigned long TotalNumberNodes, MeshID_E MeshID)
 Builds the node-element topological table for all finite element groups.
void BuildNodeElementTable (unsigned long GroupNumber, unsigned long TotalNumberNodes, FEGroups &Groups, MeshID_E MeshID)
 Builds the node-element topological table for only one finite element groups according to GroupNumber parameter.
unsigned long *const GetNeighbourElements (unsigned long NodeNumber, unsigned long &NumberNeighbourElements)
 Returns a list of elements that shares a given node.
unsigned long GetNumberNeighbourElements (unsigned long NodeNumber)
 Returns the number of neighbours elements for a given node.
unsigned long * GetNodeElementTable (unsigned long &SizeNoElemTable)
 Returns the node-element topological table and its size.
unsigned long GetNoElemTabIndexSize ()
void Print (FILE *File, char *Message="")
 Prints the parameters of the 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()) form a binary file.
void Free ()
 Releases the physical memory allocate for the object.

Protected Attributes

OneIndexTable< unsigned long > NoElemTable
 Stores, for each node in the FE model, the elements that share this node.

Detailed Description

Table that stores the elements that shares each node. Builds the nodal patch table.

Author:
Fabiano Fernandes Bargos Gilberto Luis Valente da Costa
Date:
February/03/2011

Constructor & Destructor Documentation

Copies the contents of instance to the object.

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

Member Function Documentation

void NodeElementTable::BuildNodeElementTable ( FEGroups Groups,
unsigned long  TotalNumberNodes,
MeshID_E  MeshID 
)

Builds the node-element topological table for all finite element groups.

Parameters:
[in]TotalNumberNodes- total number of nodes in the FE model.
[in]Groups- instance of the FEGroups class which stores information for the finite element groups of the meshl.
[in]MeshID- Type of mesh to be used to create the node-element topological table.
void NodeElementTable::BuildNodeElementTable ( unsigned long  GroupNumber,
unsigned long  TotalNumberNodes,
FEGroups Groups,
MeshID_E  MeshID 
)

Builds the node-element topological table for only one finite element groups according to GroupNumber parameter.

Parameters:
[in]GroupNumber- Number of group.
[in]TotalNumberNodes- total number of nodes in the FE model.
[in]Groups- instance of the FEGroups class which stores information for the finite element groups of the meshl.
[in]MeshID- Type of mesh to be used to create the node-element topological table.
unsigned long *const NodeElementTable::GetNeighbourElements ( unsigned long  NodeNumber,
unsigned long &  NumberNeighbourElements 
)

Returns a list of elements that shares a given node.

Parameters:
[in]NodeNumber- number of the node.
[out]NumberNeighbourElements- number of neighbour elements of the given node number.
Returns:
Pointer to the array of elements.
unsigned long * NodeElementTable::GetNodeElementTable ( unsigned long &  SizeNoElemTable)

Returns the node-element topological table and its size.

Parameters:
[in]SizeNoElemTable- Size of the node-element topological table
Returns:
a pointer to unsigned long that contains the elements of the node-element table.
Returns:
unsigned long NodeElementTable::GetNumberNeighbourElements ( unsigned long  NodeNumber)

Returns the number of neighbours elements for a given node.

Parameters:
[in]NodeNumber- number of the node.
Returns:
Number of neighbour elements.
NodeElementTable & NodeElementTable::operator= ( NodeElementTable Instance)

Copies the contents of Instance for the object.

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

Prints the parameters of the to an ASCII file.

Parameters:
[in]File- pointer to the ASCII file.
[in]Message- optional message to be written to the ASCII file.
void NodeElementTable::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 where 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 NodeElementTable::Restore ( FILE *  File)

Restores class data (written using Save()) form a binary file.

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

Writes class data to a binary database.

Parameters:
[in]Tabname- name of the database table where 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 NodeElementTable::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