estimator::LocalProjections_P< dim, F, H > Class Template Referenceabstract

#include <buergDoerfler.hh>

Inheritance diagram for estimator::LocalProjections_P< dim, F, H >:
estimator::LocalProjectionBase< F, typename concepts::Realtype< F >::type > concepts::ElementFormula< concepts::Point< F, dim >, typename concepts::Realtype< F >::type > concepts::OutputOperator concepts::Cloneable concepts::OutputOperator

Public Types

typedef concepts::Point< F, dim > value_type
 

Public Member Functions

virtual LocalProjections_P< dim, F, H > * clone () const
 Virtual copy constructor. More...
 
virtual ElementFormula< concepts::Point< F, dim >, typename concepts::Realtype< F >::type > * clone () const=0
 Virtual copy constructor. More...
 
 LocalProjections_P (const enum pattern pat, const concepts::HashMap< const hp2D::Quad< H > * > &source, LocalMesh2 &locMsh, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, H > &f)
 Constructor sources are the original elements that i.e. More...
 
 LocalProjections_P (const LocalProjections_P< dim, F, H > &frm)
 
virtual concepts::Point< F, dim > operator() (const concepts::ElementWithCell< H > &elm, const concepts::Real2d &p, const Real t=0.0) const
 
virtual concepts::Point< F, dim > operator() (const concepts::ElementWithCell< H > &elm, const concepts::Real3d &p, const Real t=0.0) const
 
virtual concepts::Point< F, dim > operator() (const concepts::ElementWithCell< H > &elm, const Real p, const Real t=0.0) const
 
