#include <formula.hh>


Public Types | |
| typedef Realtype< Real >::type | G |
| typedef Real | value_type |
Public Member Functions | |
| BoxSin () | |
| Constructor. | |
| concepts::Formula< Real > * | clone () const |
| returns a new BoxSin | |
| virtual const Real & | dflt_value () const |
| Gives default value. | |
| virtual Real & | dflt_value () |
| Gives default value. | |
| virtual Real | operator() (const ElementWithCell< concepts::Realtype< Real >::type > &elm, const Real2d &p, const Real t=0.0) const =0 |
| virtual Real | operator() (const ElementWithCell< concepts::Realtype< Real >::type > &elm, const Real p, const Real t=0.0) const =0 |
| Evaluates the formula. | |
| virtual Real | operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const |
| virtual Real | operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const |
| virtual Real | operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const |
| Real | operator() (const concepts::Real3d &x, const Real t=0.0) const |
| Application operator for 3D. | |
| Real | operator() (const concepts::Real2d &x, const Real t=0.) const |
| Application operator for 2D. Not to be applied. | |
| virtual Real | operator() (const ElementWithCell< concepts::Realtype< Real >::type > &elm, const Real3d &p, const Real t=0.0) const =0 |
| Real | operator() (const Real x, const Real t=0.) const |
| Application operator for 1D. Not to be applied. | |
| virtual Real | operator() (const Real p, const Real t=0.0) const =0 |
| Application operator. | |
| virtual Real | operator() (const Real2d &p, const Real t=0.0) const =0 |
| Application operator. | |
| virtual Real | operator() (const Real3d &p, const Real t=0.0) const =0 |
| Application operator. | |
| virtual Real | operator() (const Connector &cntr, const Real p, const Real t=0.0) const |
| Convenience implementation, that by default ignores its elm param. | |
| virtual Real | operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const |
| Convenience implementation, that by default ignores its elm param. | |
| virtual Real | operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const |
| Convenience implementation, that by default ignores its elm param. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| const Real | pi_ |
Initial condition and exact solution for linear advection.
Definition at line 16 of file formula.hh.
typedef Realtype<Real >::type concepts::Formula< Real >::G [inherited] |
Reimplemented from concepts::PiecewiseFormulaBase< Real >.
Definition at line 35 of file formula.hh.
typedef Real concepts::Formula< Real >::value_type [inherited] |
Reimplemented from concepts::ElementFormula< Real, concepts::Realtype< Real >::type >.
Definition at line 34 of file formula.hh.
| BoxSin::BoxSin | ( | ) | [inline] |
Constructor.
Definition at line 19 of file formula.hh.
| concepts::Formula<Real>* BoxSin::clone | ( | ) | const [inline, virtual] |
returns a new BoxSin
Implements concepts::Formula< Real >.
Definition at line 21 of file formula.hh.

| virtual const Real & concepts::PiecewiseFormulaBase< Real >::dflt_value | ( | ) | const [inline, virtual, inherited] |
Gives default value.
Definition at line 76 of file piecewiseFormula.hh.
| virtual Real & concepts::PiecewiseFormulaBase< Real >::dflt_value | ( | ) | [inline, virtual, inherited] |
Gives default value.
Definition at line 78 of file piecewiseFormula.hh.
| virtual std::ostream& concepts::PiecewiseFormulaBase< Real >::info | ( | std::ostream & | os | ) | const [protected, virtual, inherited] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::BesselJ< n >, concepts::BesselY< n >, concepts::ParsedFormula< Real >, concepts::HField_CircularCoil, concepts::DivGradHField_CircularCoil, concepts::PiecewiseConstFormula< Real >, concepts::PiecewiseFormula< Real >, and concepts::PiecewiseFormulaFun< Real, Real >.
| virtual Real concepts::ElementFormula< Real , concepts::Realtype< Real >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< Real >::type > & | elm, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
| virtual Real concepts::ElementFormula< Real , concepts::Realtype< Real >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< Real >::type > & | elm, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
| virtual Real concepts::ElementFormula< Real , concepts::Realtype< Real >::type >::operator() | ( | const ElementWithCell< concepts::Realtype< Real >::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 Real concepts::PiecewiseFormulaBase< Real >::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 Real concepts::PiecewiseFormulaBase< Real >::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 Real concepts::PiecewiseFormulaBase< Real >::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 Real concepts::Formula< Real >::operator() | ( | const Connector & | cntr, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Convenience implementation, that by default ignores its elm param.
Implements concepts::PiecewiseFormulaBase< Real >.
Definition at line 57 of file formula.hh.
| Real BoxSin::operator() | ( | const Real | x, |
| const Real | t = 0. |
||
| ) | const [inline] |
Application operator for 1D. Not to be applied.
Definition at line 23 of file formula.hh.
| Real BoxSin::operator() | ( | const concepts::Real3d & | x, |
| const Real | t = 0.0 |
||
| ) | const [inline] |
Application operator for 3D.
Calculates initial condition and exact solution for linear advection.
Definition at line 31 of file formula.hh.
| virtual Real concepts::Formula< Real >::operator() | ( | const Real3d & | p, |
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
Application operator.
Evaluates the formula.
| p | Point in space |
| t | Point in time |
Implemented in concepts::BesselJ< n >, concepts::BesselY< n >, concepts::FormulaLiCo, concepts::ParsedFormula< Real >, concepts::HField_CircularCoil, and concepts::DivGradHField_CircularCoil.
| virtual Real concepts::Formula< Real >::operator() | ( | const Real2d & | p, |
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
Application operator.
Evaluates the formula.
| p | Point in space |
| t | Point in time |
Implemented in concepts::BesselJ< n >, concepts::BesselY< n >, concepts::FormulaLiCo, concepts::ParsedFormula< Real >, concepts::HField_CircularCoil, and concepts::DivGradHField_CircularCoil.
| virtual Real concepts::Formula< Real >::operator() | ( | const Real | p, |
| const Real | t = 0.0 |
||
| ) | const [pure virtual, inherited] |
Application operator.
Evaluates the formula.
| p | Point in space |
| t | Point in time |
Implemented in concepts::BesselJ< n >, concepts::BesselY< n >, concepts::FormulaLiCo, concepts::ParsedFormula< Real >, concepts::HField_CircularCoil, and concepts::DivGradHField_CircularCoil.
| virtual Real concepts::Formula< Real >::operator() | ( | const Connector & | cntr, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Convenience implementation, that by default ignores its elm param.
Implements concepts::PiecewiseFormulaBase< Real >.
Definition at line 54 of file formula.hh.
| Real BoxSin::operator() | ( | const concepts::Real2d & | x, |
| const Real | t = 0. |
||
| ) | const [inline] |
Application operator for 2D. Not to be applied.
Definition at line 25 of file formula.hh.
| virtual Real concepts::Formula< Real >::operator() | ( | const Connector & | cntr, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual, inherited] |
Convenience implementation, that by default ignores its elm param.
Implements concepts::PiecewiseFormulaBase< Real >.
Definition at line 51 of file formula.hh.
const Real BoxSin::pi_ [private] |
Definition at line 35 of file formula.hh.