Go to the documentation of this file.
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.");
236 #endif // DUNE_PDELAB_COMMON_GEOMETRYWRAPPER_HH
const Entity & entity() const
Definition: geometrywrapper.hh:35
LocalGeometry geometryInOutside() const
geometrical information about this intersection in local coordinates of the outside() entity.
Definition: geometrywrapper.hh:126
std::size_t index
Definition: interpolate.hh:97
I::Entity Entity
Definition: geometrywrapper.hh:67
int indexInOutside() const
Local number of codim 1 entity in outside() Entity where intersection is contained in.
Definition: geometrywrapper.hh:148
int insideDomainIndex() const
Definition: geometrywrapper.hh:83
Geometry::ctype ctype
Definition: geometrywrapper.hh:69
E Entity
Definition: geometrywrapper.hh:21
Wrap intersection.
Definition: geometrywrapper.hh:56
int outsideDomainIndex() const
Definition: geometrywrapper.hh:89
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
Dune::FieldVector< ctype, coorddimension > centerUnitOuterNormal() const
Return unit outer normal (length == 1)
Definition: geometrywrapper.hh:188
unsigned int intersectionIndex() const
Definition: geometrywrapper.hh:227
const I & intersection() const
Definition: geometrywrapper.hh:222
I::LocalGeometry LocalGeometry
Definition: geometrywrapper.hh:65
bool neighbor() const
return true if intersection is shared with another element.
Definition: geometrywrapper.hh:102
@ mydimension
Definition: geometrywrapper.hh:72
Entity inside() const
return Entity on the inside of this intersection. That is the Entity where we started this.
Definition: geometrywrapper.hh:196
Dune::FieldVector< ctype, coorddimension > integrationOuterNormal(const Dune::FieldVector< ctype, mydimension > &local) const
return outer normal scaled with the integration element
Definition: geometrywrapper.hh:168
E::Geometry Geometry
Definition: geometrywrapper.hh:19
ElementGeometry(const E &e_)
Definition: geometrywrapper.hh:24
const Entity & hostEntity() const
Definition: geometrywrapper.hh:41
LocalGeometry geometryInInside() const
geometrical information about this intersection in local coordinates of the inside() entity.
Definition: geometrywrapper.hh:114
@ coorddimension
Definition: geometrywrapper.hh:75
IntersectionGeometry(const I &i_, unsigned int index_)
Definition: geometrywrapper.hh:78
Wrap element.
Definition: geometrywrapper.hh:15
Entity insideHostEntity() const
return Entity on the inside of this intersection. That is the Entity where we started this.
Definition: geometrywrapper.hh:204
Geometry geometry() const
Definition: geometrywrapper.hh:29
bool boundary() const
return true if intersection is with interior or exterior boundary (see the cases above)
Definition: geometrywrapper.hh:96
Entity outside() const
return Entity on the outside of this intersection. That is the neighboring Entity.
Definition: geometrywrapper.hh:216
I::Geometry Geometry
Definition: geometrywrapper.hh:63
Dune::FieldVector< ctype, coorddimension > outerNormal(const Dune::FieldVector< ctype, mydimension > &local) const
Return an outer normal (length not necessarily 1)
Definition: geometrywrapper.hh:157
Dune::FieldVector< ctype, coorddimension > unitOuterNormal(const Dune::FieldVector< ctype, mydimension > &local) const
Return unit outer normal (length == 1)
Definition: geometrywrapper.hh:178
int indexInInside() const
Local number of codim 1 entity in the inside() Entity where intersection is contained in.
Definition: geometrywrapper.hh:142
Geometry geometry() const
geometrical information about this intersection in global coordinates.
Definition: geometrywrapper.hh:136