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

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

Piecewise defined function defined by attributes. More...

#include <formula.hh>

Inheritance diagram for concepts::PiecewiseElementFormula< F, G >:
Inheritance graph
[legend]
Collaboration diagram for concepts::PiecewiseElementFormula< F, G >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef HashMap
< ElementFormulaContainer< F,
G > > 
ElemFormulaMap
 Mapping from the elements on to the formula.
typedef F value_type

Public Member Functions

virtual
PiecewiseElementFormula< F, G > * 
clone () const
 Virtual copy constructor.
virtual F operator() (const ElementWithCell< G > &elm, const Real3d &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 Real p, const Real t=0.0) const
 Evaluates the formula.
 PiecewiseElementFormula (const F defaultV=0)
void set (concepts::Set< uint > attribs, const ElementFormulaContainer< F, G > formula)
void set (const uint attrib, const ElementFormulaContainer< F, G > formula)
 Set the ElementFormula for all cells with attribute attrib.
virtual ~PiecewiseElementFormula ()

Public Attributes

defaultV_
 Default value.
ElemFormulaMap formulas_

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Detailed Description

template<class F, class G = typename Realtype<F>::type>
class concepts::PiecewiseElementFormula< F, G >

Piecewise defined function defined by attributes.

For an attribute and so an area a formula is given.

Author:
Holger Brandsmeier, 2010

Definition at line 283 of file formula.hh.


Member Typedef Documentation

template<class F , class G = typename Realtype<F>::type>
typedef HashMap< ElementFormulaContainer<F, G> > concepts::PiecewiseElementFormula< F, G >::ElemFormulaMap

Mapping from the elements on to the formula.

Definition at line 354 of file formula.hh.

template<typename F, typename G = typename Realtype<F>::type>
typedef F concepts::ElementFormula< F, G >::value_type [inherited]

Constructor & Destructor Documentation

template<class F , class G = typename Realtype<F>::type>
concepts::PiecewiseElementFormula< F, G >::PiecewiseElementFormula ( const F  defaultV = 0) [inline]

Definition at line 285 of file formula.hh.

template<class F , class G = typename Realtype<F>::type>
virtual concepts::PiecewiseElementFormula< F, G >::~PiecewiseElementFormula ( ) [inline, virtual]

Definition at line 290 of file formula.hh.


Member Function Documentation

template<class F , class G = typename Realtype<F>::type>
virtual PiecewiseElementFormula<F, G>* concepts::PiecewiseElementFormula< F, G >::clone ( ) const [inline, virtual]

Virtual copy constructor.

Implements concepts::ElementFormula< F, G >.

Definition at line 292 of file formula.hh.

Here is the call graph for this function:

template<class F , class G = typename Realtype<F>::type>
virtual std::ostream& concepts::PiecewiseElementFormula< F, G >::info ( std::ostream &  os) const [inline, protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 347 of file formula.hh.

template<class F , class G = typename Realtype<F>::type>
virtual F concepts::PiecewiseElementFormula< F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const [inline, virtual]

Implements concepts::ElementFormula< F, G >.

Definition at line 296 of file formula.hh.

Here is the call graph for this function:

template<class F , class G = typename Realtype<F>::type>
virtual F concepts::PiecewiseElementFormula< F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const [inline, virtual]

Evaluates the formula.

Parameters:
elmElement
pPoint in space in local element coordinates
tPoint in time

Implements concepts::ElementFormula< F, G >.

Definition at line 318 of file formula.hh.

Here is the call graph for this function:

template<class F , class G = typename Realtype<F>::type>
virtual F concepts::PiecewiseElementFormula< F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const [inline, virtual]

Implements concepts::ElementFormula< F, G >.

Definition at line 307 of file formula.hh.

Here is the call graph for this function:

template<class F , class G = typename Realtype<F>::type>
void concepts::PiecewiseElementFormula< F, G >::set ( concepts::Set< uint >  attribs,
const ElementFormulaContainer< F, G >  formula 
) [inline]

Definition at line 337 of file formula.hh.

template<class F , class G = typename Realtype<F>::type>
void concepts::PiecewiseElementFormula< F, G >::set ( const uint  attrib,
const ElementFormulaContainer< F, G >  formula 
) [inline]

Set the ElementFormula for all cells with attribute attrib.

Definition at line 331 of file formula.hh.


Member Data Documentation

template<class F , class G = typename Realtype<F>::type>
F concepts::PiecewiseElementFormula< F, G >::defaultV_

Default value.

Definition at line 357 of file formula.hh.

template<class F , class G = typename Realtype<F>::type>
ElemFormulaMap concepts::PiecewiseElementFormula< F, G >::formulas_

Definition at line 355 of file formula.hh.


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

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