#include <boundaryConditions.hh>
Public Member Functions | |
BoundaryConditions () | |
BoundaryConditions (const BoundaryConditions &bnd) | |
Copy constructor. | |
virtual | ~BoundaryConditions () |
virtual Boundary | operator() (Attribute attrib) const |
void | add (const Set< Attribute > &attrib, const Boundary &bcObject) |
Adds boundary condition for a set of attributes. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Boundary conditions.
The boundary conditions itself are held in a dynamic array. The application operator returns a boundary condition object based on its attribute.
Adding boundary conditions in the setup of the problem is done using the add method.
Since the default attribute for a free element of the topology is 0, be carefull with using the attribute 0 in the defintion of the boundary conditions.
Definition at line 38 of file boundaryConditions.hh.
concepts::BoundaryConditions::BoundaryConditions | ( | ) |
Default constructor. Sets up the dynamic array.
|
virtual |
void concepts::BoundaryConditions::add | ( | const Set< Attribute > & | attrib, |
const Boundary & | bcObject | ||
) |
Adds boundary condition for a set of attributes.
Adds a boundary condition with this attribute to the list of boundary conditions.
Be carefull: boundary condition objects with the same attribute overwrite each other, the latest is valid.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Semantics< Boundary >.
Application operator.
attrib | Attribute of a topolgical object (ie. vertex or edge) |
Implements concepts::Semantics< Boundary >.