hp2FEM  0.1
Public Member Functions | Protected Attributes
DirichletBC Class Reference

Class that stores the Dirichlet boundary conditions applied to th model. More...

#include <DirichletBC.h>

Collaboration diagram for DirichletBC:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DirichletBC ()
 Default constructor (without parameters).
 DirichletBC (DirichletBC &Instance)
 Copy-initializer constructor.
 ~DirichletBC ()
 Destructor.
DirichletBCoperator= (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< LoadIntensityDBCNodes
 Array that stores information about the nodes with Dirichlet boundary conditions.
Array< LoadIntensityDBCEdges
 Array that stores information about the edges with Dirichlet boundary conditions.
Array< LoadIntensityDBCFaces
 Array that stores information about the faces with Dirichlet boundary conditions.
Array< LoadIntensityDBCKeypoints
 Array that stores information about the geometric keypoints with Dirichlet boundary conditions.
Array< LoadIntensityDBCLines
 Array that stores information about the geometric lines with Dirichlet boundary conditions.
Array< LoadIntensityDBCSurfaces
 Array that stores information about the geometric surfaces with Dirichlet boundary conditions.

Detailed Description

Class that stores the Dirichlet boundary conditions applied to th model.

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

Constructor & Destructor Documentation

Copy-initializer constructor.

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

Member Function Documentation

Array< LoadIntensity > & DirichletBC::GetDBC ( Entity_E  Entity)

Returns the Dirichlet boundary conditions on the given entity type as an array of the LoadIntensity class.

Parameters:
[in]Entity- entity type (NODE, EDGE, FACE, KEYPOINT, LINE, SURFACE).
Returns:
Returns the reference to the array of LoadIntensity for the given entity type.

Returns the Dirichlet boundary conditions applied to the element edges as an array of the LoadIntensity class.

Returns:
Returns a reference to the array of the LoadIntensity.class for the element edges,

Returns the Dirichlet boundary conditions applied to the element faces as an array of the LoadIntensity class.

Returns:
Returns a reference to the array of the LoadIntensity.class for the element faces,

Returns the Dirichlet boundary conditions applied to the geometric keypoints as an array of the LoadIntensity class.

Returns:
Returns a reference to the array of the LoadIntensity.class for the geometric keypoints,

Returns the Dirichlet boundary conditions applied to the geometric lines as an array of the LoadIntensity class.

Returns:
Returns a reference to the array of the LoadIntensity.class for the geometric lines,

Returns the Dirichlet boundary conditions applied to the nodes as an array of the LoadIntensity class.

Returns:
Returns a reference to the array of the LoadIntensity.class for nodes,

Returns the Dirichlet boundary conditions applied to the geometric surfaces as an array of the LoadIntensity class.

Returns:
Returns a reference to the array of the LoadIntensity.class for the geometric surfaces,
unsigned long DirichletBC::GetNumberDBC ( Entity_E  Entity)

Returns the number of Dirichlet boundary conditions on the given entity type.

Parameters:
[in]Entity- entity type (NODE, EDGE, FACE, KEYPOINT, LINE, SURFACE).
Returns:
Returns the number of Dirichlet BCs on the given entity type.
unsigned long DirichletBC::GetNumberDBCEdges ( )

Returns the number of Dirichlet boundary conditions on element edges.

Returns:
Number of Dirichlet BCs on element edges.
unsigned long DirichletBC::GetNumberDBCFaces ( )

Returns the number of Dirichlet boundary conditions on element faces.

Returns:
Number of Dirichlet BCs on element faces.

Returns the number of Dirichlet boundary conditions on geometric keypoints..

Returns:
Number of Dirichlet BCs on geometric keypoints.
unsigned long DirichletBC::GetNumberDBCLines ( )

Returns the number of Dirichlet boundary conditions on geometric lines.

Returns:
Number of Dirichlet BCs on geometric lines.
unsigned long DirichletBC::GetNumberDBCNodes ( )

Returns the number of Dirichlet boundary conditions on nodes.

Returns:
Number of Dirichlet BCs on nodes.

Returns the number of Dirichlet boundary conditions on geometric surfaces.

Returns:
Number of Dirichlet BCs on geometric surfaces.
DirichletBC & DirichletBC::operator= ( DirichletBC Instance)

Copies the contents of Instance to te current object..

Parameters:
[in]Instance- instance of the DirichletBC class whose data will be copied to the current object.
Returns:
Reference to the current object.
void DirichletBC::Print ( FILE *  File,
char *  Message = "",
DBC_E  DBCFlag = NHDBC 
)

Prints class data in ASCII format.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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]DOFNames0 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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[in]NumberDBCLines- Number of Dirichlet boundary conditions on lines.
void DirichletBC::SetNumberDBCNodes ( unsigned long  NumberDBCNodes)

Sets the number of Dirichlet boundary conditions on nodes.

Parameters:
[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.

Parameters:
[in]NumberDBCSurfaces- Number of Dirichlet boundary conditions on surfaces.

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