KASKADE 7 development version
Classes | Namespaces | Functions
fetransfer.hh File Reference

Tools for transfer of data between grids. More...

#include <limits>
#include <memory>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <iterator>
#include <utility>
#include "dune/grid/common/grid.hh"
#include "dune/istl/bcrsmatrix.hh"
#include "dune/common/fvector.hh"
#include "dune/common/fmatrix.hh"
#include "dune/grid/io/file/dgfparser/dgfparser.hh"
#include "fem/fixdune.hh"
#include "fem/gridmanager.hh"
#include "fem/mllgeometry.hh"
#include "linalg/dynamicMatrix.hh"

Go to the source code of this file.

Classes

struct  Kaskade::AdaptationCoarseningPolicy
 policy class for LocalTransfer These two structures are used for determining whether to perform a "normal" grid transfer (default, AdaptionCoarseningPolicy), or to calculate prolongation matrices for a FE function space based on a HierarchicIndexSet (see mgtools.hh). More...
 
struct  Kaskade::MultilevelCoarseningPolicy
 policy class for LocalTransfer These two structures are used for determining whether to perform a "normal" grid transfer (default, AdaptionCoarseningPolicy), or to calculate prolongation matrices for a FE function space based on a HierarchicIndexSet (see mgtools.hh). More...
 
class  Kaskade::LocalTransfer< Space, CoarseningPolicy >
 Class that stores for a cell ("this entity" or "father") a local projection matrix. More...
 
class  Kaskade::TransferData< Space, CoarseningPolicy >
 A class storing data collected before grid adaptation that is necessary to transfer FE functions. This includes global indices of shape functions on leaf cells and restriction matrices to coarser cells in case some leaf cells might be removed during grid adaptation. More...
 
class  Kaskade::TransferData< Space, CoarseningPolicy >::TransferMatrix
 Matrix that transforms a data vector v_1 corresponding to the old grid to a data vector v_2 corresponding to the new grid, such that the functions represented by these vectors coincide as much as possible. More...
 
struct  Kaskade::InverseVolume
 A Weighing that associates to each cell its inverse volume. More...
 
struct  Kaskade::Volume
 A Weighing that associates to each cell its volume. More...
 
struct  Kaskade::PlainAverage
 A Weighing that associates to each cell a constant weight of 1. More...
 
struct  Kaskade::SumUp< scl >
 
class  Kaskade::WeakFunctionViewAdaptor< Functor >
 An adaptor that turns callables (e.g., lambdas) into weak function views. More...
 
class  Kaskade::FunctionViewAdaptor< Space_, Functor >
 An adaptor that allows to turn lambda functions into function views. More...
 

Namespaces

namespace  Kaskade
 
 

Functions

template<class Space , class ShapeFunctionSet >
void Kaskade::evaluateGlobalShapeFunctions (Space const &space, Cell< typename Space::GridView > const &cell, std::vector< LocalPosition< typename Space::GridView > > const &xi, DynamicMatrix< Dune::FieldMatrix< typename Space::Scalar, Space::sfComponents, 1 > > &sfValues, ShapeFunctionSet const &shapeFunctionSet)
 Computes the values of global shape functions at the given points (which are supposed to be local coordinates inside the cell to which the evaluator is currently moved). More...
 
template<class Space >
void Kaskade::evaluateGlobalShapeFunctions (Space const &space, Cell< typename Space::GridView > const &cell, std::vector< LocalPosition< typename Space::GridView > > const &x, DynamicMatrix< Dune::FieldMatrix< typename Space::Scalar, Space::sfComponents, 1 > > &sfValues)
 
template<class Space , class ShapeFunctionSet >
void Kaskade::approximateGlobalValues (Space const &space, typename Space::Grid::template Codim< 0 >::Entity const &cell, DynamicMatrix< Dune::FieldMatrix< typename Space::Scalar, Space::sfComponents, 1 > > &globalValues, DynamicMatrix< Dune::FieldMatrix< typename Space::Scalar, 1, 1 > > &coeff, ShapeFunctionSet const &sfs)
 Computes global shape function coefficients such that the given set of global function values at the interpolation nodes of the shape function set are approximated by the resulting linear combinations of global shape functions. More...
 
template<class Space >
void Kaskade::approximateGlobalValues (Space const &space, typename Space::Grid::template Codim< 0 >::Entity const &cell, DynamicMatrix< Dune::FieldMatrix< typename Space::Scalar, Space::sfComponents, 1 > > &globalValues, DynamicMatrix< Dune::FieldMatrix< typename Space::Scalar, 1, 1 > > &coeff)
 
template<class ChildSpace , class FatherSpace >
void Kaskade::localProlongationMatrix (ChildSpace const &childSpace, Cell< typename ChildSpace::Grid > const &child, FatherSpace const &fatherSpace, Cell< typename FatherSpace::Grid > const &father, DynamicMatrix< Dune::FieldMatrix< typename ChildSpace::Scalar, 1, 1 > > &prolongation, typename ChildSpace::Mapper::ShapeFunctionSet const &childSfs, typename FatherSpace::Mapper::ShapeFunctionSet const &fatherSfs)
 Computes a local prolongation matrix for global shape functions from father cell to child cell. More...
 
template<class ChildSpace , class FatherSpace >
void Kaskade::localProlongationMatrix (ChildSpace const &childSpace, Cell< typename ChildSpace::GridView > const &child, FatherSpace const &fatherSpace, Cell< typename FatherSpace::GridView > const &father, DynamicMatrix< Dune::FieldMatrix< typename ChildSpace::Scalar, 1, 1 > > &prolongation)
 Computes a local prolongation matrix from father cell to child cell. More...
 
template<typename Weighing = PlainAverage, typename FSElement , typename Function >
void Kaskade::interpolateGlobally (FSElement &fse, Function const &fu)
 Interpolates FunctionSpaceElement to FunctionSpaceElement. More...
 
template<typename Weighing = PlainAverage, typename Target , typename Source >
void Kaskade::interpolateGloballyWeak (Target &target, Source const &fu)
 Interpolates WeakFunctionViews to FunctionSpaceElement. More...
 
template<class Fu1 , class Fu2 >
void Kaskade::spaceTransfer (Fu1 &f1, Fu2 const &f2)
 DEPRECATED. Use interpolateGlobally instead. More...
 

Detailed Description

Tools for transfer of data between grids.

Author
Martin Weiser, Anton Schiela

Definition in file fetransfer.hh.