Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::PiecewiseFormulaVectorBase< F, G, H, I > Class Template Referenceabstract

#include <formula.hh>

Inheritance diagram for concepts::PiecewiseFormulaVectorBase< F, G, H, I >:
concepts::PiecewiseFormulaBase< H > concepts::ElementFormula< F, G > concepts::Cloneable concepts::OutputOperator

Public Types

typedef concepts::Realtype< H >::type G
 
typedefvalue_type
 

Public Member Functions

 PiecewiseFormulaVectorBase (const Space< G > &spc, const Vector< F > &coeff, const ElementFunction< I, G > &fun)
 
virtual PiecewiseFormulaBase< H > * clone () const=0
 Virtual copy constructor.
 
virtualoperator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
 
virtualoperator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
 
virtualoperator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
 
virtualoperator() (const Connector &cntr, const Real p, const Real t=0.0) const=0
 
virtualoperator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const=0
 
virtualoperator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const=0
 
virtualoperator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const =0
 
virtualoperator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const =0
 
virtualoperator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const =0
 
virtual const H & dflt_value () const
 Gives default value.
 
virtual H & dflt_value ()
 Gives default value.
 

Protected Member Functions

const ElementWithCell< G > * element_ (const Connector &cell) const
 
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Protected Attributes

const Space< G > & spc_
 Space.
 
Array< F > coeff_
 Solution vector.
 
const ElementFunction< I, G > * fun_
 Function of the FE function.
 
std::map< uint, const ElementWithCell< G > * > elm_
 Mapping from cell key to the element.
 

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 33 of file formula.hh.

Member Typedef Documentation

◆ G

Definition at line 45 of file piecewiseFormula.hh.

◆ value_type

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

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ PiecewiseFormulaVectorBase()

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 56 of file formula.hh.

Member Function Documentation

◆ clone()

virtual PiecewiseFormulaBase< H > * concepts::PiecewiseFormulaBase< H >::clone ( ) const
pure virtualinherited

Virtual copy constructor.

Implements concepts::ElementFormula< F, G >.

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

◆ dflt_value() [1/2]

virtual H & concepts::PiecewiseFormulaBase< H >::dflt_value ( )
inlinevirtualinherited

Gives default value.

Definition at line 83 of file piecewiseFormula.hh.

◆ dflt_value() [2/2]

virtual const H & concepts::PiecewiseFormulaBase< H >::dflt_value ( ) const
inlinevirtualinherited

Gives default value.

Definition at line 81 of file piecewiseFormula.hh.

◆ element_()

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 79 of file formula.hh.

◆ info()

std::ostream & concepts::PiecewiseFormulaBase< H >::info ( std::ostream &  os) const
protectedvirtualinherited

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 85 of file piecewiseFormula.hh.

◆ operator()() [1/7]

virtual H concepts::PiecewiseFormulaBase< H >::operator() ( const Connector cntr,
const Real  p,
const Real  t = 0.0 
) const
pure virtualinherited

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 >.

◆ operator()() [2/7]

virtual H concepts::PiecewiseFormulaBase< H >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Definition at line 52 of file piecewiseFormula.hh.

◆ operator()() [3/7]

◆ operator()() [4/7]

virtual H concepts::PiecewiseFormulaBase< H >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Definition at line 57 of file piecewiseFormula.hh.

◆ operator()() [5/7]

◆ operator()() [6/7]

virtual H concepts::PiecewiseFormulaBase< H >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Definition at line 63 of file piecewiseFormula.hh.

◆ operator()() [7/7]

Member Data Documentation

◆ coeff_

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

Solution vector.

Definition at line 43 of file formula.hh.

◆ elm_

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 47 of file formula.hh.

◆ fun_

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 45 of file formula.hh.

◆ spc_

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

Space.

Definition at line 41 of file formula.hh.


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