Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
concepts::PiecewiseFormulaVectorBase< F, G, H, I > Class Template Reference

Base class for piecewise defined formula, which are a function of a FE function. More...

#include <formula.hh>

Inheritance diagram for concepts::PiecewiseFormulaVectorBase< F, G, H, I >:
Inheritance graph
[legend]
Collaboration diagram for concepts::PiecewiseFormulaVectorBase< F, G, H, I >:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

template<class F, class G, class H, class I>
class concepts::PiecewiseFormulaVectorBase< F, G, H, I >

Base class for piecewise defined formula, which are a function of a FE function.

Parameters:
Ftype of the coefficients
Gtype of the space, i.e. that of the T matrices
Htype of the formula, is determined by derived classes
Itype of the element function
Author:
Kersten Schmidt, 2005

Definition at line 31 of file formula.hh.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

template<class F, class G, class H , class I>
concepts::PiecewiseFormulaVectorBase< F, G, H, I >::PiecewiseFormulaVectorBase ( const Space< G > &  spc,
const Vector< F > &  coeff,
const ElementFunction< I, G > &  fun 
)

Constructor.

Definition at line 55 of file formula.hh.

Here is the call graph for this function:


Member Function Documentation

virtual PiecewiseFormulaBase<H >* concepts::PiecewiseFormulaBase< H >::clone ( ) const [pure virtual, inherited]
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.

template<class F , class G , class H , class I >
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.

Here is the call graph for this function:

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.

Parameters:
elmElement
pPoint in space in local element coordinates
tPoint in time
virtual H concepts::PiecewiseFormulaBase< H >::operator() ( const Connector cntr,
const Real3d p,
const Real  t = 0.0 
) const [pure virtual, inherited]
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]
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.

Parameters:
celltopological cell
pphysical coordinates
ttime

Implemented in concepts::PiecewiseFormulaVector< 1, F, G, H >.


Member Data Documentation

template<class F, class G, class H, class I>
Array<F> concepts::PiecewiseFormulaVectorBase< F, G, H, I >::coeff_ [protected]

Solution vector.

Definition at line 41 of file formula.hh.

template<class F, class G, class H, class I>
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.

template<class F, class G, class H, class I>
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.

template<class F, class G, class H, class I>
const Space<G>& concepts::PiecewiseFormulaVectorBase< F, G, H, I >::spc_ [protected]

Space.

Definition at line 39 of file formula.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)