Class documentation of Concepts

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

#include <elementFormula.hh>

Inheritance diagram for concepts::ElementFormulaVector< dim, F, G, H >:
concepts::ElementFormulaVectorBase< F, G, H, I > concepts::ElementFormula< H, G > concepts::Cloneable concepts::OutputOperator

Public Types

typedefvalue_type
 

Public Member Functions

 ElementFormulaVector (const Space< H > &spc, const Vector< F > &v, const ElementFunction< G, H > &f)
 
virtual Point< G, dim > operator() (const ElementWithCell< H > &elm, const Real p, const Real t=0.0) const
 
virtual Point< G, dim > operator() (const ElementWithCell< H > &elm, const Real2d &p, const Real t=0.0) const
 
virtual Point< G, dim > operator() (const ElementWithCell< H > &elm, const Real3d &p, const Real t=0.0) const
 
virtual ElementFormulaVector< dim, F, G, H > * clone () const
 Virtual copy constructor.
 
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
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 
template<typename J , typename P >
void compute_ (const Element< G > &elm, Array< J > &val, const P &p, const Real t=0.0) const
 Performs the computations.
 

Protected Attributes

const Space< G > & spc_
 
const Vector< F > v_
 
std::unique_ptr< const ElementFunction< I, G > > f_
 Element function.
 
const Element< G > * lastElm_
 
const Element< G > * lastElmOur_
 
Array< F > coeff_
 

Detailed Description

template<uint dim, class F = Real, class G = F, class H = typename Realtype<F>::type>
class concepts::ElementFormulaVector< dim, F, G, H >

Vectorial formula created from a FE function. The FE function is described by a vector of coefficients.

Parameters
dimDimension of output vector (e.g. gradient has two components)
Ftype of the coefficients
Gdata type of the element function
Htype of the space, i.e. that of the T matrices
Author
Philipp Frauenfelder, 2004
Examples
inhomDirichletBCs.cc, and parallelizationTutorial.cc.

Definition at line 144 of file elementFormula.hh.

Member Typedef Documentation

◆ value_type

typedef H concepts::ElementFormula< H , G >::value_type
inherited

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ ElementFormulaVector()

template<uint dim, class F , class G , class H >
concepts::ElementFormulaVector< dim, F, G, H >::ElementFormulaVector ( const Space< H > &  spc,
const Vector< F > &  v,
const ElementFunction< G, H > &  f 
)

Constructor

Parameters
vVector of coefficients of the FE function
fFunction to be evaluated on the FE function, eg. hp2D::Value

Definition at line 168 of file elementFormula.hh.

Member Function Documentation

◆ clone()

template<uint dim, class F = Real, class G = F, class H = typename Realtype<F>::type>
virtual ElementFormulaVector< dim, F, G, H > * concepts::ElementFormulaVector< dim, F, G, H >::clone ( ) const
inlinevirtual

Virtual copy constructor.

Implements concepts::ElementFormulaVectorBase< F, G, H, I >.

Definition at line 160 of file elementFormula.hh.

◆ compute_()

template<class F , class G , class H , class I >
template<typename J , typename P >
void concepts::ElementFormulaVectorBase< F, G, H, I >::compute_ ( const Element< G > &  elm,
Array< J > &  val,
const P &  p,
const Real  t = 0.0 
) const
protectedinherited

Performs the computations.

Definition at line 117 of file elementFormula.hh.

◆ info()

template<uint dim, class F , class G , class H >
std::ostream & concepts::ElementFormulaVector< dim, F, G, H >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 217 of file elementFormula.hh.

◆ operator()() [1/6]

virtual H concepts::ElementFormula< H , G >::operator() ( const ElementWithCell< G > &  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()() [2/6]

virtual H concepts::ElementFormula< H , G >::operator() ( const ElementWithCell< G > &  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()() [3/6]

virtual H concepts::ElementFormula< H , G >::operator() ( const ElementWithCell< G > &  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()() [4/6]

template<uint dim, class F , class G , class H >
Point< G, dim > concepts::ElementFormulaVector< dim, F, G, H >::operator() ( const ElementWithCell< H > &  elm,
const Real  p,
const Real  t = 0.0 
) const
virtual

Definition at line 177 of file elementFormula.hh.

◆ operator()() [5/6]

template<uint dim, class F , class G , class H >
Point< G, dim > concepts::ElementFormulaVector< dim, F, G, H >::operator() ( const ElementWithCell< H > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
virtual

Definition at line 190 of file elementFormula.hh.

◆ operator()() [6/6]

template<uint dim, class F , class G , class H >
Point< G, dim > concepts::ElementFormulaVector< dim, F, G, H >::operator() ( const ElementWithCell< H > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
virtual

Definition at line 204 of file elementFormula.hh.

Member Data Documentation

◆ coeff_

template<typename F , class G , class H , class I >
Array<F> concepts::ElementFormulaVectorBase< F, G, H, I >::coeff_
mutableprotectedinherited

Definition at line 58 of file elementFormula.hh.

◆ f_

template<typename F , class G , class H , class I >
std::unique_ptr<const ElementFunction<I,G> > concepts::ElementFormulaVectorBase< F, G, H, I >::f_
protectedinherited

Element function.

Definition at line 54 of file elementFormula.hh.

◆ lastElm_

template<typename F , class G , class H , class I >
const Element<G>* concepts::ElementFormulaVectorBase< F, G, H, I >::lastElm_
mutableprotectedinherited

Definition at line 56 of file elementFormula.hh.

◆ lastElmOur_

template<typename F , class G , class H , class I >
const Element<G> * concepts::ElementFormulaVectorBase< F, G, H, I >::lastElmOur_
protectedinherited

Definition at line 56 of file elementFormula.hh.

◆ spc_

template<typename F , class G , class H , class I >
const Space<G>& concepts::ElementFormulaVectorBase< F, G, H, I >::spc_
protectedinherited

Definition at line 51 of file elementFormula.hh.

◆ v_

template<typename F , class G , class H , class I >
const Vector<F> concepts::ElementFormulaVectorBase< F, G, H, I >::v_
protectedinherited

Definition at line 52 of file elementFormula.hh.


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