dune-grid  2.1.1
Public Types | Public Member Functions
Dune::SIntersectionIterator< GridImp > Class Template Reference

#include <dune/grid/sgrid.hh>

List of all members.

Public Types

enum  { dimension = dim }
 know your own dimension More...
enum  { dimensionworld = dimworld }
 know your own dimension of world More...
typedef GridImp::template
Codim< 0 >::Entity 
Entity
typedef GridImp::template
Codim< 0 >::EntityPointer 
EntityPointer
typedef GridImp::template
Codim< 1 >::Geometry 
Geometry
typedef GridImp::template
Codim< 1 >::LocalGeometry 
LocalGeometry
typedef Dune::SIntersection
< GridImp > 
IntersectionImp
typedef Dune::Intersection
< const GridImp,
Dune::SIntersection
Intersection
typedef GridImp::ctype ctype
 define type used for coordinates in grid module

Public Member Functions

bool equals (const SIntersectionIterator< GridImp > &i) const
 equality
void increment ()
 increment
const Intersectiondereference () const
 dereferencing
EntityPointer inside () const
EntityPointer outside () const
bool boundary () const
 return true if intersection is with boundary.
bool conforming () const
 return true if intersection is conform.
int boundaryId () const
int boundarySegmentIndex () const
bool neighbor () const
 return true if neighbor on this level exists
FieldVector< ctype,
GridImp::dimensionworld > 
outerNormal (const FieldVector< ctype, GridImp::dimension-1 > &local) const
 return outer normal
FieldVector< ctype,
GridImp::dimensionworld > 
unitOuterNormal (const FieldVector< ctype, GridImp::dimension-1 > &local) const
 return unit outer normal
FieldVector< ctype,
GridImp::dimensionworld > 
centerUnitOuterNormal () const
 return unit outer normal at center of intersection geometry
FieldVector< ctype,
GridImp::dimensionworld > 
integrationOuterNormal (const FieldVector< ctype, GridImp::dimension-1 > &local) const
 return integration outer normal
const LocalGeometrygeometryInInside () const
const LocalGeometrygeometryInOutside () const
const Geometrygeometry () const
GeometryType type () const
 obtain the type of reference element for this intersection
int indexInInside () const
 local index of codim 1 entity in self where intersection is contained in
int indexInOutside () const
 local index of codim 1 entity in neighbor where intersection is contained in
 SIntersectionIterator (GridImp *_grid, const SEntity< 0, dim, GridImp > *_self, int _count)
 constructor
 SIntersectionIterator (const SIntersectionIterator &other)
SIntersectionIteratoroperator= (const SIntersectionIterator &it)
 assignment operator

Detailed Description

template<class GridImp>
class Dune::SIntersectionIterator< GridImp >

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 with the entity. These neighbors are accessed via a IntersectionIterator. This allows the implementation of non-matching meshes. The number of neigbors may be different from the number of faces/edges of an element!


Member Typedef Documentation

template<class GridImp>
typedef GridImp::ctype Dune::SIntersectionIterator< GridImp >::ctype

define type used for coordinates in grid module

template<class GridImp>
typedef GridImp::template Codim<0>::Entity Dune::SIntersectionIterator< GridImp >::Entity
template<class GridImp>
typedef GridImp::template Codim<0>::EntityPointer Dune::SIntersectionIterator< GridImp >::EntityPointer
template<class GridImp>
typedef GridImp::template Codim<1>::Geometry Dune::SIntersectionIterator< GridImp >::Geometry
template<class GridImp>
typedef Dune::Intersection<const GridImp, Dune::SIntersection> Dune::SIntersectionIterator< GridImp >::Intersection
template<class GridImp>
typedef Dune::SIntersection<GridImp> Dune::SIntersectionIterator< GridImp >::IntersectionImp
template<class GridImp>
typedef GridImp::template Codim<1>::LocalGeometry Dune::SIntersectionIterator< GridImp >::LocalGeometry

Member Enumeration Documentation

template<class GridImp>
anonymous enum

know your own dimension

Enumerator:
dimension 
template<class GridImp>
anonymous enum

know your own dimension of world

Enumerator:
dimensionworld 

Constructor & Destructor Documentation

template<class GridImp>
Dune::SIntersectionIterator< GridImp >::SIntersectionIterator ( GridImp *  _grid,
const SEntity< 0, dim, GridImp > *  _self,
int  _count 
) [inline]

constructor

template<class GridImp>
Dune::SIntersectionIterator< GridImp >::SIntersectionIterator ( const SIntersectionIterator< GridImp > &  other) [inline]

Member Function Documentation

template<class GridImp>
bool Dune::SIntersectionIterator< GridImp >::boundary ( ) const
template<class GridImp>
int Dune::SIntersectionIterator< GridImp >::boundaryId ( ) const [inline]
template<class GridImp>
int Dune::SIntersectionIterator< GridImp >::boundarySegmentIndex ( ) const [inline]
template<class GridImp>
FieldVector<ctype, GridImp::dimensionworld> Dune::SIntersectionIterator< GridImp >::centerUnitOuterNormal ( ) const [inline]

return unit outer normal at center of intersection geometry

Referenced by Dune::SIntersectionIterator< GridImp >::unitOuterNormal().

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

return true if intersection is conform.

template<class GridImp>
const Intersection& Dune::SIntersectionIterator< GridImp >::dereference ( ) const [inline]

dereferencing

template<class GridImp>
bool Dune::SIntersectionIterator< GridImp >::equals ( const SIntersectionIterator< GridImp > &  i) const

equality

template<class GridImp>
const Geometry& Dune::SIntersectionIterator< GridImp >::geometry ( ) const

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.

Referenced by Dune::SIntersectionIterator< GridImp >::integrationOuterNormal().

template<class GridImp>
const LocalGeometry& Dune::SIntersectionIterator< GridImp >::geometryInInside ( ) const

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.

template<class GridImp>
const LocalGeometry& Dune::SIntersectionIterator< GridImp >::geometryInOutside ( ) const

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

template<class GridImp>
void Dune::SIntersectionIterator< GridImp >::increment ( )

increment

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

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

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

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

template<class GridImp>
EntityPointer Dune::SIntersectionIterator< GridImp >::inside ( ) const

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

template<class GridImp>
FieldVector<ctype, GridImp::dimensionworld> Dune::SIntersectionIterator< GridImp >::integrationOuterNormal ( const FieldVector< ctype, GridImp::dimension-1 > &  local) const [inline]
template<class GridImp>
bool Dune::SIntersectionIterator< GridImp >::neighbor ( ) const

return true if neighbor on this level exists

template<class GridImp>
SIntersectionIterator& Dune::SIntersectionIterator< GridImp >::operator= ( const SIntersectionIterator< GridImp > &  it) [inline]

assignment operator

template<class GridImp>
FieldVector<ctype, GridImp::dimensionworld> Dune::SIntersectionIterator< GridImp >::outerNormal ( const FieldVector< ctype, GridImp::dimension-1 > &  local) const [inline]
template<class GridImp>
EntityPointer Dune::SIntersectionIterator< GridImp >::outside ( ) const

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

template<class GridImp>
GeometryType Dune::SIntersectionIterator< GridImp >::type ( ) const [inline]

obtain the type of reference element for this intersection

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

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