hp2FEM
0.1
|
Class that stores the Dirichlet boundary conditions applied to th model. More...
#include <DirichletBC.h>
Public Member Functions | |
DirichletBC () | |
Default constructor (without parameters). | |
DirichletBC (DirichletBC &Instance) | |
Copy-initializer constructor. | |
~DirichletBC () | |
Destructor. | |
DirichletBC & | operator= (DirichletBC &Instance) |
Copies the contents of Instance to te current object.. | |
unsigned long | GetNumberDBCNodes () |
Returns the number of Dirichlet boundary conditions on nodes. | |
unsigned long | GetNumberDBCEdges () |
Returns the number of Dirichlet boundary conditions on element edges. | |
unsigned long | GetNumberDBCFaces () |
Returns the number of Dirichlet boundary conditions on element faces. | |
unsigned long | GetNumberDBCKeypoints () |
Returns the number of Dirichlet boundary conditions on geometric keypoints.. | |
unsigned long | GetNumberDBCLines () |
Returns the number of Dirichlet boundary conditions on geometric lines. | |
unsigned long | GetNumberDBCSurfaces () |
Returns the number of Dirichlet boundary conditions on geometric surfaces. | |
unsigned long | GetNumberDBC (Entity_E Entity) |
Returns the number of Dirichlet boundary conditions on the given entity type. | |
Array< LoadIntensity > & | GetDBCNodes () |
Returns the Dirichlet boundary conditions applied to the nodes as an array of the LoadIntensity class. | |
Array< LoadIntensity > & | GetDBCEdges () |
Returns the Dirichlet boundary conditions applied to the element edges as an array of the LoadIntensity class. | |
Array< LoadIntensity > & | GetDBCFaces () |
Returns the Dirichlet boundary conditions applied to the element faces as an array of the LoadIntensity class. | |
Array< LoadIntensity > & | GetDBCKeypoints () |
Returns the Dirichlet boundary conditions applied to the geometric keypoints as an array of the LoadIntensity class. | |
Array< LoadIntensity > & | GetDBCLines () |
Returns the Dirichlet boundary conditions applied to the geometric lines as an array of the LoadIntensity class. | |
Array< LoadIntensity > & | GetDBCSurfaces () |
Returns the Dirichlet boundary conditions applied to the geometric surfaces as an array of the LoadIntensity class. | |
Array< LoadIntensity > & | GetDBC (Entity_E Entity) |
Returns the Dirichlet boundary conditions on the given entity type as an array of the LoadIntensity class. | |
void | SetNumberDBCNodes (unsigned long NumberDBCNodes) |
Sets the number of Dirichlet boundary conditions on nodes. | |
void | SetNumberDBCEdges (unsigned long NumberDBCEdges) |
Sets the number of Dirichlet boundary conditions on element edges. | |
void | SetNumberDBCFaces (unsigned long NumberDBCFaces) |
Sets the number of Dirichlet boundary conditions on element faces. | |
void | SetNumberDBCKeypoints (unsigned long NumberDBCKeypoints) |
Sets the number of Dirichlet boundary conditions on geometric keypoints. | |
void | SetNumberDBCLines (unsigned long NumberDBCLines) |
Sets the number of Dirichlet boundary conditions on geometric lines. | |
void | SetNumberDBCSurfaces (unsigned long NumberDBCSurfaces) |
Sets the number of Dirichlet boundary conditions on geometric surfaces. | |
void | SetNumberDBCEntity (Entity_E Entity, unsigned long NumberDBCEntity) |
Sets the number of Dirichlet boundary conditions for the given entity type. | |
void | SetDBCNodes (unsigned long DBCIndex, unsigned long NodeNumber, unsigned long NumberDOFs, char **DOFNames, DBC_E DBCFlag=HDBC, double *Intensity=0) |
Sets the Dirichlet boundary conditions on nodes. | |
void | SetDBCEdges (unsigned long DBCIndex, unsigned long ElementNumber, unsigned long EdgeNumber, unsigned long NumberDOFs, char **DOFNames, DBC_E DBCFlag=HDBC, double *NumericIntensity=0) |
Sets the Dirichlet boundary conditions on element edges. | |
void | SetDBCFaces (unsigned long DBCIndex, unsigned long ElementNumber, unsigned long FaceNumber, unsigned long NumberDOFs, char **DOFNames, DBC_E DBCFlag=HDBC, double *NumericIntensity=0) |
Sets the Dirichlet boundary conditions on element faces. | |
void | SetDBCKeypoints (unsigned long DBCIndex, unsigned long KeypointNumber, unsigned long NumberDOFs, char **DOFNames, DBC_E DBCFlag=HDBC, double *Intensity=0) |
Sets the Dirichlet boundary conditions on geometric keypoints. | |
void | SetDBCLines (unsigned long DBCIndex, unsigned long LineNumber, unsigned long NumberDOFs, char **DOFNames, DBC_E DBCFlag=HDBC, double *NumericIntensity=0) |
Sets the Dirichlet boundary conditions on geometric lines. | |
void | SetDBCSurfaces (unsigned long DBCIndex, unsigned long SurfaceNumber, unsigned long NumberDOFs, char **DOFNames, DBC_E DBCFlag=HDBC, double *NumericIntensity=0) |
Sets the Dirichlet boundary conditions on geometric surfaces. | |
void | SetDBCEntity (Entity_E Entity, unsigned long DBCIndex, unsigned long EntityNumber, unsigned long LocalEntityNumber, unsigned long NumberDOFs, char **DOFNames, DBC_E DBCFlag=HDBC, double *NumericIntensity=0) |
Sets the Dirichlet boundary conditions on the given entity type. | |
void | Read (FILE *DEFFile, DOFs &DOFsAttributes, DBC_E DBCFlag) |
Reads class data from the .def ASCII file. | |
void | Print (FILE *File, char *Message="", DBC_E DBCFlag=NHDBC) |
Prints class data in ASCII format. | |
Protected Attributes | |
Array< LoadIntensity > | DBCNodes |
Array that stores information about the nodes with Dirichlet boundary conditions. | |
Array< LoadIntensity > | DBCEdges |
Array that stores information about the edges with Dirichlet boundary conditions. | |
Array< LoadIntensity > | DBCFaces |
Array that stores information about the faces with Dirichlet boundary conditions. | |
Array< LoadIntensity > | DBCKeypoints |
Array that stores information about the geometric keypoints with Dirichlet boundary conditions. | |
Array< LoadIntensity > | DBCLines |
Array that stores information about the geometric lines with Dirichlet boundary conditions. | |
Array< LoadIntensity > | DBCSurfaces |
Array that stores information about the geometric surfaces with Dirichlet boundary conditions. |
Class that stores the Dirichlet boundary conditions applied to th model.
DirichletBC::DirichletBC | ( | DirichletBC & | Instance | ) |
Copy-initializer constructor.
[in] | Instance | - instance of the DirichletBC class whose data will be copied to the current object. |
Array< LoadIntensity > & DirichletBC::GetDBC | ( | Entity_E | Entity | ) |
Returns the Dirichlet boundary conditions on the given entity type as an array of the LoadIntensity class.
[in] | Entity | - entity type (NODE, EDGE, FACE, KEYPOINT, LINE, SURFACE). |
Array< LoadIntensity > & DirichletBC::GetDBCEdges | ( | ) |
Returns the Dirichlet boundary conditions applied to the element edges as an array of the LoadIntensity class.
Array< LoadIntensity > & DirichletBC::GetDBCFaces | ( | ) |
Returns the Dirichlet boundary conditions applied to the element faces as an array of the LoadIntensity class.
Returns the Dirichlet boundary conditions applied to the geometric keypoints as an array of the LoadIntensity class.
Array< LoadIntensity > & DirichletBC::GetDBCLines | ( | ) |
Returns the Dirichlet boundary conditions applied to the geometric lines as an array of the LoadIntensity class.
Array< LoadIntensity > & DirichletBC::GetDBCNodes | ( | ) |
Returns the Dirichlet boundary conditions applied to the nodes as an array of the LoadIntensity class.
Returns the Dirichlet boundary conditions applied to the geometric surfaces as an array of the LoadIntensity class.
unsigned long DirichletBC::GetNumberDBC | ( | Entity_E | Entity | ) |
Returns the number of Dirichlet boundary conditions on the given entity type.
[in] | Entity | - entity type (NODE, EDGE, FACE, KEYPOINT, LINE, SURFACE). |
unsigned long DirichletBC::GetNumberDBCEdges | ( | ) |
Returns the number of Dirichlet boundary conditions on element edges.
unsigned long DirichletBC::GetNumberDBCFaces | ( | ) |
Returns the number of Dirichlet boundary conditions on element faces.
unsigned long DirichletBC::GetNumberDBCKeypoints | ( | ) |
Returns the number of Dirichlet boundary conditions on geometric keypoints..
unsigned long DirichletBC::GetNumberDBCLines | ( | ) |
Returns the number of Dirichlet boundary conditions on geometric lines.
unsigned long DirichletBC::GetNumberDBCNodes | ( | ) |
Returns the number of Dirichlet boundary conditions on nodes.
unsigned long DirichletBC::GetNumberDBCSurfaces | ( | ) |
Returns the number of Dirichlet boundary conditions on geometric surfaces.
DirichletBC & DirichletBC::operator= | ( | DirichletBC & | Instance | ) |
Copies the contents of Instance to te current object..
[in] | Instance | - instance of the DirichletBC class whose data will be copied to the current object. |
void DirichletBC::Print | ( | FILE * | File, |
char * | Message = "" , |
||
DBC_E | DBCFlag = NHDBC |
||
) |
Prints class data in ASCII format.
[in] | File | - pointer to the ASCII file. |
[in] | Message | - optional message. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions |
void DirichletBC::Read | ( | FILE * | DEFFile, |
DOFs & | DOFsAttributes, | ||
DBC_E | DBCFlag | ||
) |
Reads class data from the .def ASCII file.
[in] | DEFFile | - pointer to the .def file. |
[in] | DOFsAttributes | - names and cardinalities of the dofs used in the model. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions |
void DirichletBC::SetDBCEdges | ( | unsigned long | DBCIndex, |
unsigned long | ElementNumber, | ||
unsigned long | EdgeNumber, | ||
unsigned long | NumberDOFs, | ||
char ** | DOFNames, | ||
DBC_E | DBCFlag = HDBC , |
||
double * | NumericIntensity = 0 |
||
) |
Sets the Dirichlet boundary conditions on element edges.
[in] | DBCIndex | - index for the boundary condition to be set. |
[in] | ElementNumber | - global element number with the BC. |
[in] | EdgeNumber | - local edge number. |
[in] | NumberDOFs | - number of dofs with the BC. |
[in] | DOFNames | - names of the dofs with loads. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions. |
[in] | NumericIntensity | - array with the numeric load intensities. |
void DirichletBC::SetDBCEntity | ( | Entity_E | Entity, |
unsigned long | DBCIndex, | ||
unsigned long | EntityNumber, | ||
unsigned long | LocalEntityNumber, | ||
unsigned long | NumberDOFs, | ||
char ** | DOFNames, | ||
DBC_E | DBCFlag = HDBC , |
||
double * | NumericIntensity = 0 |
||
) |
Sets the Dirichlet boundary conditions on the given entity type.
[in] | Entity | - entity type. |
[in] | DBCIndex | - index for the boundary condition to be set. |
[in] | EntitytNumber | - entity number with the BC. |
[in] | LocalEntityNumber | - local entity number. |
[in] | NumberDOFs | - number of dofs with the BC. |
[in] | DOFNames | - names of the dofs with loads. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions. |
[in] | NumericIntensity | - array with the numeric load intensities. |
void DirichletBC::SetDBCFaces | ( | unsigned long | DBCIndex, |
unsigned long | ElementNumber, | ||
unsigned long | FaceNumber, | ||
unsigned long | NumberDOFs, | ||
char ** | DOFNames, | ||
DBC_E | DBCFlag = HDBC , |
||
double * | NumericIntensity = 0 |
||
) |
Sets the Dirichlet boundary conditions on element faces.
[in] | DBCIndex | - index for the boundary condition to be set. |
[in] | ElementNumber | - global element number with the BC. |
[in] | FaceNumber | - local face number. |
[in] | NumberDOFs | - number of dofs with the BC. |
[in] | DOFNames | - names of the dofs with loads. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions. |
[in] | NumericIntensity | - array with the numeric load intensities. |
void DirichletBC::SetDBCKeypoints | ( | unsigned long | DBCIndex, |
unsigned long | KeypointNumber, | ||
unsigned long | NumberDOFs, | ||
char ** | DOFNames, | ||
DBC_E | DBCFlag = HDBC , |
||
double * | Intensity = 0 |
||
) |
Sets the Dirichlet boundary conditions on geometric keypoints.
[in] | DBCIndex | - index for the boundary condition to be set. |
[in] | KeypointNumber | - keypoint number with the BC. |
[in] | NumberDOFs | - number of dofs with the BC. |
[in] | DOFNames | - names of the dofs with loads. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions. |
[in] | Intensity | - array with the numeric load intensities. |
void DirichletBC::SetDBCLines | ( | unsigned long | DBCIndex, |
unsigned long | LineNumber, | ||
unsigned long | NumberDOFs, | ||
char ** | DOFNames, | ||
DBC_E | DBCFlag = HDBC , |
||
double * | NumericIntensity = 0 |
||
) |
Sets the Dirichlet boundary conditions on geometric lines.
[in] | DBCIndex | - index for the boundary condition to be set. |
[in] | LineNumber | - line number with the BC. |
[in] | NumberDOFs | - number of dofs with the BC. |
[in] | DOFNames | - names of the dofs with loads. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions. |
[in] | NumericIntensity | - array with the numeric load intensities. |
void DirichletBC::SetDBCNodes | ( | unsigned long | DBCIndex, |
unsigned long | NodeNumber, | ||
unsigned long | NumberDOFs, | ||
char ** | DOFNames, | ||
DBC_E | DBCFlag = HDBC , |
||
double * | Intensity = 0 |
||
) |
Sets the Dirichlet boundary conditions on nodes.
[in] | DBCIndex | - index for the boundary condition to be set. |
[in] | NodeNumber | - number of the node with the BC. |
[in] | NiumberDOFs | - number of dofs with the BC. |
[in] | DOFNames | 0 names of the dofs with loads. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions. |
[in] | Intensity | - array with the load intensities. |
void DirichletBC::SetDBCSurfaces | ( | unsigned long | DBCIndex, |
unsigned long | SurfaceNumber, | ||
unsigned long | NumberDOFs, | ||
char ** | DOFNames, | ||
DBC_E | DBCFlag = HDBC , |
||
double * | NumericIntensity = 0 |
||
) |
Sets the Dirichlet boundary conditions on geometric surfaces.
[in] | DBCIndex | - index for the boundary condition to be set. |
[in] | SurfaceNumber | - surface number with the BC. |
[in] | NumberDOFs | - number of dofs with the BC. |
[in] | DOFNames | - names of the dofs with loads. |
[in] | DBCFlag | - Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions. |
[in] | SymbNumFlag | - array with 's' for symbolic load intensities and 'n'for numerical load intensities. |
[in] | SymbolicIntensity | - array with the symbolic load intensities. |
[in] | NumericIntensity | - array with the numeric load intensities. |
void DirichletBC::SetNumberDBCEdges | ( | unsigned long | NumberDBCEdges | ) |
Sets the number of Dirichlet boundary conditions on element edges.
[in] | NumberDBCEdges | - Number of Dirichlet boundary conditions on edges. |
void DirichletBC::SetNumberDBCEntity | ( | Entity_E | Entity, |
unsigned long | NumberDBCEntity | ||
) |
Sets the number of Dirichlet boundary conditions for the given entity type.
[in] | Entity | - entity type (NODE, EDGE, FACE, KEYPOINT, LINE, SURFACE). |
[in] | NumberDBCEntity | - Number of Dirichlet boundary conditions on given entity type. |
void DirichletBC::SetNumberDBCFaces | ( | unsigned long | NumberDBCFaces | ) |
Sets the number of Dirichlet boundary conditions on element faces.
[in] | NumberDBCNodes | - Number of Dirichlet boundary conditions on faces. |
void DirichletBC::SetNumberDBCKeypoints | ( | unsigned long | NumberDBCKeypoints | ) |
Sets the number of Dirichlet boundary conditions on geometric keypoints.
[in] | NumberDBCKeypoints | - Number of Dirichlet boundary conditions on keypoints. |
void DirichletBC::SetNumberDBCLines | ( | unsigned long | NumberDBCLines | ) |
Sets the number of Dirichlet boundary conditions on geometric lines.
[in] | NumberDBCLines | - Number of Dirichlet boundary conditions on lines. |
void DirichletBC::SetNumberDBCNodes | ( | unsigned long | NumberDBCNodes | ) |
Sets the number of Dirichlet boundary conditions on nodes.
[in] | NumberDBCNodes | - Number of Dirichlet boundary conditions on nodes. |
void DirichletBC::SetNumberDBCSurfaces | ( | unsigned long | NumberDBCSurfaces | ) |
Sets the number of Dirichlet boundary conditions on geometric surfaces.
[in] | NumberDBCSurfaces | - Number of Dirichlet boundary conditions on surfaces. |