concepts::PiecewiseFormulaBase< F > Class Template Referenceabstract
Piecewise defined function on a number of cells. More...
#include <piecewiseFormula.hh>
Public Types | |
typedef concepts::Realtype< F >::type | G |
typedef F | value_type |
Public Member Functions | |
virtual PiecewiseFormulaBase< F > * | clone () const =0 |
Virtual constructor. More... | |
virtual ElementFormula< F, concepts::Realtype< F >::type > * | clone () const=0 |
Virtual copy constructor. More... | |
virtual F & | dflt_value () |
Gives default value. More... | |
virtual const F & | dflt_value () const |
Gives default value. More... | |
virtual F | 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. More... | |
virtual F | operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const =0 |
virtual F | operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const =0 |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
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 |
PiecewiseFormulaBase (const F dflt_value=(F) 0) | |
Constructor with default value. More... | |
virtual | ~PiecewiseFormulaBase () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
F | dflt_value_ |
default value More... | |
Detailed Description
template<typename F>
class concepts::PiecewiseFormulaBase< F >
Piecewise defined function on a number of cells.
This is a proper function for piecewise defined material coefficients or functions, which are most needed in linear and bilinear forms.
Because in linear and bilinear forms are loops over the elements, the appropiate cell is known and so it's possible to avoid the searching und to use operator()
with cell
as input.
If a value is asked for an cell, 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.
ElementFormula is more general than PiecewiseFormulaBase, it always takes an additional ElementWithCell argument. PiecewiseFormulaBase is derived from ElementFormula and will by default just ignore this argument.
Definition at line 42 of file piecewiseFormula.hh.
Member Typedef Documentation
◆ G
typedef concepts::Realtype<F>::type concepts::PiecewiseFormulaBase< F >::G |
Definition at line 45 of file piecewiseFormula.hh.
◆ value_type
|
inherited |
Definition at line 37 of file elementFormula.hh.
Constructor & Destructor Documentation
◆ PiecewiseFormulaBase()
concepts::PiecewiseFormulaBase< F >::PiecewiseFormulaBase | ( | const F | dflt_value = (F)0 | ) |
Constructor with default value.
Definition at line 92 of file piecewiseFormula.hh.
◆ ~PiecewiseFormulaBase()
|
virtual |
Definition at line 97 of file piecewiseFormula.hh.
Member Function Documentation
◆ clone() [1/2]
|
pure virtual |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
Implements concepts::Cloneable.
Implemented in concepts::ExplicitResidual< F >, concepts::LocalEstimator< F >, concepts::PiecewiseFormulaCombine< F, G, H, I >, concepts::PiecewiseFormulaFun< F, G >, concepts::PiecewiseFormulaFun< Cmplx, Real >, concepts::PiecewiseFormulaFun< Real, Real >, concepts::PiecewiseFormula< F >, concepts::PiecewiseFormula< concepts::Point >, concepts::PiecewiseFormula< Cmplx2d >, concepts::PiecewiseFormula< Cmplx >, concepts::PiecewiseFormula< Real >, concepts::PiecewiseConstFormula< concepts::Point >, concepts::PiecewiseConstFormula< Real >, concepts::PiecewiseFormula0< F >, hp2D::ImplicitEquilibratedA0< F >, and hp2D::ExplicitResidual2D< F >.
◆ clone() [2/2]
|
pure virtualinherited |
Virtual copy constructor.
◆ dflt_value() [1/2]
|
inlinevirtual |
Gives default value.
Definition at line 83 of file piecewiseFormula.hh.
◆ dflt_value() [2/2]
|
inlinevirtual |
Gives default value.
Definition at line 81 of file piecewiseFormula.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::LocalEstimator< F >, concepts::PiecewiseFormulaCombine< F, G, H, I >, concepts::PiecewiseFormulaFun< F, G >, concepts::PiecewiseFormulaFun< Cmplx, Real >, concepts::PiecewiseFormulaFun< Real, Real >, concepts::PiecewiseFormula< F >, concepts::PiecewiseFormula< concepts::Point >, concepts::PiecewiseFormula< Cmplx2d >, concepts::PiecewiseFormula< Cmplx >, concepts::PiecewiseFormula< Real >, concepts::PiecewiseConstDynArrayFormula< F >, concepts::PiecewiseConstFormula< F >, concepts::PiecewiseConstFormula< concepts::Point >, concepts::PiecewiseConstFormula< Real >, concepts::PiecewiseFormula0< F >, estimator::KeysInfo< F >, estimator::PolynomialDegrees< dim >, hp2D::ImplicitEquilibratedA0< F >, hp2D::ExplicitResidual2D< F >, hp1D::ExplicitResidual1D< F >, and concepts::ExplicitResidual< F >.
Definition at line 100 of file piecewiseFormula.hh.
◆ operator()() [1/9]
|
pure virtual |
Gives the value in an particular cell on a particular point.
- Parameters
-
cell topological cell p physical coordinates t time
Implemented in concepts::LocalEstimator< F >, concepts::PiecewiseFormulaCombine< F, G, H, I >, concepts::PiecewiseFormulaFun< F, G >, concepts::PiecewiseFormulaFun< Cmplx, Real >, concepts::PiecewiseFormulaFun< Real, Real >, concepts::PiecewiseFormula< F >, concepts::PiecewiseFormula< concepts::Point >, concepts::PiecewiseFormula< Cmplx2d >, concepts::PiecewiseFormula< Cmplx >, concepts::PiecewiseFormula< Real >, concepts::PiecewiseConstDynArrayFormula< F >, concepts::PiecewiseConstFormula< F >, concepts::PiecewiseConstFormula< concepts::Point >, concepts::PiecewiseConstFormula< Real >, concepts::PiecewiseFormula0< F >, concepts::PiecewiseFormulaVector< 1, F, G, H >, and concepts::PiecewiseFormulaVector< dim, F, G, H >.
◆ operator()() [2/9]
|
pure virtual |
Implemented in concepts::LocalEstimator< F >, concepts::PiecewiseFormulaCombine< F, G, H, I >, concepts::PiecewiseFormulaFun< F, G >, concepts::PiecewiseFormulaFun< Cmplx, Real >, concepts::PiecewiseFormulaFun< Real, Real >, concepts::PiecewiseFormula< F >, concepts::PiecewiseFormula< concepts::Point >, concepts::PiecewiseFormula< Cmplx2d >, concepts::PiecewiseFormula< Cmplx >, concepts::PiecewiseFormula< Real >, concepts::PiecewiseConstDynArrayFormula< F >, concepts::PiecewiseConstFormula< F >, concepts::PiecewiseConstFormula< concepts::Point >, concepts::PiecewiseConstFormula< Real >, concepts::PiecewiseFormula0< F >, concepts::PiecewiseFormulaVector< 1, F, G, H >, and concepts::PiecewiseFormulaVector< dim, F, G, H >.
◆ operator()() [3/9]
|
pure virtual |
Implemented in concepts::LocalEstimator< F >, concepts::PiecewiseFormulaCombine< F, G, H, I >, concepts::PiecewiseFormulaFun< F, G >, concepts::PiecewiseFormulaFun< Cmplx, Real >, concepts::PiecewiseFormulaFun< Real, Real >, concepts::PiecewiseFormula< F >, concepts::PiecewiseFormula< concepts::Point >, concepts::PiecewiseFormula< Cmplx2d >, concepts::PiecewiseFormula< Cmplx >, concepts::PiecewiseFormula< Real >, concepts::PiecewiseConstDynArrayFormula< F >, concepts::PiecewiseConstFormula< F >, concepts::PiecewiseConstFormula< concepts::Point >, concepts::PiecewiseConstFormula< Real >, concepts::PiecewiseFormula0< F >, concepts::PiecewiseFormulaVector< 1, F, G, H >, and concepts::PiecewiseFormulaVector< dim, F, G, H >.
◆ operator()() [4/9]
|
pure virtualinherited |
◆ operator()() [5/9]
|
pure virtualinherited |
◆ operator()() [6/9]
|
pure virtualinherited |
◆ operator()() [7/9]
|
inlinevirtual |
Definition at line 52 of file piecewiseFormula.hh.
◆ operator()() [8/9]
|
inlinevirtual |
Definition at line 57 of file piecewiseFormula.hh.
◆ operator()() [9/9]
|
inlinevirtual |
Definition at line 63 of file piecewiseFormula.hh.
Member Data Documentation
◆ dflt_value_
|
private |
default value
Definition at line 88 of file piecewiseFormula.hh.
The documentation for this class was generated from the following file:
- formula/piecewiseFormula.hh