Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::BoundaryConditions Class Reference

#include <boundaryConditions.hh>

Inheritance diagram for concepts::BoundaryConditions:
concepts::Semantics< Boundary > concepts::OutputOperator

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.
 

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.

See also
Attribute for the attributes
Connector for the topological elements
Author
Philipp Frauenfelder
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()

concepts::BoundaryConditions::BoundaryConditions ( )

Default constructor. Sets up the dynamic array.

◆ ~BoundaryConditions()

virtual concepts::BoundaryConditions::~BoundaryConditions ( )
virtual

Destructor. Takes care of deleting all the formulae which are associated with the Boundary objects.

See also
Boundary

Member Function Documentation

◆ add()

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.

Parameters
attribAttribute of a topological object (ie. vertex, edge etc.)
bcObjectBoundary condition object associated to attrib
Examples
elasticity2D_tutorial.cc, howToGetStarted.cc, hpFEM2d-simple.cc, hpFEM2d.cc, hpFEM3d-EV.cc, inhomDirichletBCs.cc, inhomNeumannBCs.cc, linearFEM1d-simple.cc, linearFEM1d.cc, and parallelizationTutorial.cc.

◆ info()

virtual std::ostream & concepts::BoundaryConditions::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Semantics< Boundary >.

◆ operator()()

virtual Boundary concepts::BoundaryConditions::operator() ( Attribute  attrib) const
virtual

Application operator.

Parameters
attribAttribute 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 >.


The documentation for this class was generated from the following file: