u2d_DirichletCondition Class Reference

List of all members.

Public Member Functions

 u2d_DirichletCondition (const u2d_DirichletCondition &orig)
int setSide (int side_id)
bool isDirichlet (int side_id)
void generateNodes (u2d_Mesh *mesh)

Public Attributes

dense_vector< int > dirichlet_nodes
set< int > dirichlet_unique_nodes

Member Function Documentation

void u2d_DirichletCondition::generateNodes ( u2d_Mesh mesh  ) 

Generates the nodes list where to enforece Dirichlet condition.

bool u2d_DirichletCondition::isDirichlet ( int  side_id  ) 

Say if a given side id is in the list of sides where to enforce the Disichlet boundary condition.

Returns:
Return true if the side_id is in the list and Dirichlet condtion must be enforced on it. Return false otherwise.
int u2d_DirichletCondition::setSide ( int  side_id  ) 

Set the given side id as a side where to enforce the DirichletCondition.

Returns:
the current number of sides that have been set. i.e. The total number of sides where the Dirichlet boundary condition is to be enforced: DiricheletCondition dc; dc->setside(4) // return 1 dc->setside(1) // return 2 dc->setside(5) // return 3

The documentation for this class was generated from the following files:
 All Classes Functions
Generated by  doxygen 1.6.2-20100208