concepts::BoundaryConditions Class Reference
#include <boundaryConditions.hh>
Public Member Functions | |
void | add (const Set< Attribute > &attrib, const Boundary &bcObject) |
Adds a boundary condition with this attribute to the list of boundary conditions. More... | |
BoundaryConditions () | |
Default constructor. More... | |
BoundaryConditions (const BoundaryConditions &bnd) | |
Copy constructor. More... | |
virtual Boundary | operator() (Attribute attrib) const |
Application operator. More... | |
virtual | ~BoundaryConditions () |
Destructor. More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
std::map< uint, Boundary > | boundaries_ |
Dynamic array of boundaries with type and formula. More... | |
Detailed Description
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.
- Examples
- elasticity2D_tutorial.cc, howToGetStarted.cc, hpFEM2d-simple.cc, hpFEM2d.cc, hpFEM3d-EV.cc, inhomDirichletBCs.cc, inhomNeumannBCs.cc, linearDG1d.cc, linearFEM1d-simple.cc, linearFEM1d.cc, and parallelizationTutorial.cc.
Definition at line 38 of file boundaryConditions.hh.
Constructor & Destructor Documentation
◆ BoundaryConditions() [1/2]
concepts::BoundaryConditions::BoundaryConditions | ( | ) |
Default constructor.
Sets up the dynamic array.
◆ BoundaryConditions() [2/2]
concepts::BoundaryConditions::BoundaryConditions | ( | const BoundaryConditions & | bnd | ) |
Copy constructor.
◆ ~BoundaryConditions()
|
virtual |
Member Function Documentation
◆ add()
void concepts::BoundaryConditions::add | ( | const Set< Attribute > & | attrib, |
const Boundary & | bcObject | ||
) |
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.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Semantics< Boundary >.
◆ operator()()
Application operator.
- Parameters
-
attrib Attribute of a topolgical object (ie. vertex or edge)
- Returns
- A reference to the boundary condition object associated to the given attribute.
Implements concepts::Semantics< Boundary >.
Member Data Documentation
◆ boundaries_
|
mutableprivate |
Dynamic array of boundaries with type and formula.
The index is the number given by the attribute of the topological element.
Definition at line 82 of file boundaryConditions.hh.
The documentation for this class was generated from the following file:
- geometry/boundaryConditions.hh