concepts::Absolute< F, G > Class Template Referenceabstract

The absolute value of a element function. More...

#include <function.hh>

Inheritance diagram for concepts::Absolute< F, G >:
concepts::ElementFunction< F, typename Realtype< F >::type >

Public Member Functions

 Absolute (ElementFunction< F, G > &fun)
 Constructor. More...
 
virtual Absolute< F, G > * clone () const
 
virtual ElementFunction< F, typename Realtype< F >::type > * clone () const=0
 
virtual uint n () const
 
virtual uint n () const=0
 Number of components. More...
 
virtual void operator() (const Element< G > &elm, const Array< F > &coeff, Array< F > &val, const Real p, const Real t=0.0) const
 
virtual void operator() (const Element< G > &elm, const Array< F > &coeff, Array< F > &val, const Real2d &p, const Real t=0.0) const
 
virtual void operator() (const Element< G > &elm, const Array< F > &coeff, Array< F > &val, const Real3d &p, const Real t=0.0) const
 
virtual void operator() (const Element< G > &elm, const Array< F > &coeff, Array< F > &val, const uint *i) const
 
virtual void operator() (const Element< G > &elm, const uint *j, Array< F > &val, const uint *i) const
 
virtual void operator() (const Element< typename Realtype< F >::type > &elm, const Array< F > &coeff, Array< F > &val, const Real p, const Real t=0.0) const=0
 Evaluates the function value in an arbitrary point p of physical space. More...
 
virtual void operator() (const Element< typename Realtype< F >::type > &elm, const Array< F > &coeff, Array< F > &val, const Real2d &p, const Real t=0.0) const=0
 
virtual void operator() (const Element< typename Realtype< F >::type > &elm, const Array< F > &coeff, Array< F > &val, const Real3d &p, const Real t=0.0) const=0
 
virtual void operator() (const Element< typename Realtype< F >::type > &elm, const Array< F > &coeff, Array< F > &val, const uint *i) const=0
 Evaluates the function on precalculated quadrature points. More...
 
virtual void operator() (const Element< typename Realtype< F >::type > &elm, const uint *j, Array< F > &val, const uint *i) const=0
 Evaluates the given function on a specific shape function j (on precalculated quadrature points). More...
 
virtual ~Absolute ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Private Member Functions

absolute_ (const Array< F > &val) const
 Method for the absolute value. More...
 

Private Attributes

ElementFunction< F, G > & fun_
 FE Function for which the square is to taken. More...
 

Detailed Description

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

The absolute value of a element function.

Unless the absolute value is real, the restriction of the methods allow for complex coefficients only complex output. For this case the complex number has only a real part.

Author
Kersten Schmidt, 2005

Definition at line 166 of file function.hh.

Constructor & Destructor Documentation

◆ Absolute()

template<class F , class G = typename Realtype<F>::type>
concepts::Absolute< F, G >::Absolute ( ElementFunction< F, G > &  fun)
inline

Constructor.

Definition at line 169 of file function.hh.

◆ ~Absolute()

template<class F , class G = typename Realtype<F>::type>
virtual concepts::Absolute< F, G >::~Absolute ( )
inlinevirtual

Definition at line 170 of file function.hh.

Member Function Documentation

◆ absolute_()

template<class F , class G = typename Realtype<F>::type>
F concepts::Absolute< F, G >::absolute_ ( const Array< F > &  val) const
private

Method for the absolute value.

◆ clone() [1/2]

template<class F , class G = typename Realtype<F>::type>
virtual Absolute<F,G>* concepts::Absolute< F, G >::clone ( ) const
inlinevirtual

Definition at line 186 of file function.hh.

◆ clone() [2/2]

virtual ElementFunction<F,typename Realtype< F >::type >* concepts::ElementFunction< F, typename Realtype< F >::type >::clone
pure virtualinherited

◆ info()

template<class F , class G = typename Realtype<F>::type>
virtual std::ostream& concepts::Absolute< F, G >::info ( std::ostream &  os) const
protectedvirtual

◆ n() [1/2]

template<class F , class G = typename Realtype<F>::type>
virtual uint concepts::Absolute< F, G >::n ( ) const
inlinevirtual

Definition at line 171 of file function.hh.

◆ n() [2/2]

virtual uint concepts::ElementFunction< F, typename Realtype< F >::type >::n
pure virtualinherited

Number of components.

◆ operator()() [1/10]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Absolute< F, G >::operator() ( const Element< G > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real  p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [2/10]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Absolute< F, G >::operator() ( const Element< G > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real2d p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [3/10]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Absolute< F, G >::operator() ( const Element< G > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real3d p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [4/10]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Absolute< F, G >::operator() ( const Element< G > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const uint *  i 
) const
virtual

◆ operator()() [5/10]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Absolute< F, G >::operator() ( const Element< G > &  elm,
const uint *  j,
Array< F > &  val,
const uint *  i 
) const
virtual

◆ operator()() [6/10]

virtual void concepts::ElementFunction< F, typename Realtype< F >::type >::operator() ( const Element< typename Realtype< F >::type > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real  p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the function value in an arbitrary point p of physical space.

Parameters
elmElement
coeffCoefficients of local shape functions
valFunction value
pPoint in space in local element coordinates
tPoint in time

◆ operator()() [7/10]

virtual void concepts::ElementFunction< F, typename Realtype< F >::type >::operator() ( const Element< typename Realtype< F >::type > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real2d p,
const Real  t = 0.0 
) const
pure virtualinherited

◆ operator()() [8/10]

virtual void concepts::ElementFunction< F, typename Realtype< F >::type >::operator() ( const Element< typename Realtype< F >::type > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real3d p,
const Real  t = 0.0 
) const
pure virtualinherited

◆ operator()() [9/10]

virtual void concepts::ElementFunction< F, typename Realtype< F >::type >::operator() ( const Element< typename Realtype< F >::type > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const uint *  i 
) const
pure virtualinherited

Evaluates the function on precalculated quadrature points.

Parameters
elmElement
coeffCoefficients of local shape functions
valFunction value
imulti-index of the quadrature point

◆ operator()() [10/10]

virtual void concepts::ElementFunction< F, typename Realtype< F >::type >::operator() ( const Element< typename Realtype< F >::type > &  elm,
const uint *  j,
Array< F > &  val,
const uint *  i 
) const
pure virtualinherited

Evaluates the given function on a specific shape function j (on precalculated quadrature points).

Parameters
elmElement
jmulti-index of a shapefunction
valFunction value
imulti-index of the quadrature point

Member Data Documentation

◆ fun_

template<class F , class G = typename Realtype<F>::type>
ElementFunction<F,G>& concepts::Absolute< F, G >::fun_
private

FE Function for which the square is to taken.

Definition at line 191 of file function.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