dune-fem  2.4.1-rc
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
Dune::Fem::HdivProjection< DiscreteFunctionType > Class Template Referenceabstract

H-div Projection for discontinuous discrete functions. The projection is described in detail in: More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/projection/hdivprojection.hh>

Inheritance diagram for Dune::Fem::HdivProjection< DiscreteFunctionType >:
Inheritance graph

Public Types

typedef DiscreteFunctionType DestinationType
 type of argument and destination More...
 
typedef DestinationType::DiscreteFunctionSpaceType SpaceType
 type of discrete function space More...
 
typedef BaseType::RangeFunctionType RangeFunctionType
 
typedef BaseType::DomainFunctionType DomainFunctionType
 
typedef Dune::FieldTraits< RangeFieldType >::real_type RealType
 
typedef BaseType::JacobianOperatorType JacobianOperatorType
 
typedef RangeFunctionType::DiscreteFunctionSpaceType RangeSpaceType
 
typedef DomainFunctionType::DiscreteFunctionSpaceType DomainSpaceType
 

Public Member Functions

 HdivProjection (const DiscreteFunctionSpaceType &space)
 constructor taking space More...
 
 HdivProjection (const HdivProjection &org)
 
const DiscreteFunctionSpaceType & space () const
 return reference to space More...
 
void setTime (double)
 set time for operators More...
 
double timeStepEstimate () const
 estimate maximum time step More...
 
virtual void operator() (const DiscreteFunctionType &arg, DiscreteFunctionType &dest) const
 application operator projection arg to H-div space More...
 
virtual int size () const
 return size of discrete function space, i.e. number of unknowns More...
 
virtual void operator() (const double *u, double *f) const
 application operator to apply right hand side More...
 
virtual void operator() (const DomainFunctionType &u, RangeFunctionType &w) const =0
 application operator More...
 
virtual void limit (const double *u, double *f) const
 limiter application operator More...
 
virtual void limit (const DestinationType &arg, DestinationType &dest) const
 limiter application operator More...
 
virtual bool hasLimiter () const
 return true if explicit limiter is available More...
 
virtual void initializeTimeStepSize (const DestinationType &U0) const
 call operator once to calculate initial time step size More...
 
virtual const DestinationTypedestination () const
 return reference to pass's local memory More...
 
virtual void jacobian (const DomainFunctionType &u, JacobianOperatorType &jOp) const
 
virtual void jacobian (const DomainFunctionType &u, JacobianOperatorType &jOp) const =0
 obtain linearization More...
 

Static Public Member Functions

static double normalJump (const DiscreteFunctionType &discFunc, const int polyOrder=-1)
 return sum of jumps of discrete function normal to intersection More...
 
template<class AdaptationType >
static void estimator (const DiscreteFunctionType &velo, AdaptationType &adaptation)
 

Detailed Description

template<class DiscreteFunctionType>
class Dune::Fem::HdivProjection< DiscreteFunctionType >

H-div Projection for discontinuous discrete functions. The projection is described in detail in:

P. Bastian and B. Riviere. Superconvergence and H(div)-projection for discontinuous Galerkin methods. Int. J. Numer. Meth. Fluids., 42:1043-1057, 2003.

