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