2#ifndef DUNE_PDELAB_COMMON_GEOMETRYWRAPPER_HH
3#define DUNE_PDELAB_COMMON_GEOMETRYWRAPPER_HH
5#include <dune/common/fvector.hh>
60 const unsigned int index;
69 typedef typename Geometry::ctype
ctype;
79 : i(i_),
index(index_)
91 const bool is_boundary = i.boundary();
92 return 0 - int(is_boundary);
116 return i.geometryInInside();
128 return i.geometryInOutside();
144 return i.indexInInside ();
150 return i.indexInOutside ();
157 Dune::FieldVector<ctype, coorddimension>
outerNormal (
const Dune::FieldVector<ctype, mydimension>& local)
const
159 return i.outerNormal(local);
168 Dune::FieldVector<ctype, coorddimension>
integrationOuterNormal (
const Dune::FieldVector<ctype, mydimension>& local)
const
170 return i.integrationOuterNormal(local);
178 Dune::FieldVector<ctype, coorddimension>
unitOuterNormal (
const Dune::FieldVector<ctype, mydimension>& local)
const
180 return i.unitOuterNormal(local);
190 return i.centerUnitOuterNormal();
206 DUNE_THROW(Dune::Exception,
"This should never be called.");
std::size_t index
Definition: interpolate.hh:97
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
Wrap element.
Definition: geometrywrapper.hh:16
const Entity & hostEntity() const
Definition: geometrywrapper.hh:41
Geometry geometry() const
Definition: geometrywrapper.hh:29
E Entity
Definition: geometrywrapper.hh:21
ElementGeometry(const E &e_)
Definition: geometrywrapper.hh:24
E::Geometry Geometry
Definition: geometrywrapper.hh:19
const Entity & entity() const
Definition: geometrywrapper.hh:35
Wrap intersection.
Definition: geometrywrapper.hh:57
bool neighbor() const
return true if intersection is shared with another element.
Definition: geometrywrapper.hh:102
Entity outside() const
return Entity on the outside of this intersection. That is the neighboring Entity.
Definition: geometrywrapper.hh:216
LocalGeometry geometryInInside() const
geometrical information about this intersection in local coordinates of the inside() entity.
Definition: geometrywrapper.hh:114
bool boundary() const
return true if intersection is with interior or exterior boundary (see the cases above)
Definition: geometrywrapper.hh:96
IntersectionGeometry(const I &i_, unsigned int index_)
Definition: geometrywrapper.hh:78
int outsideDomainIndex() const
Definition: geometrywrapper.hh:89
Entity inside() const
return Entity on the inside of this intersection. That is the Entity where we started this.
Definition: geometrywrapper.hh:196
int indexInOutside() const
Local number of codim 1 entity in outside() Entity where intersection is contained in.
Definition: geometrywrapper.hh:148
Dune::FieldVector< ctype, coorddimension > centerUnitOuterNormal() const
Return unit outer normal (length == 1)
Definition: geometrywrapper.hh:188
Geometry::ctype ctype
Definition: geometrywrapper.hh:69
const I & intersection() const
Definition: geometrywrapper.hh:222
Dune::FieldVector< ctype, coorddimension > integrationOuterNormal(const Dune::FieldVector< ctype, mydimension > &local) const
return outer normal scaled with the integration element
Definition: geometrywrapper.hh:168
I::Geometry Geometry
Definition: geometrywrapper.hh:63
Geometry geometry() const
geometrical information about this intersection in global coordinates.
Definition: geometrywrapper.hh:136
unsigned int intersectionIndex() const
Definition: geometrywrapper.hh:227
int insideDomainIndex() const
Definition: geometrywrapper.hh:83
Entity insideHostEntity() const
return Entity on the inside of this intersection. That is the Entity where we started this.
Definition: geometrywrapper.hh:204
Dune::FieldVector< ctype, coorddimension > outerNormal(const Dune::FieldVector< ctype, mydimension > &local) const
Return an outer normal (length not necessarily 1)
Definition: geometrywrapper.hh:157
@ mydimension
Definition: geometrywrapper.hh:72
int indexInInside() const
Local number of codim 1 entity in the inside() Entity where intersection is contained in.
Definition: geometrywrapper.hh:142
Dune::FieldVector< ctype, coorddimension > unitOuterNormal(const Dune::FieldVector< ctype, mydimension > &local) const
Return unit outer normal (length == 1)
Definition: geometrywrapper.hh:178
I::Entity Entity
Definition: geometrywrapper.hh:67
I::LocalGeometry LocalGeometry
Definition: geometrywrapper.hh:65
@ coorddimension
Definition: geometrywrapper.hh:75
LocalGeometry geometryInOutside() const
geometrical information about this intersection in local coordinates of the outside() entity.
Definition: geometrywrapper.hh:126