2 #ifndef DUNE_PDELAB_GEOMETRYWRAPPER_HH
3 #define DUNE_PDELAB_GEOMETRYWRAPPER_HH
5 #include <dune/common/fvector.hh>
68 typedef typename Geometry::ctype
ctype;
76 : i(i_), index(index_)
88 const bool is_boundary = i.boundary();
89 return 0 - int(is_boundary);
115 return i.boundaryId();
133 return i.geometryInInside();
145 return i.geometryInOutside();
161 return i.indexInInside ();
167 return i.indexInOutside ();
174 Dune::FieldVector<ctype, dimensionworld>
outerNormal (
const Dune::FieldVector<ctype, dimension-1>& local)
const
176 return i.outerNormal(local);
185 Dune::FieldVector<ctype, dimensionworld>
integrationOuterNormal (
const Dune::FieldVector<ctype, dimension-1>& local)
const
187 return i.integrationOuterNormal(local);
195 Dune::FieldVector<ctype, dimensionworld>
unitOuterNormal (
const Dune::FieldVector<ctype, dimension-1>& local)
const
197 return i.unitOuterNormal(local);
207 return i.centerUnitOuterNormal();
223 DUNE_THROW(Dune::Exception,
"This should never be called.");
251 const unsigned int index;
int boundaryId() const
Identifier for boundary segment from macro grid.
Definition: geometrywrapper.hh:113
EntityPointer outside() const
return EntityPointer to the Entity on the outside of this intersection. That is the neighboring Entit...
Definition: geometrywrapper.hh:233
EntityPointer insideHostEntity() const
return EntityPointer to the Entity on the inside of this intersection. That is the Entity where we st...
Definition: geometrywrapper.hh:221
E Entity
Definition: geometrywrapper.hh:21
const Entity & hostEntity() const
Definition: geometrywrapper.hh:41
bool boundary() const
return true if intersection is with interior or exterior boundary (see the cases above) ...
Definition: geometrywrapper.hh:93
Definition: geometrywrapper.hh:72
ElementGeometry(const E &e_)
Definition: geometrywrapper.hh:24
Definition: geometrywrapper.hh:70
unsigned int intersectionIndex() const
Definition: geometrywrapper.hh:244
const I & intersection() const
Definition: geometrywrapper.hh:239
Geometry geometry() const
Definition: geometrywrapper.hh:29
int insideDomainIndex() const
Definition: geometrywrapper.hh:80
Geometry::ctype ctype
Definition: geometrywrapper.hh:68
int indexInInside() const
Local number of codim 1 entity in the inside() Entity where intersection is contained in...
Definition: geometrywrapper.hh:159
const Entity & entity() const
Definition: geometrywrapper.hh:35
I::Geometry Geometry
Definition: geometrywrapper.hh:60
Geometry geometry() const
geometrical information about this intersection in global coordinates.
Definition: geometrywrapper.hh:153
I::Entity Entity
Definition: geometrywrapper.hh:64
int indexInOutside() const
Local number of codim 1 entity in outside() Entity where intersection is contained in...
Definition: geometrywrapper.hh:165
Dune::FieldVector< ctype, dimensionworld > integrationOuterNormal(const Dune::FieldVector< ctype, dimension-1 > &local) const
return outer normal scaled with the integration element
Definition: geometrywrapper.hh:185
LocalGeometry geometryInOutside() const
geometrical information about this intersection in local coordinates of the outside() entity...
Definition: geometrywrapper.hh:143
int outsideDomainIndex() const
Definition: geometrywrapper.hh:86
EntityPointer inside() const
return EntityPointer to the Entity on the inside of this intersection. That is the Entity where we st...
Definition: geometrywrapper.hh:213
IntersectionGeometry(const I &i_, unsigned int index_)
Definition: geometrywrapper.hh:75
LocalGeometry geometryInInside() const
geometrical information about this intersection in local coordinates of the inside() entity...
Definition: geometrywrapper.hh:131
Dune::FieldVector< ctype, dimensionworld > outerNormal(const Dune::FieldVector< ctype, dimension-1 > &local) const
Return an outer normal (length not necessarily 1)
Definition: geometrywrapper.hh:174
bool neighbor() const
return true if intersection is shared with another element.
Definition: geometrywrapper.hh:119
E::Geometry Geometry
Definition: geometrywrapper.hh:19
I::EntityPointer EntityPointer
Definition: geometrywrapper.hh:66
Dune::FieldVector< ctype, dimensionworld > centerUnitOuterNormal() const
Return unit outer normal (length == 1)
Definition: geometrywrapper.hh:205
Dune::FieldVector< ctype, dimensionworld > unitOuterNormal(const Dune::FieldVector< ctype, dimension-1 > &local) const
Return unit outer normal (length == 1)
Definition: geometrywrapper.hh:195
I::LocalGeometry LocalGeometry
Definition: geometrywrapper.hh:62
Wrap intersection.
Definition: geometrywrapper.hh:56
Wrap element.
Definition: geometrywrapper.hh:15