template<class Coordinates>
class Dune::YGridComponent< Coordinates >
The YGrid considered here describes a finite set -tupels of the form
together with an affine mapping.
A YGrid is characterized by the following quantities:
The origin ,
the size ,
The shift .
a coordinate container, that gives the mapping of the index to global coordinates (see coordinates.hh)
The shift can be used to interpret the points of a grid as midpoints of cells, faces, edges, etc.
Here is a graphical illustration of a grid:
A YGrid.
A YGrid allows to iterate over all its cells with an Iterator class.
A YGrid is always considered as being embedded in a larger grid. This embedding is characterized by an offset and an enclosing grid as shown in the following picture:
The SubYGrid is shown in red, blue is the enclosing grid.
The iterator provides also a mapping to the consecutive index in the enclosing grid.
Note: as of november 2013 there are only YGrid and YGrid::Iterator. These represent the functionality of former SubYGrid and SubYGrid::TransformingSubIterator. All other classes in the hierarchy have not been used.
size of the grid Such grid has no coordinate information stored but can be used to determine an intersection with a grid with coordinate information. This avoids sending coordinates in the parallel case.