dune-grid
2.2.0
|
Interface class for using a discrete function to define the geometry of a Dune::GeometryGrid. An implementation should be derived from Dune::DiscreteCoordinateFunction and the evaluate method taking an entity of the host grid together with the number of a vertex returns the coordinate in of that corner. The user must ensure continuity of this mapping. In addition an adapt method is provided which is called whenever
adapt()
is called on the Dune::GeometryGrid.
More...
#include <dune/grid/geometrygrid/coordfunction.hh>
Public Types | |
typedef This | Interface |
typedef Impl | Implementation |
typedef ct | ctype |
field type of the coordinate vector | |
typedef FieldVector< ctype, dimRange > | RangeVector |
range vector for the evaluate method |
Public Member Functions | |
template<class HostEntity > | |
void | evaluate (const HostEntity &hostEntity, unsigned int corner, RangeVector &y) const |
evaluate method | |
void | adapt () |
method called from grid.adapt() method to allow adaptation of the discrete coordinate function |
Static Public Attributes | |
static const unsigned int | dimRange = dimR |
dimension of the range vector |
Protected Member Functions | |
const Implementation & | asImp () const |
Implementation & | asImp () |
Friends | |
class | DiscreteCoordFunction< ct, dimR, Impl > |
Interface class for using a discrete function to define the geometry of a Dune::GeometryGrid. An implementation should be derived from Dune::DiscreteCoordinateFunction and the evaluate method taking an entity of the host grid together with the number of a vertex returns the coordinate in of that corner. The user must ensure continuity of this mapping. In addition an adapt method is provided which is called whenever
adapt()
is called on the Dune::GeometryGrid.
ct | coordinate field type (ct in Dune::GeometryGrid) |
dimR | dimension of the range of the mapping (dimensionworld in Dune::GeometryGrid) |
Impl | implementation class (BN trick) |
typedef ct Dune::DiscreteCoordFunctionInterface< ct, dimR, Impl >::ctype |
field type of the coordinate vector
Reimplemented in Dune::CachedCoordFunction< HostGrid, CoordFunction, Allocator >.
typedef Impl Dune::DiscreteCoordFunctionInterface< ct, dimR, Impl >::Implementation |
typedef This Dune::DiscreteCoordFunctionInterface< ct, dimR, Impl >::Interface |
typedef FieldVector< ctype, dimRange > Dune::DiscreteCoordFunctionInterface< ct, dimR, Impl >::RangeVector |
range vector for the evaluate method
Reimplemented in Dune::DiscreteCoordFunction< ct, dimR, Impl >, Dune::DiscreteCoordFunction< CoordFunction::ctype, CoordFunction::dimRange, CachedCoordFunction< HostGrid, CoordFunction > >, and Dune::CachedCoordFunction< HostGrid, CoordFunction, Allocator >.
|
inline |
method called from grid.adapt() method to allow adaptation of the discrete coordinate function
Reimplemented in Dune::DiscreteCoordFunction< ct, dimR, Impl >, Dune::DiscreteCoordFunction< CoordFunction::ctype, CoordFunction::dimRange, CachedCoordFunction< HostGrid, CoordFunction > >, and Dune::CachedCoordFunction< HostGrid, CoordFunction, Allocator >.
Referenced by Dune::GeoGrid::AdaptCoordFunction< DiscreteCoordFunctionInterface< ct, dimR, Impl > >::adapt().
|
inlineprotected |
|
inlineprotected |
|
inline |
evaluate method
hostEntity | an entity of the host grid |
corner | the local number of the corner in the host entity |
y | return value for the coordinate of this corner |
|
friend |
|
static |
dimension of the range vector