Piecewise defined function defined by attributes. More...
#include <formula.hh>


Classes | |
| class | FormulaFactor |
Public Types | |
| typedef concepts::Realtype< F > ::type | G |
| typedef F | value_type |
Public Member Functions | |
| virtual PiecewiseFormula< F > * | clone () const |
| Virtual copy constructor. | |
| virtual const F & | dflt_value () const |
| Gives default value. | |
| virtual F & | dflt_value () |
| Gives default value. | |
| template<class H > | |
| void | multiply (const H &factor) |
| Multiplies all values with this factor. | |
| template<class H > | |
| void | multiply (const uint attrib, const H &factor) |
Multiply the formula with attribute attrib with this factor. | |
| 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< G > &elm, const Real3d &p, const Real t=0.0) const |
| virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const =0 |
| virtual F | operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const |
| virtual F | operator() (const Connector &cell, const Real p, const Real t=0.0) const |
| Gives the value 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 F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const =0 |
| Evaluates the formula. | |
| virtual F | operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const |
| PiecewiseFormula (const F dflt_value=0) | |
| void | set (const uint attrib, const F a) |
| void | set (const uint attrib, const Formula< F > &formula) |
| Set the constant in an particular cell. | |
| virtual | ~PiecewiseFormula () |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Protected Attributes | |
| HashMap< FormulaFactor > | formula_ |
| Mapping from the elements on to the formula. | |
Piecewise defined function defined by attributes.
For an attribute and so an area a formula is given.
Definition at line 214 of file formula.hh.
typedef concepts::Realtype<F>::type concepts::PiecewiseFormulaBase< F >::G [inherited] |
Reimplemented in concepts::Formula< F >, concepts::Formula< concepts::Point< Cmplx, 2 > >, concepts::Formula< Point< F, dim > >, concepts::Formula< Cmplx >, concepts::Formula< Real >, and concepts::Formula< Real2d >.
Definition at line 40 of file piecewiseFormula.hh.
typedef F concepts::ElementFormula< F, concepts::Realtype< F >::type >::value_type [inherited] |
Reimplemented in concepts::Formula< F >.
Definition at line 31 of file elementFormula.hh.
| concepts::PiecewiseFormula< F >::PiecewiseFormula | ( | const F | dflt_value = 0 | ) |
| virtual concepts::PiecewiseFormula< F >::~PiecewiseFormula | ( | ) | [virtual] |
| virtual PiecewiseFormula<F>* concepts::PiecewiseFormula< F >::clone | ( | ) | const [virtual] |
Virtual copy constructor.
Implements concepts::PiecewiseFormulaBase< F >.
| virtual const F& concepts::PiecewiseFormulaBase< F >::dflt_value | ( | ) | const [inline, virtual, inherited] |
Gives default value.
Definition at line 76 of file piecewiseFormula.hh.
| virtual F& concepts::PiecewiseFormulaBase< F >::dflt_value | ( | ) | [inline, virtual, inherited] |
Gives default value.
Definition at line 78 of file piecewiseFormula.hh.
| virtual std::ostream& concepts::PiecewiseFormula< F >::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::PiecewiseFormulaBase< F >.
| void concepts::PiecewiseFormula< F >::multiply | ( | const uint | attrib, |
| const H & | factor | ||
| ) |
Multiply the formula with attribute attrib with this factor.
Definition at line 267 of file formula.hh.
| void concepts::PiecewiseFormula< F >::multiply | ( | const H & | factor | ) |
Multiplies all values with this factor.
Definition at line 259 of file formula.hh.
| virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< F >::type > & | elm, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
| virtual F concepts::PiecewiseFormulaBase< F >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Definition at line 52 of file piecewiseFormula.hh.
| virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< F >::type > & | elm, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
| virtual F concepts::PiecewiseFormula< F >::operator() | ( | const Connector & | cell, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [virtual] |
Implements concepts::PiecewiseFormulaBase< F >.
| virtual F concepts::PiecewiseFormula< F >::operator() | ( | const Connector & | cell, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [virtual] |
Gives the value in an particular cell.
Implements concepts::PiecewiseFormulaBase< F >.
| virtual F concepts::PiecewiseFormula< F >::operator() | ( | const Connector & | cell, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [virtual] |
Implements concepts::PiecewiseFormulaBase< F >.
| virtual F concepts::PiecewiseFormulaBase< F >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Definition at line 58 of file piecewiseFormula.hh.
| virtual F concepts::PiecewiseFormulaBase< F >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Definition at line 47 of file piecewiseFormula.hh.
| virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< F >::type > & | elm, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
Evaluates the formula.
| elm | Element |
| p | Point in space in local element coordinates |
| t | Point in time |
| void concepts::PiecewiseFormula< F >::set | ( | const uint | attrib, |
| const Formula< F > & | formula | ||
| ) |
| void concepts::PiecewiseFormula< F >::set | ( | const uint | attrib, |
| const F | a | ||
| ) |
HashMap<FormulaFactor> concepts::PiecewiseFormula< F >::formula_ [protected] |
Mapping from the elements on to the formula.
Definition at line 254 of file formula.hh.