hp2FEM  0.1
Public Member Functions | Protected Attributes
NodeEquationTable Class Reference

Table that store for each node, its neighbours dofs. More...

#include <NodeEquationTable.h>

Collaboration diagram for NodeEquationTable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NodeEquationTable ()
 Default constructor (without parameters).
 NodeEquationTable (NodeEquationTable &Instance)
 Copies the contents of instance to the object.
 ~NodeEquationTable ()
 Destructor.
NodeEquationTableoperator= (NodeEquationTable &Instance)
 Copies the contents of Instance for the object.
void BuildEquationEquationTable (unsigned long TotalNumberNodes, NodeNodeTable &NoNoTab, Equations &Eqs)
 Builds the equation-equation topological table for all finite element groups.
unsigned long GetNumberNeighbourDOFs (unsigned long EquationNumber)
 Returns the number of neighbour equations for a given fdof number.
unsigned long *const GetEquationNeighbours (unsigned long EquationNumber, unsigned long &NumberNeighbourEquations)
 Returns a list of neighbour equations for a given equation.
void Print (FILE *File, char *Message="")
 Prints the parameters of the class 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 table.

Protected Attributes

OneIndexTable< unsigned long > NoEqTable
 Stores, for each equation in the FE model, the neighbours equations.

Detailed Description

Table that store for each node, its neighbours dofs.

Note:
The nodes with boundary conditions are numerated first followed by the free DOFs.
Author:
Fabiano Fernandes Bargos
Date:
February/03/2011

Constructor & Destructor Documentation

Copies the contents of instance to the object.

Parameters:
[in]Instance- instance of the NodeEquationTable class.

Member Function Documentation

void NodeEquationTable::BuildEquationEquationTable ( unsigned long  TotalNumberNodes,
NodeNodeTable NoNoTab,
Equations Eqs 
)

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

Parameters:
[in]TotalNumberNodes- total number of nodes in the FE model.
[in]NoNoTab- instance of the NodeNodeTable class.
[in]Eqs- instance of the Equation class.
unsigned long *const NodeEquationTable::GetEquationNeighbours ( unsigned long  EquationNumber,
unsigned long &  NumberNeighbourEquations 
)

Returns a list of neighbour equations for a given equation.

Parameters:
[in]EquationNumber- the number of the equation.
[out]NumberNeighbourEquations- number of the neighbour equations.
Returns:
Pointer to an array with the neighbour equations.
unsigned long NodeEquationTable::GetNumberNeighbourDOFs ( unsigned long  EquationNumber)

Returns the number of neighbour equations for a given fdof number.

Parameters:
[in]EquationNumber- the number of the equation for which the number of neighbour equations must be returned.
Returns:
Number of neighbour equations.
NodeEquationTable & NodeEquationTable::operator= ( NodeEquationTable Instance)

Copies the contents of Instance for the object.

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

Prints the parameters of the class to an ASCII file.

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

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

Parameters:
[in]File- pointer to the binary file.
void NodeEquationTable::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 NodeEquationTable::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