Go to the documentation of this file.
3 #ifndef DUNE_GEOGRID_COORDFUNCTIONCALLER_HH
4 #define DUNE_GEOGRID_COORDFUNCTIONCALLER_HH
18 template<
class HostEntity,
class CoordFunctionInterface >
21 template<
class HostEntity,
class ct,
unsigned int dimD,
unsigned int dimR,
class Impl >
27 static const int codimension = HostEntity::codimension;
34 : hostCorners_( hostEntity ),
35 coordFunction_( coordFunction )
40 coordFunction_.evaluate( hostCorners_[ i ], y );
45 return hostCorners_.type();
50 return hostCorners_.size();
55 const CoordFunctionInterface &coordFunction_;
58 template<
class HostEntity,
class ct,
unsigned int dimR,
class Impl >
69 : hostEntity_( hostEntity ),
70 coordFunction_( coordFunction )
73 void evaluate (
unsigned int i, RangeVector &y )
const
75 coordFunction_.evaluate( hostEntity_, i, y );
80 return hostEntity_.type();
85 const Dune::ReferenceElement< ct, HostEntity::mydimension > &refElement
86 = Dune::ReferenceElements< ct, HostEntity::mydimension >::general( type() );
87 return refElement.size( HostEntity::mydimension );
91 const HostEntity &hostEntity_;
92 const CoordFunctionInterface &coordFunction_;
99 #endif // #ifndef DUNE_GEOGRID_COORDFUNCTIONCALLER_HH
void evaluate(unsigned int i, RangeVector &y) const
Definition: coordfunctioncaller.hh:73
Include standard header files.
Definition: agrid.hh:59
Definition: coordfunctioncaller.hh:19
CoordFunctionCaller(const HostEntity &hostEntity, const CoordFunctionInterface &coordFunction)
Definition: coordfunctioncaller.hh:67
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
CoordFunctionCaller(const HostEntity &hostEntity, const CoordFunctionInterface &coordFunction)
Definition: coordfunctioncaller.hh:32
CoordFunctionInterface::RangeVector RangeVector
Definition: coordfunctioncaller.hh:30
GeometryType type() const
Definition: coordfunctioncaller.hh:43
GeometryType type() const
Definition: coordfunctioncaller.hh:78
FieldVector< ctype, dimRange > RangeVector
range vector for the evaluate method
Definition: coordfunction.hh:155
void evaluate(unsigned int i, RangeVector &y) const
Definition: coordfunctioncaller.hh:38
FieldVector< ctype, dimRange > RangeVector
range vector for the evaluate method
Definition: coordfunction.hh:59
Interface class for using a discrete function to define the geometry of a Dune::GeometryGrid....
Definition: coordfunction.hh:138
std::size_t size() const
Definition: coordfunctioncaller.hh:83
std::size_t size() const
Definition: coordfunctioncaller.hh:48
Definition: hostcorners.hh:19
Interface class for using an analytical function to define the geometry of a Dune::GeometryGrid....
Definition: coordfunction.hh:38