dune-grid 2.9.0
Public Types | Public Member Functions | List of all members
Dune::IdentityGridLeafIntersection< 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/grid/identitygrid/identitygridintersections.hh>

Public Types

typedef GridImp::template Codim< 1 >::Geometry Geometry
 
typedef GridImp::template Codim< 1 >::LocalGeometry LocalGeometry
 
typedef GridImp::template Codim< 0 >::Entity Entity
 
typedef FieldVector< ctype, dimworld > NormalVector
 

Public Member Functions

 IdentityGridLeafIntersection ()
 
 IdentityGridLeafIntersection (const GridImp *identityGrid, const HostLeafIntersection &hostIntersection)
 
 IdentityGridLeafIntersection (const GridImp *identityGrid, HostLeafIntersection &&hostIntersection)
 
bool equals (const IdentityGridLeafIntersection &other) const
 
Entity inside () const
 
Entity outside () const
 
bool boundary () const
 return true if intersection is with boundary. More...
 
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 More...
 
size_t boundarySegmentIndex () const
 return the boundary segment index More...
 
bool conforming () const
 Return true if this is a conforming intersection. More...
 
GeometryType type () const
 Geometry type of an intersection. More...
 
LocalGeometry geometryInInside () const
 
LocalGeometry geometryInOutside () const
 
Geometry geometry () const
 
int indexInInside () const
 local number of codim 1 entity in self where intersection is contained in More...
 
int indexInOutside () const
 local number of codim 1 entity in neighbor where intersection is contained More...
 
FieldVector< ctype, GridImp::dimensionworld > outerNormal (const FieldVector< ctype, GridImp::dimension-1 > &local) const
 return outer normal More...
 
FieldVector< ctype, GridImp::dimensionworld > integrationOuterNormal (const FieldVector< ctype, GridImp::dimension-1 > &local) const
 return outer normal multiplied by the integration element More...
 
FieldVector< ctype, GridImp::dimensionworld > unitOuterNormal (const FieldVector< ctype, GridImp::dimension-1 > &local) const
 return unit outer normal More...
 

Detailed Description

template<class GridImp>
class Dune::IdentityGridLeafIntersection< 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 Typedef Documentation

◆ Entity

template<class GridImp >
typedef GridImp::template Codim<0>::Entity Dune::IdentityGridLeafIntersection< GridImp >::Entity

◆ Geometry

template<class GridImp >
typedef GridImp::template Codim<1>::Geometry Dune::IdentityGridLeafIntersection< GridImp >::Geometry

◆ LocalGeometry

template<class GridImp >
typedef GridImp::template Codim<1>::LocalGeometry Dune::IdentityGridLeafIntersection< GridImp >::LocalGeometry

◆ NormalVector

template<class GridImp >
typedef FieldVector<ctype, dimworld> Dune::IdentityGridLeafIntersection< GridImp >::NormalVector

Constructor & Destructor Documentation

◆ IdentityGridLeafIntersection() [1/3]

template<class GridImp >
Dune::IdentityGridLeafIntersection< GridImp >::IdentityGridLeafIntersection ( )
inline

◆ IdentityGridLeafIntersection() [2/3]

template<class GridImp >
Dune::IdentityGridLeafIntersection< GridImp >::IdentityGridLeafIntersection ( const GridImp *  identityGrid,
const HostLeafIntersection &  hostIntersection 
)
inline

◆ IdentityGridLeafIntersection() [3/3]

template<class GridImp >
Dune::IdentityGridLeafIntersection< GridImp >::IdentityGridLeafIntersection ( const GridImp *  identityGrid,
HostLeafIntersection &&  hostIntersection 
)
inline

Member Function Documentation

◆ boundary()

template<class GridImp >
bool Dune::IdentityGridLeafIntersection< GridImp >::boundary ( ) const
inline

return true if intersection is with boundary.

◆ boundarySegmentIndex()

template<class GridImp >
size_t Dune::IdentityGridLeafIntersection< GridImp >::boundarySegmentIndex ( ) const
inline

return the boundary segment index

◆ centerUnitOuterNormal()

template<class GridImp >
NormalVector Dune::IdentityGridLeafIntersection< 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.

◆ conforming()

template<class GridImp >
bool Dune::IdentityGridLeafIntersection< GridImp >::conforming ( ) const
inline

Return true if this is a conforming intersection.

◆ equals()

template<class GridImp >
bool Dune::IdentityGridLeafIntersection< GridImp >::equals ( const IdentityGridLeafIntersection< GridImp > &  other) const
inline

◆ geometry()

template<class GridImp >
Geometry Dune::IdentityGridLeafIntersection< 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::IdentityGridLeafIntersection< 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.

◆ geometryInOutside()

template<class GridImp >
LocalGeometry Dune::IdentityGridLeafIntersection< 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

◆ indexInInside()

template<class GridImp >
int Dune::IdentityGridLeafIntersection< GridImp >::indexInInside ( ) const
inline

local number of codim 1 entity in self where intersection is contained in

◆ indexInOutside()

template<class GridImp >
int Dune::IdentityGridLeafIntersection< GridImp >::indexInOutside ( ) const
inline

local number of codim 1 entity in neighbor where intersection is contained

◆ inside()

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

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

◆ integrationOuterNormal()

template<class GridImp >
FieldVector< ctype, GridImp::dimensionworld > Dune::IdentityGridLeafIntersection< GridImp >::integrationOuterNormal ( const FieldVector< ctype, GridImp::dimension-1 > &  local) const
inline

return outer normal multiplied by the integration element

◆ neighbor()

template<class GridImp >
bool Dune::IdentityGridLeafIntersection< GridImp >::neighbor ( ) const
inline

return true if across the edge an neighbor on this level exists

◆ outerNormal()

template<class GridImp >
FieldVector< ctype, GridImp::dimensionworld > Dune::IdentityGridLeafIntersection< GridImp >::outerNormal ( const FieldVector< ctype, GridImp::dimension-1 > &  local) const
inline

return outer normal

◆ outside()

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

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

◆ type()

template<class GridImp >
GeometryType Dune::IdentityGridLeafIntersection< GridImp >::type ( ) const
inline

Geometry type of an intersection.

◆ unitOuterNormal()

template<class GridImp >
FieldVector< ctype, GridImp::dimensionworld > Dune::IdentityGridLeafIntersection< GridImp >::unitOuterNormal ( const FieldVector< ctype, GridImp::dimension-1 > &  local) const
inline

return unit outer normal


The documentation for this class was generated from the following file: