Prediction hp - adaptive refinement strategy, proposed by Melenk and Wohlmuth. More...

#include <refinement.hh>

Inheritance diagram for estimator::Prediction< F, dim >:
estimator::HP_Refinement< Real, 2 > estimator::Refinement< Real > concepts::OutputOperator

Public Types

enum  Mode { H = 0, P = 1 }
 

Public Member Functions

virtual void apply (concepts::SpaceOnCells< F > &space)
 
virtual void apply (concepts::SpaceOnCells< Real > &space)
 
void buildRefinement (const Marking &mark, const concepts::LocalEstimator< F > &estimator)
 
 Prediction (const concepts::SpaceOnCells< F > &space, enum Mode mode=P, const Real hdec=sqrt(4.0), const Real pdec=sqrt(0.4), const Real nRdec=1.0)
 Constructor for the prediction refinement strategy. More...
 
virtual ~Prediction ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Protected Attributes

concepts::HashMap< concepts::AdaptiveAdjustP< dim > > adjusts_
 

Private Attributes

concepts::HashMap< const concepts::Cell * > cells_
 
Real hdecay_
 
concepts::Sequence< const concepts::Cell * > hRefCurCells_
 
Real noRefdecay_
 
concepts::HashMap< concepts::Array< ushort > > p_
 
Real pdecay_
 
concepts::HashMap< Real > pred_
 

Detailed Description

template<class F = Real, ushort dim = 2>
class estimator::Prediction< F, dim >

Prediction hp - adaptive refinement strategy, proposed by Melenk and Wohlmuth.

Currently just isotropic refinement, i.e.

  • p refinement : increase in both direction
  • h refinement : bisection in each direction

Definition at line 99 of file refinement.hh.

Member Enumeration Documentation

◆ Mode

template<class F = Real, ushort dim = 2>
enum estimator::Prediction::Mode
Enumerator

Definition at line 107 of file refinement.hh.

Constructor & Destructor Documentation

◆ Prediction()

template<class F = Real, ushort dim = 2>
estimator::Prediction< F, dim >::Prediction ( const concepts::SpaceOnCells< F > &  space,
enum Mode  mode = P,
const Real  hdec = sqrt(4.0),
const Real  pdec = sqrt(0.4),
const Real  nRdec = 1.0 
)
inline

Constructor for the prediction refinement strategy.

Parameters
space
mark
estimator
hdecvalue for error decay supposed for h refinement
pdecvalue for error decay supposed for p-refinement pval $\in (0,1) $
nRdecdecay value for error change if no refinement is applied

default values may set by the ones given in the paper of Melenk/Wolmuth, i.e.

Definition at line 122 of file refinement.hh.

◆ ~Prediction()

template<class F = Real, ushort dim = 2>
virtual estimator::Prediction< F, dim >::~Prediction ( )
inlinevirtual

Definition at line 183 of file refinement.hh.

Member Function Documentation

◆ apply() [1/2]

template<class F = Real, ushort dim = 2>
virtual void estimator::Prediction< F, dim >::apply ( concepts::SpaceOnCells< F > &  space)
inlinevirtual

Definition at line 237 of file refinement.hh.

◆ apply() [2/2]

virtual void estimator::HP_Refinement< Real , dim >::apply ( concepts::SpaceOnCells< F > &  space)
inlinevirtualinherited

Implements estimator::Refinement< Real >.

Definition at line 64 of file refinement.hh.

◆ buildRefinement()

template<class F = Real, ushort dim = 2>
void estimator::Prediction< F, dim >::buildRefinement ( const Marking mark,
const concepts::LocalEstimator< F > &  estimator 
)
inline

Definition at line 187 of file refinement.hh.

◆ info()

template<class F = Real, ushort dim = 2>
virtual std::ostream& estimator::Prediction< F, dim >::info ( std::ostream &  os) const
inlineprotectedvirtual

Returns information in an output stream.

Implements estimator::Refinement< Real >.

Definition at line 282 of file refinement.hh.

Member Data Documentation

◆ adjusts_

concepts::HashMap<concepts::AdaptiveAdjustP<dim> > estimator::HP_Refinement< Real , dim >::adjusts_
protectedinherited

Definition at line 87 of file refinement.hh.

◆ cells_

template<class F = Real, ushort dim = 2>
concepts::HashMap<const concepts::Cell* > estimator::Prediction< F, dim >::cells_
private

Definition at line 306 of file refinement.hh.

◆ hdecay_

template<class F = Real, ushort dim = 2>
Real estimator::Prediction< F, dim >::hdecay_
private

Definition at line 293 of file refinement.hh.

◆ hRefCurCells_

template<class F = Real, ushort dim = 2>
concepts::Sequence<const concepts::Cell* > estimator::Prediction< F, dim >::hRefCurCells_
private

Definition at line 311 of file refinement.hh.

◆ noRefdecay_

template<class F = Real, ushort dim = 2>
Real estimator::Prediction< F, dim >::noRefdecay_
private

Definition at line 297 of file refinement.hh.

◆ p_

template<class F = Real, ushort dim = 2>
concepts::HashMap<concepts::Array<ushort> > estimator::Prediction< F, dim >::p_
private

Definition at line 303 of file refinement.hh.

◆ pdecay_

template<class F = Real, ushort dim = 2>
Real estimator::Prediction< F, dim >::pdecay_
private

Definition at line 295 of file refinement.hh.

◆ pred_

template<class F = Real, ushort dim = 2>
concepts::HashMap<Real> estimator::Prediction< F, dim >::pred_
private

Definition at line 300 of file refinement.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