Dune::SIntersectionIterator< GridImp > Class Template Reference

#include <sgrid.hh>

Inheritance diagram for Dune::SIntersectionIterator< GridImp >:

Dune::IntersectionIteratorDefaultImplementation< GridImp, IntersectionIteratorImp >

List of all members.


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!

Public Types

enum  
 know your own dimension
enum  
 know your own dimension of world
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
EntityPointer inside () const
EntityPointer outside () const
bool boundary () const
 return true if intersection is with boundary.
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
LocalGeometry & intersectionSelfLocal () const
LocalGeometry & intersectionNeighborLocal () const
GeometryintersectionGlobal () const
int numberInSelf () const
 local number of codim 1 entity in self where intersection is contained in
int numberInNeighbor () const
 local number of codim 1 entity in neighbor where intersection is contained in
 SIntersectionIterator (GridImp *_grid, const SEntity< 0, dim, GridImp > *_self, int _count)
 constructor
SIntersectionIteratoroperator= (const SIntersectionIterator &it)
 assignment operator
FieldVector< ct, dimworld > integrationOuterNormal (const FieldVector< ct, dim-1 > &local) const
FieldVector< ct, dimworld > unitOuterNormal (const FieldVector< ct, dim-1 > &local) const
 return unit outer normal

Member Function Documentation

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

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

template<class GridImp>
SIntersectionIterator< GridImp >::EntityPointer Dune::SIntersectionIterator< GridImp >::outside (  )  const [inline]

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

template<class GridImp>
SIntersectionIterator< GridImp >::LocalGeometry & Dune::SIntersectionIterator< GridImp >::intersectionSelfLocal (  )  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.

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

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

template<class GridImp>
SIntersectionIterator< GridImp >::Geometry & Dune::SIntersectionIterator< GridImp >::intersectionGlobal (  )  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.

template<class GridImp, template< class > class IntersectionIteratorImp>
FieldVector<ct, dimworld> Dune::IntersectionIteratorDefaultImplementation< GridImp, IntersectionIteratorImp >::integrationOuterNormal ( const FieldVector< ct, dim-1 > &  local  )  const [inline, inherited]

return unit outer normal, this should be dependent on local coordinates for higher order boundary the normal is scaled with the integration element of the intersection.


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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].