hp2FEM
0.1
|
Class for equation numbering. More...
#include <Equations.h>
Public Member Functions | |
Equations () | |
Default constructor (without parameters). | |
Equations (Equations &Instance) | |
Copy-initializer constructor. Copies the contents of Instance for the object. | |
~Equations () | |
Destructor. | |
Equations & | operator= (Equations &Instance) |
Copies the contents of Instance for the object. | |
void | NumberingNodalDOF (FEGroups &Groups, unsigned long TotalNumberNodes, DOFs &DFs, BoundaryConditions &BCs, GeometryMesh &GeoMsh, NodeElementTable &NoElemTable, MeshID_E MeshID) |
Builds the equation numbering. | |
unsigned long | GetNumberNodalDOFs (unsigned long NodeNumber) |
Returns the number of DOFs of a node. | |
unsigned long | GetNodalDOFNumbers (unsigned long NodeNumber, unsigned long Cardinality) |
Returns the equation number of a node given the cardinality. | |
unsigned long *const | GetNodalDOFs (unsigned long NodeNumber, unsigned long &NumberDOFs) |
Returns the equation number of a node and the number of DOFs to a given node. | |
OneIndexTable< unsigned long > & | GetNodalDOFNumbers () |
Returns the all equations for each group number. | |
unsigned long | GetNumberEquations () |
Returns the numbering of equations. | |
unsigned long | GetTotalNumberFreeDOFs () |
Returns the number of equations related to free DOFs. | |
unsigned long | GetNumberHDBCRestrictedDOFs () |
Return the number of equations related to the eliminated homogenous dirichlet boundary conditions DOFs. | |
unsigned long | GetNumberNHDBCRestrictedDOFs () |
Return the number of equations related to the eliminated non-homogenous dirichlet boundary conditions DOFs. | |
unsigned long | GetTotalNumberDOFs () |
Returns the number of equations (DOFs) in the FE model. | |
unsigned long | GetTotalNumberVertexDOFs () |
Return the number of equations related to the vertex DOFs. | |
unsigned long | GetTotalNumberEdgeDOFs () |
Returns the number of equations related to the edge DOFs. | |
unsigned long | GetTotalNumberFaceDOFs () |
Returns the number of equations related to the face DOFs. | |
unsigned long | GetTotalNumberBodyDOFs () |
Returns the number of equations related to the body DOFs. | |
void | SetElementEquations (OneIndexTable< unsigned long > &ElementIncidence, OneIndexTable< unsigned long > &ElementEquations) |
set the element equations. | |
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 from a binary database written using the Save method. | |
void | Restore (FILE *File) |
Restores class data (written using the Save method) from a binary file. | |
void | Print (FILE *File, char *Message="") |
Prints the parameters of the Equations to an ASCII file. | |
void | Free () |
Releases the physical memory allocated for the groups. | |
Public Attributes | |
OneIndexTable< unsigned long > | NodalDOFNumbers |
Table that store for each node the respective dof numbering. | |
unsigned long | TotalNumDOFs |
Stores the total number of dofs of the FE model. | |
unsigned long | TotalNumFreeDOFs |
Stores the total number of free dofs. | |
unsigned long | TotalNumHDBCRestrDOFs |
Stores the total number of restricted dofs of the homogeneous dirichlet boundary condition. | |
unsigned long | TotalNumNHDBCRestrDOFs |
Stores the total number of restricted dofs of the non-homogeneous dirichlet boundary condition. | |
unsigned long | NumVertexEquations |
Total number of equations related to vertex nodes. | |
unsigned long | NumEdgeEquations |
Total number of equations related to edge nodes. | |
unsigned long | NumFaceEquations |
Total number of equations related to face nodes. | |
unsigned long | NumBodyEquations |
Total number of equations related to body nodes. |
Class for equation numbering.
Equations::Equations | ( | Equations & | Instance | ) |
Copy-initializer constructor. Copies the contents of Instance for the object.
[in] | Instance | - instance of Equations. |
unsigned long Equations::GetNodalDOFNumbers | ( | unsigned long | NodeNumber, |
unsigned long | Cardinality | ||
) |
Returns the equation number of a node given the cardinality.
[in] | NodeNumber | - global node number. |
[in] | Cardinality | - dof cardinality |
OneIndexTable< unsigned long > & Equations::GetNodalDOFNumbers | ( | ) |
Returns the all equations for each group number.
unsigned long *const Equations::GetNodalDOFs | ( | unsigned long | NodeNumber, |
unsigned long & | NumberDOFs | ||
) |
unsigned long Equations::GetNumberEquations | ( | ) |
Returns the numbering of equations.
unsigned long Equations::GetNumberHDBCRestrictedDOFs | ( | ) |
unsigned long Equations::GetNumberNHDBCRestrictedDOFs | ( | ) |
unsigned long Equations::GetNumberNodalDOFs | ( | unsigned long | NodeNumber | ) |
Returns the number of DOFs of a node.
[in] | NodeNumber | - global number of the node. |
unsigned long Equations::GetTotalNumberBodyDOFs | ( | ) |
Returns the number of equations related to the body DOFs.
unsigned long Equations::GetTotalNumberDOFs | ( | ) |
unsigned long Equations::GetTotalNumberEdgeDOFs | ( | ) |
Returns the number of equations related to the edge DOFs.
unsigned long Equations::GetTotalNumberFaceDOFs | ( | ) |
Returns the number of equations related to the face DOFs.
unsigned long Equations::GetTotalNumberFreeDOFs | ( | ) |
unsigned long Equations::GetTotalNumberVertexDOFs | ( | ) |
Return the number of equations related to the vertex DOFs.
void Equations::NumberingNodalDOF | ( | FEGroups & | Groups, |
unsigned long | TotalNumberNodes, | ||
DOFs & | DFs, | ||
BoundaryConditions & | BCs, | ||
GeometryMesh & | GeoMsh, | ||
NodeElementTable & | NoElemTable, | ||
MeshID_E | MeshID | ||
) |
Builds the equation numbering.
[in] | Groups | - instance of the FEGroups class which stores information for the finite element groups of the discrete model. |
[in] | TotalNumberNodes | - total number of mesh nodes. |
[in] | DFs | - instance of the DOFs class. |
[in] | BCs | - instance of the BoundaryCondictions class. |
[in] | GeoMsh | - instance of the GeometryMesh class. |
[in] | NoElemTable | - instance of NodeElementTable class. |
[in] | MeshID | - Type of mesh. |
Copies the contents of Instance for the object.
[in] | Instance | - instance of Equations. |
void Equations::Print | ( | FILE * | File, |
char * | Message = "" |
||
) |
Prints the parameters of the Equations to an ASCII file.
[in] | File | - pointer to the ASCII file. |
[in] | Message | - optional message to be written to the ASCII file. |
void Equations::Restore | ( | char * | Tabname, |
int | Version, | ||
char * | Filename | ||
) |
Restores class data from a binary database written using the Save method.
[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. |
void Equations::Restore | ( | FILE * | File | ) |
Restores class data (written using the Save method) from a binary file.
[in] | File | - pointer to the binary file. |
void Equations::Save | ( | char * | Tabname, |
int | Version, | ||
char * | Filename | ||
) |
Writes class data to a binary database.
[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 Equations::Save | ( | FILE * | File | ) |
Writes class information to a binary file.
[in] | File | - pointer to the binary file. |
void Equations::SetElementEquations | ( | OneIndexTable< unsigned long > & | ElementIncidence, |
OneIndexTable< unsigned long > & | ElementEquations | ||
) |
set the element equations.
[in] | ElementIncidence | - Instance of OneIndexTable to store incidence for each element. |
[out] | ElementEquations | - Instance of OneIndexTable to store equations for each element. |