virtual concepts::Point< F, dim > operator() (const ElementWithCell< typename concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual concepts::Point< F, dim > operator() (const ElementWithCell< typename concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual concepts::Point< F, dim > operator() (const ElementWithCell< typename concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual ~LocalProjections_P ()
 

Protected Member Functions

void addH4_ (const concepts::HashMap< const hp2D::Quad< typename concepts::Realtype< F >::type > * > &source, LocalMesh2 &locMsh, const concepts::Vector< F > &sol)
 
void addP1ISO_ (const concepts::HashMap< const hp2D::Quad< typename concepts::Realtype< F >::type > * > &source, LocalMesh2 &locMsh, const concepts::Vector< F > &sol)
 
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Protected Attributes

concepts::HashMap< concepts::Array< F > > coeffs_
 
__gnu_cxx::hash_map< uint, PointProjection > data_
 
enum pattern pat_
 

Private Attributes

std::auto_ptr< concepts::ElementFunction< F, H > > f_
 

Detailed Description

template<uint dim, class F, class H = typename concepts::Realtype<F>::type>
class estimator::LocalProjections_P< dim, F, H >

Definition at line 204 of file buergDoerfler.hh.

Member Typedef Documentation

◆ value_type

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

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ LocalProjections_P() [1/2]

template<uint dim, class F , class H = typename concepts::Realtype<F>::type>
estimator::LocalProjections_P< dim, F, H >::LocalProjections_P ( const enum pattern  pat,
const concepts::HashMap< const hp2D::Quad< H > * > &  source,
LocalMesh2 locMsh,
const concepts::Vector< F > &  sol,
const concepts::ElementFunction< F, H > &  f 
)

Constructor sources are the original elements that i.e.

have unique keys. The local mesh must consists of (topologic and geomentric) clones (i.e. the same key), of that elements, that may have direct childs (no enkel ..)

The localprojection then builds a child to father relationship, that is used to determine while application operators are called, how to project the Elementfunction (of original elements solution) onto the child cells

This is indeed equivalent to nested space use and also could be handles with S matrices and its prolongation. This is avoided increase Speed.

TODO: locMsh überdenken, bei wichtiger reihenfolge ist das hier egal

Elementfunction is Q :

For Grad Q = quad2d for value Q = Real usw

use template<uint dim, typename F = Real, typename Q = Quad<Real> >

◆ LocalProjections_P() [2/2]

template<uint dim, class F , class H = typename concepts::Realtype<F>::type>
estimator::LocalProjections_P< dim, F, H >::LocalProjections_P ( const LocalProjections_P< dim, F, H > &  frm)

◆ ~LocalProjections_P()

template<uint dim, class F , class H = typename concepts::Realtype<F>::type>
virtual estimator::LocalProjections_P< dim, F, H >::~LocalProjections_P ( )
virtual

Member Function Documentation

◆ addH4_()

void estimator::LocalProjectionBase< F, typename concepts::Realtype< F >::type >::addH4_ ( const concepts::HashMap< const hp2D::Quad< typename concepts::Realtype< F >::type > * > &  source,
LocalMesh2 locMsh,
const concepts::Vector< F > &  sol 
)
protectedinherited

◆ addP1ISO_()

void estimator::LocalProjectionBase< F, typename concepts::Realtype< F >::type >::addP1ISO_ ( const concepts::HashMap< const hp2D::Quad< typename concepts::Realtype< F >::type > * > &  source,
LocalMesh2 locMsh,
const concepts::Vector< F > &  sol 
)
protectedinherited

◆ clone() [1/2]

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

Virtual copy constructor.

Implements concepts::Cloneable.

Definition at line 249 of file buergDoerfler.hh.

◆ clone() [2/2]

virtual ElementFormula<concepts::Point< F, dim > ,typename concepts::Realtype< F >::type >* concepts::ElementFormula< concepts::Point< F, dim > , typename concepts::Realtype< F >::type >::clone
pure virtualinherited

Virtual copy constructor.

◆ info()

template<uint dim, class F , class H = typename concepts::Realtype<F>::type>
virtual std::ostream& estimator::LocalProjections_P< dim, F, H >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

◆ operator()() [1/6]

template<uint dim, class F , class H = typename concepts::Realtype<F>::type>
virtual concepts::Point<F,dim> estimator::LocalProjections_P< dim, F, H >::operator() ( const concepts::ElementWithCell< H > &  elm,
const concepts::Real2d p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [2/6]

template<uint dim, class F , class H = typename concepts::Realtype<F>::type>
virtual concepts::Point<F,dim> estimator::LocalProjections_P< dim, F, H >::operator() ( const concepts::ElementWithCell< H > &  elm,
const concepts::Real3d p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [3/6]

template<uint dim, class F , class H = typename concepts::Realtype<F>::type>
virtual concepts::Point<F,dim> estimator::LocalProjections_P< dim, F, H >::operator() ( const concepts::ElementWithCell< H > &  elm,
const Real  p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [4/6]

virtual concepts::Point< F, dim > concepts::ElementFormula< concepts::Point< F, dim > , typename concepts::Realtype< F >::type >::operator() ( const ElementWithCell< typename concepts::Realtype< F >::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/6]

virtual concepts::Point< F, dim > concepts::ElementFormula< concepts::Point< F, dim > , typename concepts::Realtype< F >::type >::operator() ( const ElementWithCell< typename concepts::Realtype< F >::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/6]

virtual concepts::Point< F, dim > concepts::ElementFormula< concepts::Point< F, dim > , typename concepts::Realtype< F >::type >::operator() ( const ElementWithCell< typename concepts::Realtype< F >::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

Member Data Documentation

◆ coeffs_

concepts::HashMap<concepts::Array<F> > estimator::LocalProjectionBase< F, typename concepts::Realtype< F >::type >::coeffs_
protectedinherited

Definition at line 105 of file buergDoerfler.hh.

◆ data_

__gnu_cxx::hash_map<uint, PointProjection> estimator::LocalProjectionBase< F, typename concepts::Realtype< F >::type >::data_
protectedinherited

Definition at line 148 of file buergDoerfler.hh.

◆ f_

template<uint dim, class F , class H = typename concepts::Realtype<F>::type>
std::auto_ptr<concepts::ElementFunction<F,H> > estimator::LocalProjections_P< dim, F, H >::f_
private

Definition at line 257 of file buergDoerfler.hh.

◆ pat_

enum pattern estimator::LocalProjectionBase< F, typename concepts::Realtype< F >::type >::pat_
protectedinherited

Definition at line 105 of file buergDoerfler.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