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;
71 enum { dimension=Entity::dimension };
73 enum { coorddimension=Geometry::coorddimension };
77 : i(i_), index(index_)
89 const bool is_boundary = i.boundary();
90 return 0 - int(is_boundary);
116 return i.boundaryId();
134 return i.geometryInInside();
146 return i.geometryInOutside();
162 return i.indexInInside ();
168 return i.indexInOutside ();
175 Dune::FieldVector<ctype, coorddimension>
outerNormal (
const Dune::FieldVector<ctype, dimension-1>& local)
const 177 return i.outerNormal(local);
186 Dune::FieldVector<ctype, coorddimension>
integrationOuterNormal (
const Dune::FieldVector<ctype, dimension-1>& local)
const 188 return i.integrationOuterNormal(local);
196 Dune::FieldVector<ctype, coorddimension>
unitOuterNormal (
const Dune::FieldVector<ctype, dimension-1>& local)
const 198 return i.unitOuterNormal(local);
208 return i.centerUnitOuterNormal();
224 DUNE_THROW(Dune::Exception,
"This should never be called.");
254 #endif // DUNE_PDELAB_COMMON_GEOMETRYWRAPPER_HH Entity outside() const
return Entity on the outside of this intersection. That is the neighboring Entity.
Definition: geometrywrapper.hh:234
int outsideDomainIndex() const
Definition: geometrywrapper.hh:87
Entity insideHostEntity() const
return Entity on the inside of this intersection. That is the Entity where we started this...
Definition: geometrywrapper.hh:222
Dune::FieldVector< ctype, coorddimension > outerNormal(const Dune::FieldVector< ctype, dimension-1 > &local) const
Return an outer normal (length not necessarily 1)
Definition: geometrywrapper.hh:175
const Entity & hostEntity() const
Definition: geometrywrapper.hh:41
Dune::FieldVector< ctype, coorddimension > centerUnitOuterNormal() const
Return unit outer normal (length == 1)
Definition: geometrywrapper.hh:206
LocalGeometry geometryInInside() const
geometrical information about this intersection in local coordinates of the inside() entity...
Definition: geometrywrapper.hh:132
I::LocalGeometry LocalGeometry
Definition: geometrywrapper.hh:65
const Entity & entity() const
Definition: geometrywrapper.hh:35
int boundaryId() const
Identifier for boundary segment from macro grid.
Definition: geometrywrapper.hh:114
I::Geometry Geometry
Definition: geometrywrapper.hh:63
Geometry geometry() const
Definition: geometrywrapper.hh:29
LocalGeometry geometryInOutside() const
geometrical information about this intersection in local coordinates of the outside() entity...
Definition: geometrywrapper.hh:144
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
Wrap intersection.
Definition: geometrywrapper.hh:56
unsigned int intersectionIndex() const
Definition: geometrywrapper.hh:245
Dune::FieldVector< ctype, coorddimension > integrationOuterNormal(const Dune::FieldVector< ctype, dimension-1 > &local) const
return outer normal scaled with the integration element
Definition: geometrywrapper.hh:186
E::Geometry Geometry
Definition: geometrywrapper.hh:19
int indexInInside() const
Local number of codim 1 entity in the inside() Entity where intersection is contained in...
Definition: geometrywrapper.hh:160
bool boundary() const
return true if intersection is with interior or exterior boundary (see the cases above) ...
Definition: geometrywrapper.hh:94
Dune::FieldVector< ctype, coorddimension > unitOuterNormal(const Dune::FieldVector< ctype, dimension-1 > &local) const
Return unit outer normal (length == 1)
Definition: geometrywrapper.hh:196
ElementGeometry(const E &e_)
Definition: geometrywrapper.hh:24
Wrap element.
Definition: geometrywrapper.hh:15
E Entity
Definition: geometrywrapper.hh:21
int insideDomainIndex() const
Definition: geometrywrapper.hh:81
Geometry::ctype ctype
Definition: geometrywrapper.hh:69
const I & intersection() const
Definition: geometrywrapper.hh:240
IntersectionGeometry(const I &i_, unsigned int index_)
Definition: geometrywrapper.hh:76
bool neighbor() const
return true if intersection is shared with another element.
Definition: geometrywrapper.hh:120
I::Entity Entity
Definition: geometrywrapper.hh:67
Entity inside() const
return Entity on the inside of this intersection. That is the Entity where we started this...
Definition: geometrywrapper.hh:214
Geometry geometry() const
geometrical information about this intersection in global coordinates.
Definition: geometrywrapper.hh:154
int indexInOutside() const
Local number of codim 1 entity in outside() Entity where intersection is contained in...
Definition: geometrywrapper.hh:166