#include <boundary.hh>
Public Types | |
enum | boundaryTypes { FREE = 0 , DIRICHLET , NEUMANN , CONNECT , SPHERESURFACEQUAD , MAX_TYPE } |
The different boundary condition types. More... | |
Public Member Functions | |
Boundary () | |
Boundary (const enum boundaryTypes type) | |
Boundary (const enum boundaryTypes type, const Formula< Real > &frm) | |
Boundary (const enum boundaryTypes type, const char *frm) | |
Boundary (const Boundary &bnd) | |
Copy constructor. | |
enum boundaryTypes | type () const |
Returns the type of the boundary condition. | |
std::string | typeStr () const |
Return the type of the boundary condition as output string. | |
virtual Boundary & | operator= (const Boundary &bnd) |
Assignment operator. | |
bool | isNull () |
Real | operator() (const Real x, const Real t=0.0) const |
Real | operator() (const Real2d &x, const Real t=0.0) const |
Real | operator() (const Real3d &x, const Real t=0.0) const |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Class to describe an element of the boundary. A boundary has a type (Neumann, Dirichlet) and a function associated.
Boundary conditions of type Robin are not yet implemented.
It is possible to use this class in the following way:
Boundary(Boundary::NEUMANN, ParsedFormula("(x)"));
since the ParsedFormula
is cloned (ie. it is copied) before the temporary object is destroyed.
Definition at line 35 of file boundary.hh.
The different boundary condition types.
Definition at line 38 of file boundary.hh.
concepts::Boundary::Boundary | ( | ) |
Default constructor. Initializes the type to FREE.
concepts::Boundary::Boundary | ( | const enum boundaryTypes | type | ) |
Constructor. The type of the boundary condition must be one of FREE, DIRICHLET, NEUMANN or CONNECT. In this constructor, no formula can be given. It is always evaluated to 0 by default.
concepts::Boundary::Boundary | ( | const enum boundaryTypes | type, |
const Formula< Real > & | frm | ||
) |
concepts::Boundary::Boundary | ( | const enum boundaryTypes | type, |
const char * | frm | ||
) |
Constructor. The type of the boundary condition must be one of FREE, DIRICHLET or NEUMANN. The formula can be given as a string which will be used to create a ParsedFormula
.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
|
inline |
Definition at line 82 of file boundary.hh.
Application operator. Calculates the value of the boundary function at a specific point.
Application operator. Calculates the value of the boundary function at a specific point.
Application operator. Calculates the value of the boundary function at a specific point.
|
inline |
Returns the type of the boundary condition.
Definition at line 74 of file boundary.hh.