DUNE-GRID-GLUE (2.10)

Dune::GridGlue::Intersection< P0, P1, I, O > Class Template Reference

The intersection of two entities of the two patches of a GridGlue. More...

#include <dune/grid-glue/adapter/intersection.hh>

Public Member Functions

 Intersection (const GridGlue *glue, const IntersectionData *i)
 Constructor for a given Dataset.
 
InsideEntity inside (unsigned int parentId=0) const
 Return element on the inside of this intersection.
 
OutsideEntity outside (unsigned int parentId=0) const
 Return element on the outside of this intersection.
 
bool conforming () const
 Return true if intersection is conforming.
 
const InsideLocalGeometry & geometryInInside (unsigned int parentId=0) const
 Geometric information about this intersection in local coordinates of the inside() element.
 
const OutsideLocalGeometry & geometryInOutside (unsigned int parentId=0) const
 Geometric information about this intersection in local coordinates of the outside() element.
 
const Geometry & geometry () const
 Geometric information about this intersection as part of the inside grid. More...
 
const OutsideGeometry & geometryOutside () const
 Geometric information about this intersection as part of the outside grid. More...
 
Dune::GeometryType type () const
 Type of reference element for this intersection.
 
bool self () const
 For parallel computations: Return true if inside() entity exists locally.
 
size_t neighbor (unsigned int g=0) const
 Return number of embeddings into local grid0 (grid1) entities.
 
int indexInInside (unsigned int parentId=0) const
 Local number of codim 1 entity in the inside() Entity where intersection is contained in.
 
int indexInOutside (unsigned int parentId=0) const
 Local number of codim 1 entity in outside() Entity where intersection is contained in.
 
GlobalCoordinate outerNormal (const LocalCoordinate &local) const
 Return an outer normal (length not necessarily 1) More...
 
GlobalCoordinate unitOuterNormal (const LocalCoordinate &local) const
 Return a unit outer normal. More...
 
GlobalCoordinate integrationOuterNormal (const LocalCoordinate &local) const
 Return an outer normal with the length of the integration element. More...
 
GlobalCoordinate centerUnitOuterNormal () const
 Unit outer normal at the center of the intersection. More...
 
Intersection< P0, P1, O, I > flip () const
 Return a copy of the intersection with inside and outside switched.
 

Static Public Attributes

static constexpr auto coorddim = Traits::coorddim
 dimension of the world space of the intersection
 
static constexpr auto mydim = Traits::mydim
 dimension of the intersection
 
static constexpr int insidePatch = Traits::insidePatch
 inside patch
 
static constexpr int outsidePatch = Traits::outsidePatch
 outside patch
 

Detailed Description

template<typename P0, typename P1, int I, int O>
class Dune::GridGlue::Intersection< P0, P1, I, O >

The intersection of two entities of the two patches of a GridGlue.

Member Function Documentation

◆ centerUnitOuterNormal()

template<typename P0 , typename P1 , int I, int O>
GlobalCoordinate Dune::GridGlue::Intersection< P0, P1, I, O >::centerUnitOuterNormal ( ) const
inline

Unit outer normal at the center of the intersection.

The outer normal is given with respect to the geometry().

References Dune::GridGlue::Intersection< P0, P1, I, O >::type(), and Dune::GridGlue::Intersection< P0, P1, I, O >::unitOuterNormal().

◆ geometry()

template<typename P0 , typename P1 , int I, int O>
const Geometry & Dune::GridGlue::Intersection< P0, P1, I, O >::geometry ( ) const
inline

Geometric information about this intersection as part of the inside grid.

This is the same geometry as the application of the first embedding into the "inside" entity and then this entities global geometry.

Referenced by Dune::GridGlue::Intersection< P0, P1, I, O >::integrationOuterNormal(), and Dune::GridGlue::Intersection< P0, P1, I, O >::outerNormal().

◆ geometryOutside()

template<typename P0 , typename P1 , int I, int O>
const OutsideGeometry & Dune::GridGlue::Intersection< P0, P1, I, O >::geometryOutside ( ) const
inline

Geometric information about this intersection as part of the outside grid.

This is the same geometry as the application of the first embedding into the "outside" entity and then this entities global geometry.

◆ integrationOuterNormal()

template<typename P0 , typename P1 , int I, int O>
GlobalCoordinate Dune::GridGlue::Intersection< P0, P1, I, O >::integrationOuterNormal ( const LocalCoordinate &  local) const
inline

Return an outer normal with the length of the integration element.

The outer normal is given with respect to the geometry().

References Dune::GridGlue::Intersection< P0, P1, I, O >::geometry(), and Dune::GridGlue::Intersection< P0, P1, I, O >::unitOuterNormal().

◆ outerNormal()

template<typename P0 , typename P1 , int I, int O>
GlobalCoordinate Dune::GridGlue::Intersection< P0, P1, I, O >::outerNormal ( const LocalCoordinate &  local) const
inline

Return an outer normal (length not necessarily 1)

The outer normal is given with respect to the geometry().

References Dune::GridGlue::Intersection< P0, P1, I, O >::geometry(), and Dune::GridGlue::Intersection< P0, P1, I, O >::mydim.

Referenced by Dune::GridGlue::Intersection< P0, P1, I, O >::unitOuterNormal().

◆ unitOuterNormal()

template<typename P0 , typename P1 , int I, int O>
GlobalCoordinate Dune::GridGlue::Intersection< P0, P1, I, O >::unitOuterNormal ( const LocalCoordinate &  local) const
inline

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