|
| PiecewiseConstFormula (const F dflt_value=0) |
| Constructor with default value dflt_value .
|
|
| PiecewiseConstFormula (const HashMap< F > formula, const F dflt_value=0) |
|
| PiecewiseConstFormula (const std::map< int, F > formula, const F dflt_value=0) |
|
virtual PiecewiseConstFormula< F > * | clone () const |
| Virtual copy constructor.
|
|
virtual F | operator() (const Connector &cell, const Real p, const Real t=0.0) const |
| Gives the constant in an particular cell.
|
|
virtual F | operator() (const Connector &cell, const Real2d &p, const Real t=0.0) const |
|
virtual F | operator() (const Connector &cell, const Real3d &p, const Real t=0.0) const |
|
virtual const F & | operator[] (const uint attrib) const |
|
virtual F & | operator[] (const uint attrib) |
|
template<class H > |
PiecewiseConstFormula< F > & | operator*= (const H &factor) |
|
virtual F | operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const |
|
virtual F | operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const |
|
virtual F | operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const |
|
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0 |
|
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0 |
|
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0 |
|
virtual const F & | dflt_value () const |
| Gives default value.
|
|
virtual F & | dflt_value () |
| Gives default value.
|
|
template<
typename F = Real>
class concepts::PiecewiseConstFormula< F >
Piecewise constant function defined by the attribute of a cell.
This is a proper function for piecewise constant material coefficients, which are most needed in linear and bilinear forms.
Because in linear and bilinear forms are loops over the elements, the appropiate topological cell (connector), respectively the attribute, is known and so it's possible to avoid the searching und to use operator()
with attrib
as input.
In refined meshes the children of a cell gets the same constant due to the handing down the attributes.
If the constant is asked for an element, which can't be find in the list, the default value set in the constructor, is taken. If the default value is not given, it is created by the constructor of the type F
, this is mostly 0.
- Author
- Kersten Schmidt, 2004
- Examples
- BGT_0.cc, and exactDtN.cc.
Definition at line 84 of file formula.hh.