dune-mmesh (1.4)

Dune::MMeshInterfaceGridLeafIntersection< GridImp > Class Template Reference

An intersection with a leaf neighbor elementMesh entities of codimension 0 ("elements") allow to visit all neighbors, where a neighbor is an entity of codimension 0 which has a common entity of codimension 1 These neighbors are accessed via a IntersectionIterator. This allows the implement non-matching meshes. The number of neighbors may be different from the number of an element! More...

#include <dune/mmesh/interface/intersections.hh>

Public Member Functions

bool equals (const MMeshInterfaceGridLeafIntersection &other) const
 returns true if the host entities are equal
 
Entity inside () const
 
std::size_t numOutside () const
 
Entity outside () const
 
bool boundary () const
 return true if intersection is with boundary.
 
NormalVector centerUnitOuterNormal () const
 Return unit outer normal (length == 1) More...
 
bool neighbor () const
 return true if across the edge an neighbor on this level exists
 
size_t boundarySegmentIndex () const
 return the boundary segment index
 
std::size_t boundaryId () const
 Return the boundary id.
 
bool conforming () const
 Return true if this is a conforming intersection.
 
GeometryType type () const
 Geometry type of an intersection.
 
LocalGeometry geometryInInside () const
 
LocalGeometry geometryInOutside () const
 
template<int d = dimension>
std::enable_if_t< d==1, Geometry > geometry () const
 
int indexInInside () const
 local number of codim 1 entity in self where intersection is contained in
 
int indexInOutside () const
 local number of codim 1 entity in neighbor where intersection is contained
 
FieldVector< ctype, GridImp::dimensionworld > outerNormal (const FieldVector< ctype, GridImp::dimension-1 > &local) const
 return outer normal
 
template<int d = dimension>
std::enable_if_t< d==1, NormalVector > integrationOuterNormal (const FieldVector< ctype, dimension-1 > &local) const
 return outer normal multiplied by the integration element
 
FieldVector< ctype, GridImp::dimensionworld > unitOuterNormal (const FieldVector< ctype, GridImp::dimension-1 > &local) const
 return unit outer normal
 

Detailed Description

template<class GridImp>
class Dune::MMeshInterfaceGridLeafIntersection< GridImp >

An intersection with a leaf neighbor element

Mesh entities of codimension 0 ("elements") allow to visit all neighbors, where a neighbor is an entity of codimension 0 which has a common entity of codimension 1 These neighbors are accessed via a IntersectionIterator. This allows the implement non-matching meshes. The number of neighbors may be different from the number of an element!

Member Function Documentation

◆ centerUnitOuterNormal()

template<class GridImp >
NormalVector Dune::MMeshInterfaceGridLeafIntersection< GridImp >::centerUnitOuterNormal ( ) const
inline

Return unit outer normal (length == 1)

The returned vector is the normal at the center() of the intersection's geometry. It is scaled to have unit length.

References Dune::MMeshInterfaceGridLeafIntersection< GridImp >::unitOuterNormal().

◆ geometry()

template<class GridImp >
template<int d = dimension>
std::enable_if_t< d==1, Geometry > Dune::MMeshInterfaceGridLeafIntersection< GridImp >::geometry ( ) const
inline

intersection of codimension 1 of this neighbor with element where iteration started. Here returned element is in GLOBAL coordinates of the element where iteration started.

◆ geometryInInside()

template<class GridImp >
LocalGeometry Dune::MMeshInterfaceGridLeafIntersection< GridImp >::geometryInInside ( ) const
inline

intersection of codimension 1 of this neighbor with element where iteration started. Here returned element is in LOCAL coordinates of the element where iteration started.

References Dune::MMeshInterfaceGridLeafIntersection< GridImp >::indexInInside().

◆ geometryInOutside()

template<class GridImp >
LocalGeometry Dune::MMeshInterfaceGridLeafIntersection< GridImp >::geometryInOutside ( ) const
inline

intersection of codimension 1 of this neighbor with element where iteration started. Here returned element is in LOCAL coordinates of neighbor

References Dune::MMeshInterfaceGridLeafIntersection< GridImp >::indexInOutside(), and Dune::MMeshInterfaceGridLeafIntersection< GridImp >::neighbor().

◆ inside()

template<class GridImp >
Entity Dune::MMeshInterfaceGridLeafIntersection< GridImp >::inside ( ) const
inline

return Entity on the inside of this intersection (that is the Entity where we started this Iterator)

Referenced by Dune::MMeshInterfaceGridLeafIntersection< GridImp >::indexInOutside().

◆ numOutside()

template<class GridImp >
std::size_t Dune::MMeshInterfaceGridLeafIntersection< GridImp >::numOutside ( ) const
inline

return Entity on the outside of this intersection (that is the neighboring Entity)

◆ outside()

template<class GridImp >
Entity Dune::MMeshInterfaceGridLeafIntersection< GridImp >::outside ( ) const
inline

return Entity on the outside of this intersection (that is the neighboring Entity)

References Dune::MMeshInterfaceGridLeafIntersection< GridImp >::neighbor().

Referenced by Dune::MMeshInterfaceGridLeafIntersection< GridImp >::indexInOutside().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Apr 7, 22:57, 2025)