KASKADE 7 development version
Public Types | Public Member Functions | Protected Attributes | List of all members
Kaskade::LocalGeometryInCoarseGridAncestor< Grid > Class Template Reference

#include <mllgeometry.hh>

Detailed Description

template<class Grid>
class Kaskade::LocalGeometryInCoarseGridAncestor< Grid >
Todo:
doc me

Definition at line 328 of file mllgeometry.hh.

Inheritance diagram for Kaskade::LocalGeometryInCoarseGridAncestor< Grid >:
Kaskade::MultiLevelLocalGeometry< Grid >

Public Types

enum  Direction { ChildIsGlobal , FatherIsGlobal }
 
typedef Grid::template Codim< 0 >::Entity Entity
 The entity type between which this geometry object maps. More...
 

Public Member Functions

 LocalGeometryInCoarseGridAncestor (Grid const &grid, Cell const &child, bool geometricallyNested=false)
 
Dune::FieldVector< ctype, dim > global (Dune::FieldVector< ctype, dim >const &x) const
 Transformation from local to global. More...
 
Cell const & getFather () const
 
Entity const & localEntity () const
 A reference to the local entity. More...
 
void global (std::vector< Dune::FieldVector< ctype, dim > > &x, std::vector< int > &componentsInside) const
 Transformation from local to global. More...
 
void local (std::vector< Dune::FieldVector< ctype, dim > > &x, std::vector< int > &componentsInside) const
 Transformation from global to local. More...
 
Dune::FieldMatrix< ctype, dim, dim > jacobianInverseTransposed (Dune::FieldVector< ctype, dim > const &xLocal) const
 inverse of transposed Jacobian. More...
 

Protected Attributes

Cell child
 
Cell ancestor
 

Member Typedef Documentation

◆ Entity

template<class Grid >
typedef Grid::template Codim<0>::Entity Kaskade::MultiLevelLocalGeometry< Grid >::Entity
inherited

The entity type between which this geometry object maps.

Definition at line 74 of file mllgeometry.hh.

Member Enumeration Documentation

◆ Direction

template<class Grid >
enum Kaskade::MultiLevelLocalGeometry::Direction
inherited
Enumerator
ChildIsGlobal 
FatherIsGlobal 

Definition at line 68 of file mllgeometry.hh.

Constructor & Destructor Documentation

◆ LocalGeometryInCoarseGridAncestor()

template<class Grid >
Kaskade::LocalGeometryInCoarseGridAncestor< Grid >::LocalGeometryInCoarseGridAncestor ( Grid const &  grid,
Cell const &  child,
bool  geometricallyNested = false 
)
inline

Definition at line 335 of file mllgeometry.hh.

Member Function Documentation

◆ getFather()

template<class Grid >
Cell const & Kaskade::LocalGeometryInCoarseGridAncestor< Grid >::getFather ( ) const
inline

Definition at line 351 of file mllgeometry.hh.

◆ global() [1/2]

template<class Grid >
Dune::FieldVector< ctype, dim > Kaskade::LocalGeometryInCoarseGridAncestor< Grid >::global ( Dune::FieldVector< ctype, dim >const &  x) const
inline

Transformation from local to global.

Definition at line 343 of file mllgeometry.hh.

◆ global() [2/2]

template<class Grid >
void Kaskade::MultiLevelLocalGeometry< Grid >::global ( std::vector< Dune::FieldVector< ctype, dim > > &  x,
std::vector< int > &  componentsInside 
) const
inlineinherited

Transformation from local to global.

Definition at line 138 of file mllgeometry.hh.

Referenced by Kaskade::LocalGeometryInCoarseGridAncestor< Grid >::global().

◆ jacobianInverseTransposed()

template<class Grid >
Dune::FieldMatrix< ctype, dim, dim > Kaskade::MultiLevelLocalGeometry< Grid >::jacobianInverseTransposed ( Dune::FieldVector< ctype, dim > const &  xLocal) const
inlineinherited

inverse of transposed Jacobian.

The Jacobian is just the derivative of the local to global map \( g \). This methhod returns the transpose of its inverse.

Definition at line 188 of file mllgeometry.hh.

◆ local()

template<class Grid >
void Kaskade::MultiLevelLocalGeometry< Grid >::local ( std::vector< Dune::FieldVector< ctype, dim > > &  x,
std::vector< int > &  componentsInside 
) const
inlineinherited

Transformation from global to local.

Only those points are returned that lie inside the local entity. All others are deleted during the process.

Parameters
xa sequence of global positions. On return, only those are retained and transformed to local positions that are inside the local cell.
componentsInsidea sequence of the same length as x. Only the elements corresponding to retained positions are retained.

Usually, componentsInside contains an index list 0,1,...,size(x)-1 on entry. This way, on exit the vector contains the original indices of the retained positions.

Note that "insideness" can be controlled by setting the tol_ parameter on construction.

Definition at line 169 of file mllgeometry.hh.

Referenced by Kaskade::localProlongationMatrix(), and Kaskade::LocalTransfer< Space, CoarseningPolicy >::LocalTransfer().

◆ localEntity()

template<class Grid >
Entity const & Kaskade::MultiLevelLocalGeometry< Grid >::localEntity ( ) const
inlineinherited

A reference to the local entity.

Definition at line 134 of file mllgeometry.hh.

Member Data Documentation

◆ ancestor

template<class Grid >
Cell Kaskade::MultiLevelLocalGeometry< Grid >::ancestor
protectedinherited

◆ child

template<class Grid >
Cell Kaskade::MultiLevelLocalGeometry< Grid >::child
protectedinherited

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