hp2FEM  0.1
Public Member Functions | Public Attributes | Protected Attributes
BoundaryConditions Class Reference

Class that stores and manages the homogeneuos and non-homogeneous Dirichlet boundary conditions applied on the geometric and finite element entities of the model. More...

#include <BoundaryConditions.h>

Collaboration diagram for BoundaryConditions:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BoundaryConditions ()
 Default constructor.
 BoundaryConditions (BoundaryConditions &Instance)
 Copy-initializer constructor.
 ~BoundaryConditions ()
 Destructor.
BoundaryConditionsoperator= (BoundaryConditions &Instance)
 Copies the contents of Instance to the current object.
unsigned long GetNumberDBCNodes (DBC_E DBCFlag)
 Returns the number of Dirichlet boundary conditions on nodes.
unsigned long GetNumberDBCEdges (DBC_E DBCFlag)
 Returns the number of Dirichlet boundary conditions on element edges.
unsigned long GetNumberDBCFaces (DBC_E DBCFlag)
 Returns the number of Dirichlet boundary conditions on element faces.
unsigned long GetNumberDBCKeypoints (DBC_E DBCFlag)
 Returns the number of Dirichlet boundary conditions on geometric keypoints.
unsigned long GetNumberDBCLines (DBC_E DBCFlag)
 Returns the number of Dirichlet boundary conditions on geometric lines.
unsigned long GetNumberDBCSurfaces (DBC_E DBCFlag)
 Returns the number of Dirichlet boundary conditions on geometric surfaces.
unsigned long GetNumberDBC (Entity_E Entity, DBC_E DBCFlag)
 Returns the number of Dirichlet boundary conditions on the given entity type.
unsigned long GetTotalNumberDBCs (DBC_E DBCFlag)
 Returns the total number of Dirichlet boundary conditions applied to the model for all entity types.
Array< LoadIntensity > & GetDBCNodes (DBC_E DBCFlag)
 Returns the Dirichlet boundary conditions applied to the nodes as an array of LoadIntensity class.
Array< LoadIntensity > & GetDBCEdges (DBC_E DBCFlag)
 Returns the Dirichlet boundary conditions applied to the edges of elements as an array of LoadIntensity class.
Array< LoadIntensity > & GetDBCFaces (DBC_E DBCFlag)
 Returns the Dirichlet boundary conditions applied to the faces of elements as an array of LoadIntensity class.
Array< LoadIntensity > & GetDBCKeypoints (DBC_E DBCFlag)
 Returns the Dirichlet boundary conditions applied to the geometric keypoints as an array of the LoadIntensity class.
Array< LoadIntensity > & GetDBCLines (DBC_E DBCFlag)
 Returns the Dirichlet boundary conditions applied to the geometric lines as an array of the LoadIntensity class.
Array< LoadIntensity > & GetDBCSurfaces (DBC_E DBCFlag)
 Returns the Dirichlet boundary conditions applied to the geometric surfaces as an array of the LoadIntensity class.
Array< LoadIntensity > & GetDBC (Entity_E Entity, DBC_E DBCFlag)
 Returns the Dirichlet boundary conditions on the given entity type as an array of the LoadIntensity class.
DirichletBCGetDBCs (DBC_E DBCFlag)
 Returns all the Dirichlet boundary conditions as an array of the DirichletBC class.
void Read (FILE *DEFFile, DOFs &DOFsAttributes)
 Reads class data from the .def ASCII file.
void Print (FILE *File, char *Message="")
 Prints class data in ASCII format.

Public Attributes

DirichletBCtheDirichletBC

Protected Attributes

DirichletBC HOMDBC
 The homogeneous Dirichlet BCs applied on the geometric and finite element entities,.
DirichletBC NOHOMDBC
 The non-homogeneous Dirichlet BCs applied on the geometric and finite element entities,.

Detailed Description

Class that stores and manages the homogeneuos and non-homogeneous Dirichlet boundary conditions applied on the geometric and finite element entities of the model.

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

Constructor & Destructor Documentation

Copy-initializer constructor.

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

Member Function Documentation

Array< LoadIntensity > & BoundaryConditions::GetDBC ( Entity_E  Entity,
DBC_E  DBCFlag 
)

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).
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the reference to the array of LoadIntensity for the given entity type.

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

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns a reference to the array of the LoadIntensity.class for element edges,

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

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns a reference to the array of the LoadIntensity.class for element faces,

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

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns a reference to the array of the LoadIntensity.class for geometric keypoints.

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

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns a reference to the array of the LoadIntensity.class for geometric lines.

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

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns a reference to the array of the LoadIntensity.class for nodes,

Returns all the Dirichlet boundary conditions as an array of the DirichletBC class.

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the reference to the array of DirichletBC.

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

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns a reference to the array of the LoadIntensity.class for geometric surfaces.
unsigned long BoundaryConditions::GetNumberDBC ( Entity_E  Entity,
DBC_E  DBCFlag 
)

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

Parameters:
[in]Entity- entity type (NODE, EDGE, FACE, KEYPOINT, LINE, SURFACE).
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the number of homogeneous or non-homogeneous BCs on the given entity type.
unsigned long BoundaryConditions::GetNumberDBCEdges ( DBC_E  DBCFlag)

Returns the number of Dirichlet boundary conditions on element edges.

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the number of homogeneous or non-homogeneous BCs on edges.
unsigned long BoundaryConditions::GetNumberDBCFaces ( DBC_E  DBCFlag)

Returns the number of Dirichlet boundary conditions on element faces.

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the number of homogeneous or non-homogeneous BCs on faces.
unsigned long BoundaryConditions::GetNumberDBCKeypoints ( DBC_E  DBCFlag)

Returns the number of Dirichlet boundary conditions on geometric keypoints.

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the number of homogeneous or non-homogeneous BCs on keypoints.
unsigned long BoundaryConditions::GetNumberDBCLines ( DBC_E  DBCFlag)

Returns the number of Dirichlet boundary conditions on geometric lines.

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the number of homogeneous or non-homogeneous BCs on lines.
unsigned long BoundaryConditions::GetNumberDBCNodes ( DBC_E  DBCFlag)

Returns the number of Dirichlet boundary conditions on nodes.

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the number of homogeneous or non-homogeneous BCs on nodes.
unsigned long BoundaryConditions::GetNumberDBCSurfaces ( DBC_E  DBCFlag)

Returns the number of Dirichlet boundary conditions on geometric surfaces.

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the number of homogeneous or non-homogeneous BCs on surfaces.
unsigned long BoundaryConditions::GetTotalNumberDBCs ( DBC_E  DBCFlag)

Returns the total number of Dirichlet boundary conditions applied to the model for all entity types.

Parameters:
[in]DBCFlag- Flag to indicate homogeneous (HDBC) or non-homogeneous (NHDBC) Dirichlet boundary conditions,
Returns:
Returns the total number of Dirichlet BCs.
BoundaryConditions & BoundaryConditions::operator= ( BoundaryConditions Instance)

Copies the contents of Instance to the current object.

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

Prints class data in ASCII format.

Parameters:
[in]File- pointer to the ASCII file.
[in]Message- optional message.
void BoundaryConditions::Read ( FILE *  DEFFile,
DOFs DOFsAttributes 
)

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.

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