Dune-Fufem 2.11-git
Loading...
Searching...
No Matches
DeformationHierarchyFunction< GridView, CoefficientVectorType > Class Template Reference

Function that computes the deformed position from a given host gridview. This can be used inside of GeometryGrid. More...

#include <dune/fufem/functions/deformationfunction.hh>

Inheritance diagram for DeformationHierarchyFunction< GridView, CoefficientVectorType >:
Inheritance graph

Public Types

typedef Base::RangeVector RangeVector
 
typedef This Interface
 
typedef Impl Implementation
 

Public Member Functions

 DeformationHierarchyFunction (const GridView &gridView)
 
 DeformationHierarchyFunction (const GridView &gridView, const CoefficientVectorType &deformation)
 
virtual void setGridView (const GridView &gridView)
 
void evaluate (const typename GridView::template Codim< 0 >::Entity &hostEntity, unsigned int corner, typename Base::RangeVector &y) const
 Evaluate function at a corner of a host entity.
 
void setDeformation (const CoefficientVectorType &deformation)
 Change the deformation vector.
 
virtual void evaluate (const typename GridView::template Codim< dim >::Entity &hostVertex, unsigned int corner, Dune::FieldVector< ctype, dim > &y) const
 Evaluate function at a host vertex (corner param is redundant but prescribed by the interface...)
 
void evaluate (const HostEntity &hostEntity, unsigned int corner, RangeVector &y) const
 
void adapt ()
 Adapt to changes in the host grid.
 
const CoefficientVectorType & getDeformation ()
 

Static Public Attributes

static const unsigned int dimRange
 

Protected Member Functions

const ImplementationasImp () const
 
ImplementationasImp ()
 

Protected Attributes

std::unique_ptr< GridView > gridView_
 The gridview of the undeformed grid.
 
CoefficientVectorType deformation_
 The coefficient vector of the displacements of the vertices of the gridview.
 

Detailed Description

template<class GridView, class CoefficientVectorType>
class DeformationHierarchyFunction< GridView, CoefficientVectorType >

Function that computes the deformed position from a given host gridview. This can be used inside of GeometryGrid.

Template Parameters
GridView- The grid view of the undeformed grid.
CoefficientVectorType- The type the vertex coefficients are stored in.
Deprecated:
This class is deprecated and will be removed after 2.11. Use Dune::Fufen::Experimental::DeformationFunction instead.

Member Typedef Documentation

◆ RangeVector

template<class GridView , class CoefficientVectorType >
typedef Base::RangeVector DeformationFunction< GridView, CoefficientVectorType >::RangeVector
inherited

Constructor & Destructor Documentation

◆ DeformationHierarchyFunction() [1/2]

template<class GridView , class CoefficientVectorType >
DeformationHierarchyFunction< GridView, CoefficientVectorType >::DeformationHierarchyFunction ( const GridView &  gridView)
inline

◆ DeformationHierarchyFunction() [2/2]

template<class GridView , class CoefficientVectorType >
DeformationHierarchyFunction< GridView, CoefficientVectorType >::DeformationHierarchyFunction ( const GridView &  gridView,
const CoefficientVectorType &  deformation 
)
inline

Member Function Documentation

◆ adapt()

template<class GridView , class CoefficientVectorType >
void DeformationFunction< GridView, CoefficientVectorType >::adapt ( )
inlineinherited

Adapt to changes in the host grid.

◆ evaluate() [1/2]

template<class GridView , class CoefficientVectorType >
void DeformationHierarchyFunction< GridView, CoefficientVectorType >::evaluate ( const typename GridView::template Codim< 0 >::Entity hostEntity,
unsigned int  corner,
typename Base::RangeVector y 
) const
inlinevirtual

Evaluate function at a corner of a host entity.

Reimplemented from DeformationFunction< GridView, CoefficientVectorType >.

◆ evaluate() [2/2]

template<class GridView , class CoefficientVectorType >
virtual void DeformationFunction< GridView, CoefficientVectorType >::evaluate ( const typename GridView::template Codim< dim >::Entity hostVertex,
unsigned int  corner,
Dune::FieldVector< ctype, dim > &  y 
) const
inlinevirtualinherited

Evaluate function at a host vertex (corner param is redundant but prescribed by the interface...)

◆ getDeformation()

template<class GridView , class CoefficientVectorType >
const CoefficientVectorType & DeformationFunction< GridView, CoefficientVectorType >::getDeformation ( )
inlineinherited

◆ setDeformation()

template<class GridView , class CoefficientVectorType >
void DeformationFunction< GridView, CoefficientVectorType >::setDeformation ( const CoefficientVectorType &  deformation)
inlineinherited

Change the deformation vector.

◆ setGridView()

template<class GridView , class CoefficientVectorType >
virtual void DeformationHierarchyFunction< GridView, CoefficientVectorType >::setGridView ( const GridView &  gridView)
inlinevirtual

Member Data Documentation

◆ deformation_

template<class GridView , class CoefficientVectorType >
CoefficientVectorType DeformationFunction< GridView, CoefficientVectorType >::deformation_
protectedinherited

The coefficient vector of the displacements of the vertices of the gridview.

◆ gridView_

template<class GridView , class CoefficientVectorType >
std::unique_ptr<GridView> DeformationFunction< GridView, CoefficientVectorType >::gridView_
protectedinherited

The gridview of the undeformed grid.


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