Boundary conditions. More...

#include <boundaryConditions.hh>

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

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, Boundaryboundaries_
 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.

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() [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 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 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 Adds boundary condition for a set of attributes
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 >.

Member Data Documentation

◆ boundaries_

std::map<uint, Boundary> concepts::BoundaryConditions::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:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich