Base class for piecewise defined formula, which are a function of a FE function. More...
#include <formula.hh>


Public Types | |
| typedef concepts::Realtype< H > ::type | G |
| typedef H | value_type |
Public Member Functions | |
| virtual PiecewiseFormulaBase< H > * | clone () const =0 |
| Virtual copy constructor. | |
| virtual const H & | dflt_value () const |
| Gives default value. | |
| virtual H & | dflt_value () |
| Gives default value. | |
| virtual H | operator() (const ElementWithCell< concepts::Realtype< H >::type > &elm, const Real3d &p, const Real t=0.0) const =0 |
| virtual H | operator() (const ElementWithCell< concepts::Realtype< H >::type > &elm, const Real2d &p, const Real t=0.0) const =0 |
| virtual H | operator() (const ElementWithCell< concepts::Realtype< H >::type > &elm, const Real p, const Real t=0.0) const =0 |
| Evaluates the formula. | |
| virtual H | operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const |
| virtual H | operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const =0 |
| virtual H | operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const |
| virtual H | operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const |
| virtual H | operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const =0 |
| virtual H | operator() (const Connector &cntr, const Real p, const Real t=0.0) const =0 |
| Gives the value in an particular cell on a particular point. | |
| PiecewiseFormulaVectorBase (const Space< G > &spc, const Vector< F > &coeff, const ElementFunction< I, G > &fun) | |
| Constructor. | |
Protected Member Functions | |
| const ElementWithCell< G > * | element_ (const Connector &cell) const |
Returns pointer to the element to which the cell cell or one of their children belongs. | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Protected Attributes | |
| Array< F > | coeff_ |
| Solution vector. | |
| std::map< uint, const ElementWithCell< G > * > | elm_ |
| Mapping from cell key to the element. | |
| const ElementFunction< I, G > * | fun_ |
| Function of the FE function. | |
| const Space< G > & | spc_ |
| Space. | |
Base class for piecewise defined formula, which are a function of a FE function.
| F | type of the coefficients |
| G | type of the space, i.e. that of the T matrices |
| H | type of the formula, is determined by derived classes |
| I | type of the element function |
Definition at line 31 of file formula.hh.
typedef concepts::Realtype<H >::type concepts::PiecewiseFormulaBase< H >::G [inherited] |
Definition at line 40 of file piecewiseFormula.hh.
typedef H concepts::ElementFormula< H , concepts::Realtype< H >::type >::value_type [inherited] |
Definition at line 31 of file elementFormula.hh.
| concepts::PiecewiseFormulaVectorBase< F, G, H, I >::PiecewiseFormulaVectorBase | ( | const Space< G > & | spc, |
| const Vector< F > & | coeff, | ||
| const ElementFunction< I, G > & | fun | ||
| ) |
| virtual PiecewiseFormulaBase<H >* concepts::PiecewiseFormulaBase< H >::clone | ( | ) | const [pure virtual, inherited] |
Virtual copy constructor.
Implements concepts::ElementFormula< H, concepts::Realtype< H >::type >.
Implemented in concepts::PiecewiseFormulaVector< 1, F, G, H >.
| virtual const H & concepts::PiecewiseFormulaBase< H >::dflt_value | ( | ) | const [inline, virtual, inherited] |
Gives default value.
Definition at line 76 of file piecewiseFormula.hh.
| virtual H & concepts::PiecewiseFormulaBase< H >::dflt_value | ( | ) | [inline, virtual, inherited] |
Gives default value.
Definition at line 78 of file piecewiseFormula.hh.
| const ElementWithCell< G > * concepts::PiecewiseFormulaVectorBase< F, G, H, I >::element_ | ( | const Connector & | cell | ) | const [protected] |
Returns pointer to the element to which the cell cell or one of their children belongs.
If not such a element exists, null pointer is returned.
Definition at line 77 of file formula.hh.

| virtual std::ostream& concepts::PiecewiseFormulaBase< H >::info | ( | std::ostream & | os | ) | const [protected, virtual, inherited] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| virtual H concepts::ElementFormula< H , concepts::Realtype< H >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< H >::type > & | elm, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
| virtual H concepts::ElementFormula< H , concepts::Realtype< H >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< H >::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 |
| virtual H concepts::PiecewiseFormulaBase< H >::operator() | ( | const Connector & | cntr, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
Implemented in concepts::PiecewiseFormulaVector< 1, F, G, H >.
| virtual H concepts::PiecewiseFormulaBase< H >::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 H concepts::PiecewiseFormulaBase< H >::operator() | ( | const Connector & | cntr, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
Implemented in concepts::PiecewiseFormulaVector< 1, F, G, H >.
| virtual H concepts::PiecewiseFormulaBase< H >::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 H concepts::PiecewiseFormulaBase< H >::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 H concepts::ElementFormula< H , concepts::Realtype< H >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< H >::type > & | elm, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
| virtual H concepts::PiecewiseFormulaBase< H >::operator() | ( | const Connector & | cntr, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
Gives the value in an particular cell on a particular point.
| cell | topological cell |
| p | physical coordinates |
| t | time |
Implemented in concepts::PiecewiseFormulaVector< 1, F, G, H >.
Array<F> concepts::PiecewiseFormulaVectorBase< F, G, H, I >::coeff_ [protected] |
Solution vector.
Definition at line 41 of file formula.hh.
std::map<uint, const ElementWithCell<G>*> concepts::PiecewiseFormulaVectorBase< F, G, H, I >::elm_ [protected] |
Mapping from cell key to the element.
Definition at line 45 of file formula.hh.
const ElementFunction<I,G>* concepts::PiecewiseFormulaVectorBase< F, G, H, I >::fun_ [protected] |
Function of the FE function.
Definition at line 43 of file formula.hh.
const Space<G>& concepts::PiecewiseFormulaVectorBase< F, G, H, I >::spc_ [protected] |
Definition at line 39 of file formula.hh.