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
Philipp Frauenfelder
Examples,,,,,,,,,, and

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 ( )


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

See also

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.

attribAttribute of a topological object (ie. vertex, edge etc.)
bcObjectBoundary condition object associated to attrib Adds boundary condition for a set of attributes
Examples,,,,,,,,, and

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::Semantics< Boundary >.

◆ operator()()

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

Application operator.

attribAttribute of a topolgical object (ie. vertex or edge)
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_

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:
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich