3 #ifndef DUNE_IDENTITYGRIDGEOMETRY_HH 4 #define DUNE_IDENTITYGRIDGEOMETRY_HH 10 #include <dune/common/fmatrix.hh> 11 #include <dune/common/typetraits.hh> 16 template<
int mydim,
int coorddim,
class Gr
idImp>
22 typedef typename GridImp::ctype ctype;
32 typedef typename GridImp::HostGridType::Traits::template Codim<CodimInHostGrid>::Geometry
HostGridGeometryType;
35 typedef typename conditional<coorddim==DimensionWorld, HostGridGeometryType, HostGridLocalGeometryType>::type
HostGridGeometry;
67 const FieldVector<ctype, coorddim>
corner (
int i)
const {
74 FieldVector<ctype, coorddim>
global (
const FieldVector<ctype, mydim>&
local)
const {
87 FieldVector<ctype, mydim>
local (
const FieldVector<ctype, coorddim>&
global)
const {
ctype integrationElement(const FieldVector< ctype, mydim > &local) const
Definition: identitygridgeometry.hh:100
Definition: identitygridgeometry.hh:17
Wrapper and interface classes for element geometries.
int corners() const
return the number of corners of this element. Corners are numbered 0...n-1
Definition: identitygridgeometry.hh:61
GridImp::HostGridType::Traits::template Codim< CodimInHostGrid >::Geometry HostGridGeometryType
Definition: identitygridgeometry.hh:32
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
IdentityGridGeometry(const HostGridGeometry &hostGeometry)
Definition: identitygridgeometry.hh:44
HostGridGeometryType::JacobianInverseTransposed JacobianInverseTransposed
type of jacobian transposed
Definition: identitygridgeometry.hh:38
FieldVector< ctype, coorddim > global(const FieldVector< ctype, mydim > &local) const
Maps a local coordinate within reference element to global coordinate in element. ...
Definition: identitygridgeometry.hh:74
JacobianTransposed jacobianTransposed(const FieldVector< ctype, mydim > &local) const
Return the transposed of the Jacobian.
Definition: identitygridgeometry.hh:81
HostGridGeometry hostGeometry_
Definition: identitygridgeometry.hh:111
bool affine() const
Definition: identitygridgeometry.hh:56
HostGridGeometryType::JacobianTransposed JacobianTransposed
Definition: identitygridgeometry.hh:39
GridImp::HostGridType::Traits::template Codim< CodimInHostGrid >::Geometry HostGridLocalGeometryType
Definition: identitygridgeometry.hh:33
JacobianInverseTransposed jacobianInverseTransposed(const FieldVector< ctype, mydim > &local) const
The Jacobian matrix of the mapping from the reference element to this element.
Definition: identitygridgeometry.hh:106
Include standard header files.
Definition: agrid.hh:59
Definition: identitygridgeometry.hh:28
GeometryType type() const
Return the element type identifier.
Definition: identitygridgeometry.hh:51
conditional< coorddim==DimensionWorld, HostGridGeometryType, HostGridLocalGeometryType >::type HostGridGeometry
Definition: identitygridgeometry.hh:35
Definition: identitygridgeometry.hh:29
const FieldVector< ctype, coorddim > corner(int i) const
access to coordinates of corners. Index is the number of the corner
Definition: identitygridgeometry.hh:67
bool checkInside(const FieldVector< ctype, mydim > &local) const
Returns true if the point is in the current element.
Definition: identitygridgeometry.hh:93
FieldVector< ctype, mydim > local(const FieldVector< ctype, coorddim > &global) const
Maps a global coordinate within the element to a local coordinate in its reference element...
Definition: identitygridgeometry.hh:87
Default implementation for class Geometry.
Definition: common/geometry.hh:301