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>
|
template<class HostEntity > |
void | evaluate (const HostEntity &hostEntity, unsigned int corner, RangeVector &y) const |
| evaluate method More...
|
|
void | adapt () |
| method called from grid.adapt() method to allow adaptation of the discrete coordinate function More...
|
|
|
static const unsigned int | dimRange = dimR |
| dimension of the range vector More...
|
|
template<class ct, unsigned int dimR, class Impl>
class Dune::DiscreteCoordFunctionInterface< 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.
- Template Parameters
-
template<class ct, unsigned int dimR, class Impl>
field type of the coordinate vector
template<class ct, unsigned int dimR, class Impl>
template<class ct, unsigned int dimR, class Impl>
template<class ct, unsigned int dimR, class Impl>
range vector for the evaluate method
template<class ct, unsigned int dimR, class Impl>
template<class ct, unsigned int dimR, class Impl>
template<class ct, unsigned int dimR, class Impl>
template<class ct, unsigned int dimR, class Impl>
template<class HostEntity >
evaluate method
- Parameters
-
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 |
template<class ct, unsigned int dimR, class Impl>
dimension of the range vector
The documentation for this class was generated from the following file: