concepts::PiecewiseFormulaVector< dim, F, G, H > Class Template Referenceabstract

#include <formula.hh>

Inheritance diagram for concepts::PiecewiseFormulaVector< dim, F, G, H >:
concepts::PiecewiseFormulaVectorBase< F, G, Point< H, dim >, H > concepts::PiecewiseFormulaBase< Point< H, dim > > concepts::ElementFormula< Point< H, dim >, concepts::Realtype< Point< H, dim > >::type > concepts::Cloneable concepts::OutputOperator

Public Types

typedef concepts::Realtype< Point< H, dim > >::type G
 
typedef Point< H, dim > value_type
 

Public Member Functions

virtual PiecewiseFormulaVector< dim, F, G, H > * clone () const
 Virtual constructor. More...
 
virtual PiecewiseFormulaBase< Point< H, dim > > * clone () const=0
 Virtual constructor. More...
 
virtual Point< H, dim > & dflt_value ()
 Gives default value. More...
 
virtual const Point< H, dim > & dflt_value () const
 Gives default value. More...
 
virtual Point< H, dim > operator() (const Connector &cell, const Real p, const Real t=0.0) const
 Gives the value in an particular cell on a particular point. More...
 
virtual Point< H, dim > operator() (const Connector &cell, const Real2d &p, const Real t=0.0) const
 
virtual Point< H, dim > operator() (const Connector &cell, const Real3d &p, const Real t=0.0) const
 