(see homepage of Peter Bastian: http://hal.iwr.uni-heidelberg.de/~peter/Papers/BDMpaper.pdf )

Note:

This projection only works for polynomial order 1 and the following spaces:

Member Typedef Documentation

typedef DiscreteFunctionType Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::DestinationType
inherited

type of argument and destination

typedef BaseType::DomainFunctionType Dune::Fem::AutomaticDifferenceOperator< DiscreteFunctionType , DiscreteFunctionType , AutomaticDifferenceLinearOperator< DiscreteFunctionType , DiscreteFunctionType > >::DomainFunctionType
inherited
typedef DomainFunctionType::DiscreteFunctionSpaceType Dune::Fem::AutomaticDifferenceOperator< DiscreteFunctionType , DiscreteFunctionType , AutomaticDifferenceLinearOperator< DiscreteFunctionType , DiscreteFunctionType > >::DomainSpaceType
inherited
typedef BaseType::JacobianOperatorType Dune::Fem::AutomaticDifferenceOperator< DiscreteFunctionType , DiscreteFunctionType , AutomaticDifferenceLinearOperator< DiscreteFunctionType , DiscreteFunctionType > >::JacobianOperatorType
inherited
typedef BaseType::RangeFunctionType Dune::Fem::AutomaticDifferenceOperator< DiscreteFunctionType , DiscreteFunctionType , AutomaticDifferenceLinearOperator< DiscreteFunctionType , DiscreteFunctionType > >::RangeFunctionType
inherited
typedef RangeFunctionType::DiscreteFunctionSpaceType Dune::Fem::AutomaticDifferenceOperator< DiscreteFunctionType , DiscreteFunctionType , AutomaticDifferenceLinearOperator< DiscreteFunctionType , DiscreteFunctionType > >::RangeSpaceType
inherited
typedef Dune::FieldTraits< RangeFieldType >::real_type Dune::Fem::AutomaticDifferenceOperator< DiscreteFunctionType , DiscreteFunctionType , AutomaticDifferenceLinearOperator< DiscreteFunctionType , DiscreteFunctionType > >::RealType
inherited
typedef DestinationType::DiscreteFunctionSpaceType Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::SpaceType
inherited

type of discrete function space

Constructor & Destructor Documentation

template<class DiscreteFunctionType >
Dune::Fem::HdivProjection< DiscreteFunctionType >::HdivProjection ( const DiscreteFunctionSpaceType &  space)
inline

constructor taking space

template<class DiscreteFunctionType >
Dune::Fem::HdivProjection< DiscreteFunctionType >::HdivProjection ( const HdivProjection< DiscreteFunctionType > &  org)
inline

Member Function Documentation

virtual const DestinationType* Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::destination ( ) const
inlinevirtualinherited

return reference to pass's local memory

template<class DiscreteFunctionType >
template<class AdaptationType >
static void Dune::Fem::HdivProjection< DiscreteFunctionType >::estimator ( const DiscreteFunctionType &  velo,
AdaptationType &  adaptation 
)
inlinestatic
virtual bool Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::hasLimiter ( ) const
inlinevirtualinherited

return true if explicit limiter is available

Reimplemented from Dune::Fem::PARDGSpaceOperatorInterface< DiscreteFunctionType >.

virtual void Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::initializeTimeStepSize ( const DestinationType U0) const
virtualinherited

call operator once to calculate initial time step size

Parameters
U0initial data to compute initial time step size

Implements Dune::Fem::PARDGSpaceOperatorInterface< DiscreteFunctionType >.

virtual void Dune::Fem::DifferentiableOperator< AutomaticDifferenceLinearOperator< DiscreteFunctionType, DiscreteFunctionType > >::jacobian ( const DomainFunctionType u,
JacobianOperatorType jOp 
) const
pure virtualinherited

obtain linearization

Parameters
[in]uargument discrete function
[out]jOpdestination Jacobian operator
Note
This method has to be implemented by all derived classes.
virtual void Dune::Fem::AutomaticDifferenceOperator< DiscreteFunctionType , DiscreteFunctionType , AutomaticDifferenceLinearOperator< DiscreteFunctionType , DiscreteFunctionType > >::jacobian ( const DomainFunctionType u,
JacobianOperatorType jOp 
) const
inlinevirtualinherited
virtual void Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::limit ( const double *  u,
double *  f 
) const
virtualinherited

limiter application operator

Parameters
uargument, u
fdestination, Limiter(u)

Reimplemented from Dune::Fem::PARDGSpaceOperatorInterface< DiscreteFunctionType >.

virtual void Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::limit ( const DestinationType arg,
DestinationType dest 
) const
inlinevirtualinherited

limiter application operator

Parameters
argargument, u
destdestination, Limiter(u)

References Dune::Fem::PARDGSpaceOperatorInterface< DestinationImp >::initializeTimeStepSize().

template<class DiscreteFunctionType >
static double Dune::Fem::HdivProjection< DiscreteFunctionType >::normalJump ( const DiscreteFunctionType &  discFunc,
const int  polyOrder = -1 
)
inlinestatic

return sum of jumps of discrete function normal to intersection

References Dune::Fem::abs(), Dune::Fem::make_entity(), Dune::Fem::HdivProjection< DiscreteFunctionType >::space(), and Dune::Std::sum().

virtual void Dune::Fem::Operator< AutomaticDifferenceLinearOperator< DiscreteFunctionType, DiscreteFunctionType >::DomainFunctionType , AutomaticDifferenceLinearOperator< DiscreteFunctionType, DiscreteFunctionType >::RangeFunctionType >::operator() ( const DomainFunctionType u,
RangeFunctionType w 
) const
pure virtualinherited

application operator

Parameters
[in]uargument discrete function
[out]wdestination discrete function
Note
This method has to be implemented by all derived classes.
virtual void Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::operator() ( const double *  u,
double *  f 
) const
virtualinherited

application operator to apply right hand side

Parameters
uargument, u
fdestination, f(u)

Implements Dune::Fem::PARDGSpaceOperatorInterface< DiscreteFunctionType >.

template<class DiscreteFunctionType >
virtual void Dune::Fem::HdivProjection< DiscreteFunctionType >::operator() ( const DiscreteFunctionType &  arg,
DiscreteFunctionType &  dest 
) const
inlinevirtual

application operator projection arg to H-div space

template<class DiscreteFunctionType >
void Dune::Fem::HdivProjection< DiscreteFunctionType >::setTime ( double  time)
inlinevirtual

set time for operators

Parameters
timecurrent time of evaluation

Reimplemented from Dune::Fem::PARDGSpaceOperatorInterface< DiscreteFunctionType >.

virtual int Dune::Fem::SpaceOperatorInterface< DiscreteFunctionType >::size ( ) const
inlinevirtualinherited
template<class DiscreteFunctionType >
const DiscreteFunctionSpaceType& Dune::Fem::HdivProjection< DiscreteFunctionType >::space ( ) const
inlinevirtual
template<class DiscreteFunctionType >
double Dune::Fem::HdivProjection< DiscreteFunctionType >::timeStepEstimate ( ) const
inlinevirtual

estimate maximum time step

For an explicit time discretization, the time step has to be limited. An estimate for the maximum time step of an explicit Euler scheme is returned by this function. Maximum time steps for higher order Runge Kutta schemes can be derived from this value.

Reimplemented from Dune::Fem::PARDGSpaceOperatorInterface< DiscreteFunctionType >.


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