virtual Point< H, dim > operator() (const ElementWithCell< concepts::Realtype< Point< H, dim > >::type > &elm, const Real p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Point< H, dim > operator() (const ElementWithCell< concepts::Realtype< Point< H, dim > >::type > &elm, const Real2d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Point< H, dim > operator() (const ElementWithCell< concepts::Realtype< Point< H, dim > >::type > &elm, const Real3d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Point< H, dim > operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
 
virtual Point< H, dim > operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
 
virtual Point< H, dim > operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
 
 PiecewiseFormulaVector (const Space< G > &spc, const Vector< F > &coeff, const ElementFunction< H, G > &fun)
 

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. More...
 
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Protected Attributes

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

Private Attributes

Point< H, dim > dflt_value_
 default value More...
 

Detailed Description

template<uint dim, class F, class G, class H>
class concepts::PiecewiseFormulaVector< dim, F, G, H >

Definition at line 99 of file formula.hh.

Member Typedef Documentation

◆ G

typedef concepts::Realtype<Point< H, dim > >::type concepts::PiecewiseFormulaBase< Point< H, dim > >::G
inherited

Definition at line 45 of file piecewiseFormula.hh.

◆ value_type

typedef Point< H, dim > concepts::ElementFormula< Point< H, dim > , concepts::Realtype< Point< H, dim > >::type >::value_type
inherited

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ PiecewiseFormulaVector()

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

Definition at line 118 of file formula.hh.

Member Function Documentation

◆ clone() [1/2]

template<uint dim, class F , class G , class H >
virtual PiecewiseFormulaVector<dim,F,G,H>* concepts::PiecewiseFormulaVector< dim, F, G, H >::clone ( ) const
inlinevirtual

Virtual constructor.

Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

Implements concepts::Cloneable.

Definition at line 104 of file formula.hh.

◆ clone() [2/2]

virtual PiecewiseFormulaBase<Point< H, dim > >* concepts::PiecewiseFormulaBase< Point< H, dim > >::clone
pure virtualinherited

Virtual constructor.

Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

Implements concepts::ElementFormula< Point< H, dim >, concepts::Realtype< Point< H, dim > >::type >.

◆ dflt_value() [1/2]

virtual Point< H, dim > & concepts::PiecewiseFormulaBase< Point< H, dim > >::dflt_value
inlinevirtualinherited

Gives default value.

Definition at line 83 of file piecewiseFormula.hh.

◆ dflt_value() [2/2]

virtual const Point< H, dim > & concepts::PiecewiseFormulaBase< Point< H, dim > >::dflt_value
inlinevirtualinherited

Gives default value.

Definition at line 81 of file piecewiseFormula.hh.

◆ element_()

const ElementWithCell< G > * concepts::PiecewiseFormulaVectorBase< F, G, Point< H, dim > , H >::element_ ( const Connector cell) const
protectedinherited

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

◆ info()

std::ostream & concepts::PiecewiseFormulaBase< Point< H, dim > >::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/9]

template<uint dim, class F , class G , class H >
Point< H, dim > concepts::PiecewiseFormulaVector< dim, F, G, H >::operator() ( const Connector cntr,
const Real  p,
const Real  t = 0.0 
) const
virtual

Gives the value in an particular cell on a particular point.

Parameters
celltopological cell
pphysical coordinates
ttime

Implements concepts::PiecewiseFormulaBase< Point< H, dim > >.

Definition at line 124 of file formula.hh.

◆ operator()() [2/9]

template<uint dim, class F , class G , class H >
Point< H, dim > concepts::PiecewiseFormulaVector< dim, F, G, H >::operator() ( const Connector cell,
const Real2d p,
const Real  t = 0.0 
) const
virtual

Implements concepts::PiecewiseFormulaBase< Point< H, dim > >.

Definition at line 141 of file formula.hh.

◆ operator()() [3/9]

template<uint dim, class F , class G , class H >
Point< H, dim > concepts::PiecewiseFormulaVector< dim, F, G, H >::operator() ( const Connector cell,
const Real3d p,
const Real  t = 0.0 
) const
virtual

Implements concepts::PiecewiseFormulaBase< Point< H, dim > >.

Definition at line 158 of file formula.hh.

◆ operator()() [4/9]

virtual Point< H, dim > concepts::ElementFormula< Point< H, dim > , concepts::Realtype< Point< H, dim > >::type >::operator() ( const ElementWithCell< concepts::Realtype< Point< H, dim > >::type > &  elm,
const Real  p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

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

◆ operator()() [5/9]

virtual Point< H, dim > concepts::ElementFormula< Point< H, dim > , concepts::Realtype< Point< H, dim > >::type >::operator() ( const ElementWithCell< concepts::Realtype< Point< H, dim > >::type > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

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

◆ operator()() [6/9]

virtual Point< H, dim > concepts::ElementFormula< Point< H, dim > , concepts::Realtype< Point< H, dim > >::type >::operator() ( const ElementWithCell< concepts::Realtype< Point< H, dim > >::type > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

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

◆ operator()() [7/9]

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

Definition at line 52 of file piecewiseFormula.hh.

◆ operator()() [8/9]

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

Definition at line 57 of file piecewiseFormula.hh.

◆ operator()() [9/9]

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

Definition at line 63 of file piecewiseFormula.hh.

Member Data Documentation

◆ coeff_

Array<F> concepts::PiecewiseFormulaVectorBase< F, G, Point< H, dim > , H >::coeff_
protectedinherited

Solution vector.

Definition at line 43 of file formula.hh.

◆ dflt_value_

Point< H, dim > concepts::PiecewiseFormulaBase< Point< H, dim > >::dflt_value_
privateinherited

default value

Definition at line 88 of file piecewiseFormula.hh.

◆ elm_

std::map<uint, const ElementWithCell<G>*> concepts::PiecewiseFormulaVectorBase< F, G, Point< H, dim > , H >::elm_
protectedinherited

Mapping from cell key to the element.

Definition at line 47 of file formula.hh.

◆ fun_

const ElementFunction<H ,G>* concepts::PiecewiseFormulaVectorBase< F, G, Point< H, dim > , H >::fun_
protectedinherited

Function of the FE function.

Definition at line 45 of file formula.hh.

◆ spc_

const Space<G>& concepts::PiecewiseFormulaVectorBase< F, G, Point< H, dim > , H >::spc_
protectedinherited

Space.

Definition at line 41 of file formula.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich