dune-grid 2.9.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Dune::AlbertaGrid< dim, dimworld > Class Template Reference

[ provides Dune::Grid ] More...

#include <dune/grid/albertagrid/agrid.hh>

Inheritance diagram for Dune::AlbertaGrid< dim, dimworld >:
Inheritance graph

Public Types

typedef AlbertaGridFamily< dim, dimworld > GridFamily
 the grid family of AlbertaGrid More...
 
typedef GridFamily::ctype ctype
 
typedef AlbertaGridFamily< dim, dimworld >::Traits Traits
 
typedef Traits::LeafIndexSet LeafIndexSet
 type of leaf index set More...
 
typedef Traits::LevelIndexSet LevelIndexSet
 type of level index sets More...
 
typedef Traits::HierarchicIndexSet HierarchicIndexSet
 type of hierarchic index set More...
 
typedef Traits::GlobalIdSet GlobalIdSet
 type of global id set More...
 
typedef Traits::LocalIdSet LocalIdSet
 type of local id set More...
 
typedef Traits::Communication Communication
 type of communication More...
 
typedef Communication CollectiveCommunication
 

Public Member Functions

 AlbertaGrid (const This &)=delete
 
Thisoperator= (const This &)=delete
 
 AlbertaGrid ()
 create an empty grid More...
 
 AlbertaGrid (const Alberta::MacroData< dimension > &macroData, const std::shared_ptr< DuneBoundaryProjection< dimensionworld > > &projection=std::shared_ptr< DuneBoundaryProjection< dimensionworld > >())
 create a grid from an ALBERTA macro data structure More...
 
template<class Proj , class Impl >
 AlbertaGrid (const Alberta::MacroData< dimension > &macroData, const Alberta::ProjectionFactoryInterface< Proj, Impl > &projectionFactory)
 
 AlbertaGrid (const std::string &macroGridFileName)
 create a grid from an ALBERTA macro grid file More...
 
 ~AlbertaGrid ()
 desctructor More...
 
int maxLevel () const
 
template<int cd, PartitionIteratorType pitype>
Traits::template Codim< cd >::template Partition< pitype >::LevelIterator lbegin (int level) const
 Iterator to first entity of given codim on level. More...
 
template<int cd, PartitionIteratorType pitype>
Traits::template Codim< cd >::template Partition< pitype >::LevelIterator lend (int level) const
 one past the end on this level More...
 
template<int codim>
Traits::template Codim< codim >::LevelIterator lbegin (int level) const
 Iterator to first entity of given codim on level. More...
 
template<int codim>
Traits::template Codim< codim >::LevelIterator lend (int level) const
 one past the end on this level More...
 
template<int codim, PartitionIteratorType pitype>
Traits::template Codim< codim >::template Partition< pitype >::LeafIterator leafbegin () const
 return LeafIterator which points to first leaf entity More...
 
template<int codim, PartitionIteratorType pitype>
Traits::template Codim< codim >::template Partition< pitype >::LeafIterator leafend () const
 return LeafIterator which points behind last leaf entity More...
 
template<int codim>
Traits::template Codim< codim >::LeafIterator leafbegin () const
 return LeafIterator which points to first leaf entity More...
 
template<int codim>
Traits::template Codim< codim >::LeafIterator leafend () const
 return LeafIterator which points behind last leaf entity More...
 
int size (int level, int codim) const
 Number of grid entities per level and codim because lbegin and lend are none const, and we need this methods counting the entities on each level, you know. More...
 
int size (int level, GeometryType type) const
 number of entities per level and geometry type in this process More...
 
int size (int codim) const
 number of leaf entities per codim in this process More...
 
int size (GeometryType type) const
 number of leaf entities per geometry type in this process More...
 
std::size_t numBoundarySegments () const
 number of boundary segments within the macro grid More...
 
Traits::LevelGridView levelGridView (int level) const
 View for a grid level for All_Partition. More...
 
Traits::LeafGridView leafGridView () const
 View for the leaf grid for All_Partition. More...
 
int getMark (const typename Traits::template Codim< 0 >::Entity &e) const
 returns adaptation mark for given entity More...
 
bool mark (int refCount, const typename Traits::template Codim< 0 >::Entity &e)
 Marks an entity to be refined/coarsened in a subsequent adapt. More...
 
void globalRefine (int refCount)
 uses the interface, mark on entity and refineLocal More...
 
template<class DataHandle >
void globalRefine (int refCount, AdaptDataHandleInterface< This, DataHandle > &handle)
 
bool adapt ()
 Refine all positive marked leaf entities, coarsen all negative marked entities if possible. More...
 
template<class DataHandle >
bool adapt (AdaptDataHandleInterface< This, DataHandle > &handle)
 callback adapt method with AdaptDataHandleInterface More...
 
bool preAdapt ()
 returns true, if a least one element is marked for coarsening More...
 
void postAdapt ()
 clean up some markers More...
 
const Communicationcomm () const
 return reference to communication, if MPI found this is specialisation for MPI More...
 
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::Entity entity (const EntitySeed &seed) const
 obtain Entity from EntitySeed. More...
 
bool writeGrid (const std::string &filename, ctype time) const
 write Grid to file in Xdr More...
 
bool readGrid (const std::string &filename, ctype &time)
 read Grid from file filename and store time of mesh in time More...
 
const HierarchicIndexSethierarchicIndexSet () const
 
const Traits::LevelIndexSetlevelIndexSet (int level) const
 return level index set for given level More...
 
const Traits::LeafIndexSetleafIndexSet () const
 return leaf index set More...
 
const GlobalIdSetglobalIdSet () const
 return global IdSet More...
 
const LocalIdSetlocalIdSet () const
 return local IdSet More...
 
ALBERTA MESH * getMesh () const
 
const MeshPointermeshPointer () const
 
const DofNumberingdofNumbering () const
 
const LevelProviderlevelProvider () const
 
int dune2alberta (int codim, int i) const
 
int alberta2dune (int codim, int i) const
 
int generic2alberta (int codim, int i) const
 
int alberta2generic (int codim, int i) const
 
const Alberta::GlobalVectorgetCoord (const ElementInfo &elementInfo, int vertex) const
 
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::template Partition< pitype >::LevelIterator lbegin (int level) const
 
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::template Partition< pitype >::LevelIterator lend (int level) const
 
template<int codim>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::LevelIterator lbegin (int level) const
 
template<int codim>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::LevelIterator lend (int level) const
 
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::template Partition< pitype >::LeafIterator leafbegin () const
 
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::template Partition< pitype >::LeafIterator leafend () const
 
template<int codim>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::LeafIterator leafbegin () const
 
template<int codim>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::LeafIterator leafend () const
 
bool mark (int refCount, const typename Traits ::template Codim< 0 >::Entity &e)
 Marks an entity to be refined/coarsened in a subsequent adapt. More...
 
bool loadBalance ()
 default implementation of load balance does nothing and returns false More...
 
bool loadBalance (DataHandle &data)
 default implementation of load balance does nothing and returns false More...
 
Adaptivity and grid refinement
bool mark (int refCount, const typename Codim< 0 >::Entity &e)
 Marks an entity to be refined/coarsened in a subsequent adapt. More...
 
int getMark (const typename Codim< 0 >::Entity &e) const
 returns adaptation mark for given entity More...
 

Static Public Member Functions

static std::string typeName ()
 
template<int codim>
static int getTwist (const typename Traits::template Codim< codim >::Entity &entity)
 
template<int codim>
static int getTwist (const typename Traits::template Codim< 0 >::Entity &entity, int subEntity)
 
static int getTwistInInside (const typename Traits::LeafIntersection &intersection)
 
static int getTwistInOutside (const typename Traits::LeafIntersection &intersection)
 

Static Public Attributes

static const int dimension = GridFamily::dimension
 
static const int dimensionworld = GridFamily::dimensionworld
 

Protected Member Functions

Parallel data distribution and communication
GridImp & asImp ()
 Barton-Nackman trick. More...
 
const GridImp & asImp () const
 Barton-Nackman trick. More...
 

Exported types

typedef GridFamily::Traits::LeafGridView LeafGridView
 type of view for leaf grid More...
 
typedef GridFamily::Traits::LevelGridView LevelGridView
 type of view for level grid More...
 
typedef GridFamily::Traits::LeafIntersection LeafIntersection
 A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in the leaf view. More...
 
typedef GridFamily::Traits::LevelIntersection LevelIntersection
 A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in a level view. More...
 
typedef GridFamily::Traits::LeafIntersectionIterator LeafIntersectionIterator
 A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an leaf element (entity of codimension 0) with other leaf elements. More...
 
typedef GridFamily::Traits::LevelIntersectionIterator LevelIntersectionIterator
 A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an element (entity of codimension 0) with other elements on the same level. More...
 
typedef GridFamily::Traits::HierarchicIterator HierarchicIterator
 A type that is a model of Dune::HierarchicIterator A type of iterator that allows to examine, but not to modify, entities of codimension 0 that result from refinement of an entity of codimension 0. More...
 
using Communication_t = typename T::Communication
 
using DeprecatedCollectiveCommunication_t = typename T::CollectiveCommunication
 

Detailed Description

template<int dim, int dimworld = Alberta::dimWorld>
class Dune::AlbertaGrid< dim, dimworld >

[ provides Dune::Grid ]

simplicial grid imlementation from the ALBERTA finite element toolbox

AlbertaGrid provides access to the grid from the ALBERTA finite element toolbox through the Dune interface.

ALBERTA is a finite element toolbox written by Alfred Schmidt and Kunibert G. Siebert (see http://www.alberta-fem.de). It contains a simplicial mesh in 1, 2 and 3 space dimensions that can be dynamically adapted by a bisection algorithm.

Supported ALBERTA versions include 3.0 or higher. It can be downloaded from the ALBERTA website (https://gitlab.mathematik.uni-stuttgart.de/ians-nmh/alberta/alberta3).

After installing ALBERTA, just configure DUNE with the cmake option -DAlberta_ROOT=[path/to/alberta] and provide the path to ALBERTA.

Each program linking to ALBERTA only supports a fixed dimension of world. This is obtained from the ALBERTA_DIM preprocessor variable. This variable and all other necessary link flags and libraries are set by the cmake function add_dune_alberta_flags(WORLDDIM [N] [targets]...) with N the world dimension.

CMake sets the config.h variables HAVE_ALBERTA that tells you whether ALBERTA was found, and ALBERTA_DIM compile flags which tells you the dimension of world for this program.

Member Typedef Documentation

◆ CollectiveCommunication

template<int dim, int dimworld = Alberta::dimWorld>
typedef Communication Dune::AlbertaGrid< dim, dimworld >::CollectiveCommunication
Deprecated:
Use Communication instead! Will be removed after Dune 2.9.

◆ Communication

template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::Communication Dune::AlbertaGrid< dim, dimworld >::Communication

type of communication

◆ Communication_t

using Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::Communication_t = typename T::Communication
protectedinherited

◆ ctype

template<int dim, int dimworld = Alberta::dimWorld>
typedef GridFamily::ctype Dune::AlbertaGrid< dim, dimworld >::ctype

◆ DeprecatedCollectiveCommunication_t

using Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::DeprecatedCollectiveCommunication_t = typename T::CollectiveCommunication
protectedinherited

◆ GlobalIdSet

template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::GlobalIdSet Dune::AlbertaGrid< dim, dimworld >::GlobalIdSet

type of global id set

◆ GridFamily

template<int dim, int dimworld = Alberta::dimWorld>
typedef AlbertaGridFamily< dim, dimworld > Dune::AlbertaGrid< dim, dimworld >::GridFamily

the grid family of AlbertaGrid

◆ HierarchicIndexSet

template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::HierarchicIndexSet Dune::AlbertaGrid< dim, dimworld >::HierarchicIndexSet

type of hierarchic index set

◆ HierarchicIterator

typedef GridFamily::Traits::HierarchicIterator Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::HierarchicIterator
inherited

A type that is a model of Dune::HierarchicIterator A type of iterator that allows to examine, but not to modify, entities of codimension 0 that result from refinement of an entity of codimension 0.

◆ LeafGridView

typedef GridFamily::Traits::LeafGridView Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::LeafGridView
inherited

type of view for leaf grid

◆ LeafIndexSet

template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::LeafIndexSet Dune::AlbertaGrid< dim, dimworld >::LeafIndexSet

type of leaf index set

◆ LeafIntersection

typedef GridFamily::Traits::LeafIntersection Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::LeafIntersection
inherited

A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in the leaf view.

◆ LeafIntersectionIterator

typedef GridFamily::Traits::LeafIntersectionIterator Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::LeafIntersectionIterator
inherited

A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an leaf element (entity of codimension 0) with other leaf elements.

◆ LevelGridView

typedef GridFamily::Traits::LevelGridView Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::LevelGridView
inherited

type of view for level grid

◆ LevelIndexSet

template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::LevelIndexSet Dune::AlbertaGrid< dim, dimworld >::LevelIndexSet

type of level index sets

◆ LevelIntersection

typedef GridFamily::Traits::LevelIntersection Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::LevelIntersection
inherited

A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in a level view.

◆ LevelIntersectionIterator

typedef GridFamily::Traits::LevelIntersectionIterator Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::LevelIntersectionIterator
inherited

A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an element (entity of codimension 0) with other elements on the same level.

◆ LocalIdSet

template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::LocalIdSet Dune::AlbertaGrid< dim, dimworld >::LocalIdSet

type of local id set

◆ Traits

template<int dim, int dimworld = Alberta::dimWorld>
typedef AlbertaGridFamily<dim,dimworld>::Traits Dune::AlbertaGrid< dim, dimworld >::Traits

Constructor & Destructor Documentation

◆ AlbertaGrid() [1/5]

template<int dim, int dimworld = Alberta::dimWorld>
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid ( const This )
delete

◆ AlbertaGrid() [2/5]

template<int dim, int dimworld>
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid
inline

create an empty grid

◆ AlbertaGrid() [3/5]

template<int dim, int dimworld>
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid ( const Alberta::MacroData< dimension > &  macroData,
const std::shared_ptr< DuneBoundaryProjection< dimensionworld > > &  projection = std::shared_ptr< DuneBoundaryProjectiondimensionworld > >() 
)
inline

create a grid from an ALBERTA macro data structure

Parameters
[in]macroDatamacro data to create grid from
[in]projectionshared pointer to a global boundary projection (defaults to 0)

◆ AlbertaGrid() [4/5]

template<int dim, int dimworld>
template<class Proj , class Impl >
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid ( const Alberta::MacroData< dimension > &  macroData,
const Alberta::ProjectionFactoryInterface< Proj, Impl > &  projectionFactory 
)
inline

◆ AlbertaGrid() [5/5]

template<int dim, int dimworld>
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid ( const std::string &  macroGridFileName)
inline

create a grid from an ALBERTA macro grid file

Parameters
[in]macroGridFileNamename of the macro grid file

◆ ~AlbertaGrid()

template<int dim, int dimworld>
Dune::AlbertaGrid< dim, dimworld >::~AlbertaGrid
inline

desctructor

Member Function Documentation

◆ adapt() [1/2]

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::adapt
inline

Refine all positive marked leaf entities, coarsen all negative marked entities if possible.

\return true if a least one entity was refined

The complete adaptation process works as follows:

- mark entities with the mark() method
- call preAdapt()
- if preAdapt() returned true: possibly save current solution
- call adapt()
- if adapt() returned true: possibly interpolate the (saved) solution
- call postAdapt()

◆ adapt() [2/2]

template<int dim, int dimworld>
template<class DataHandle >
bool Dune::AlbertaGrid< dim, dimworld >::adapt ( AdaptDataHandleInterface< This, DataHandle > &  handle)
inline

callback adapt method with AdaptDataHandleInterface

◆ alberta2dune()

template<int dim, int dimworld = Alberta::dimWorld>
int Dune::AlbertaGrid< dim, dimworld >::alberta2dune ( int  codim,
int  i 
) const
inline

◆ alberta2generic()

template<int dim, int dimworld = Alberta::dimWorld>
int Dune::AlbertaGrid< dim, dimworld >::alberta2generic ( int  codim,
int  i 
) const
inline

◆ asImp() [1/2]

GridImp & Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::asImp ( )
inlineprotectedinherited

Barton-Nackman trick.

◆ asImp() [2/2]

const GridImp & Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::asImp ( ) const
inlineprotectedinherited

Barton-Nackman trick.

◆ comm()

template<int dim, int dimworld = Alberta::dimWorld>
const Communication & Dune::AlbertaGrid< dim, dimworld >::comm ( ) const
inline

return reference to communication, if MPI found this is specialisation for MPI

◆ dofNumbering()

template<int dim, int dimworld = Alberta::dimWorld>
const DofNumbering & Dune::AlbertaGrid< dim, dimworld >::dofNumbering ( ) const
inline

◆ dune2alberta()

template<int dim, int dimworld = Alberta::dimWorld>
int Dune::AlbertaGrid< dim, dimworld >::dune2alberta ( int  codim,
int  i 
) const
inline

◆ entity()

template<int dim, int dimworld = Alberta::dimWorld>
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::Entity Dune::AlbertaGrid< dim, dimworld >::entity ( const EntitySeed seed) const
inline

obtain Entity from EntitySeed.

◆ generic2alberta()

template<int dim, int dimworld = Alberta::dimWorld>
int Dune::AlbertaGrid< dim, dimworld >::generic2alberta ( int  codim,
int  i 
) const
inline

◆ getCoord()

template<int dim, int dimworld>
const Alberta::GlobalVector & Dune::AlbertaGrid< dim, dimworld >::getCoord ( const ElementInfo elementInfo,
int  vertex 
) const
inline

◆ getMark() [1/2]

int Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::getMark ( const typename Codim< 0 >::Entity &  e) const
inlineinherited

returns adaptation mark for given entity

Parameters
[in]eEntity for which adaptation mark should be determined
Returns
int adaptation mark currently set for given Entity e

◆ getMark() [2/2]

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::getMark ( const typename Traits::template Codim< 0 >::Entity &  e) const
inline

returns adaptation mark for given entity

Parameters
[in]eEntity for which adaptation mark should be determined
Returns
int adaptation mark currently set for given Entity e

◆ getMesh()

template<int dim, int dimworld = Alberta::dimWorld>
ALBERTA MESH * Dune::AlbertaGrid< dim, dimworld >::getMesh ( ) const
inline

◆ getTwist() [1/2]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
static int Dune::AlbertaGrid< dim, dimworld >::getTwist ( const typename Traits::template Codim< 0 >::Entity &  entity,
int  subEntity 
)
inlinestatic

◆ getTwist() [2/2]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
static int Dune::AlbertaGrid< dim, dimworld >::getTwist ( const typename Traits::template Codim< codim >::Entity &  entity)
inlinestatic

◆ getTwistInInside()

template<int dim, int dimworld = Alberta::dimWorld>
static int Dune::AlbertaGrid< dim, dimworld >::getTwistInInside ( const typename Traits::LeafIntersection intersection)
inlinestatic

◆ getTwistInOutside()

template<int dim, int dimworld = Alberta::dimWorld>
static int Dune::AlbertaGrid< dim, dimworld >::getTwistInOutside ( const typename Traits::LeafIntersection intersection)
inlinestatic

◆ globalIdSet()

template<int dim, int dimworld = Alberta::dimWorld>
const GlobalIdSet & Dune::AlbertaGrid< dim, dimworld >::globalIdSet ( ) const
inline

return global IdSet

◆ globalRefine() [1/2]

template<int dim, int dimworld>
void Dune::AlbertaGrid< dim, dimworld >::globalRefine ( int  refCount)
inline

uses the interface, mark on entity and refineLocal

◆ globalRefine() [2/2]

template<int dim, int dimworld>
template<class DataHandle >
void Dune::AlbertaGrid< dim, dimworld >::globalRefine ( int  refCount,
AdaptDataHandleInterface< This, DataHandle > &  handle 
)
inline

◆ hierarchicIndexSet()

template<int dim, int dimworld = Alberta::dimWorld>
const HierarchicIndexSet & Dune::AlbertaGrid< dim, dimworld >::hierarchicIndexSet ( ) const
inline

◆ lbegin() [1/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int cd, PartitionIteratorType pitype>
Traits::template Codim< cd >::template Partition< pitype >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lbegin ( int  level) const

Iterator to first entity of given codim on level.

◆ lbegin() [2/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
Traits::template Codim< codim >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lbegin ( int  level) const

Iterator to first entity of given codim on level.

◆ lbegin() [3/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::template Partition< pitype >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lbegin ( int  level) const
inline

◆ lbegin() [4/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lbegin ( int  level) const
inline

◆ leafbegin() [1/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
Traits::template Codim< codim >::template Partition< pitype >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafbegin ( ) const

return LeafIterator which points to first leaf entity

◆ leafbegin() [2/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
Traits::template Codim< codim >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafbegin ( ) const

return LeafIterator which points to first leaf entity

◆ leafbegin() [3/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::template Partition< pitype >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafbegin ( ) const
inline

◆ leafbegin() [4/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafbegin ( ) const
inline

◆ leafend() [1/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
Traits::template Codim< codim >::template Partition< pitype >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafend ( ) const

return LeafIterator which points behind last leaf entity

◆ leafend() [2/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
Traits::template Codim< codim >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafend ( ) const

return LeafIterator which points behind last leaf entity

◆ leafend() [3/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::template Partition< pitype >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafend ( ) const
inline

◆ leafend() [4/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafend ( ) const
inline

◆ leafGridView()

template<int dim, int dimworld = Alberta::dimWorld>
Traits::LeafGridView Dune::AlbertaGrid< dim, dimworld >::leafGridView ( ) const
inline

View for the leaf grid for All_Partition.

◆ leafIndexSet()

template<int dim, int dimworld>
const AlbertaGrid< dim, dimworld >::Traits::LeafIndexSet & Dune::AlbertaGrid< dim, dimworld >::leafIndexSet
inline

return leaf index set

◆ lend() [1/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int cd, PartitionIteratorType pitype>
Traits::template Codim< cd >::template Partition< pitype >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lend ( int  level) const

one past the end on this level

◆ lend() [2/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
Traits::template Codim< codim >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lend ( int  level) const

one past the end on this level

◆ lend() [3/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::template Partition< pitype >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lend ( int  level) const
inline

◆ lend() [4/4]

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
AlbertaGrid< dim, dimworld >::Traits::template Codim< codim >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lend ( int  level) const
inline

◆ levelGridView()

template<int dim, int dimworld = Alberta::dimWorld>
Traits::LevelGridView Dune::AlbertaGrid< dim, dimworld >::levelGridView ( int  level) const
inline

View for a grid level for All_Partition.

◆ levelIndexSet()

template<int dim, int dimworld>
const AlbertaGrid< dim, dimworld >::Traits::LevelIndexSet & Dune::AlbertaGrid< dim, dimworld >::levelIndexSet ( int  level) const
inline

return level index set for given level

◆ levelProvider()

template<int dim, int dimworld = Alberta::dimWorld>
const LevelProvider & Dune::AlbertaGrid< dim, dimworld >::levelProvider ( ) const
inline

◆ loadBalance() [1/2]

bool Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::loadBalance ( )
inlineinherited

default implementation of load balance does nothing and returns false

◆ loadBalance() [2/2]

bool Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::loadBalance ( DataHandle &  data)
inlineinherited

default implementation of load balance does nothing and returns false

◆ localIdSet()

template<int dim, int dimworld = Alberta::dimWorld>
const LocalIdSet & Dune::AlbertaGrid< dim, dimworld >::localIdSet ( ) const
inline

return local IdSet

◆ mark() [1/3]

bool Dune::Grid< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::mark ( int  refCount,
const typename Codim< 0 >::Entity &  e 
)
inlineinherited

Marks an entity to be refined/coarsened in a subsequent adapt.

Parameters
[in]refCountNumber of subdivisions that should be applied. Negative value means coarsening.
[in]eEntity that should be marked
Returns
true if Entity was marked, false otherwise.

◆ mark() [2/3]

bool Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, Alberta::dimWorld > >::mark ( int  refCount,
const typename Traits ::template Codim< 0 >::Entity &  e 
)
inlineinherited

Marks an entity to be refined/coarsened in a subsequent adapt.

Parameters
[in]refCountNumber of subdivisions that should be applied. Negative value means coarsening.
[in]eEntity to Entity that should be refined
Returns
true if Entity was marked, false otherwise.
Note
  • default implementation is: return false; for grids with no adaptation.
  • for the grid programmer: this method is implemented as a template method, because the Entity type is not defined when the class is instantiated You won't need this trick in the implementation. In your implementation you should use it as
    bool mark( int refCount,
    typename Traits::template Codim<0>::Entity & e ).
    bool mark(int refCount, const typename Traits::template Codim< 0 >::Entity &e)
    Marks an entity to be refined/coarsened in a subsequent adapt.
    Definition: albertagrid.cc:385
    This template method will vanish due to the inheritance rules.

◆ mark() [3/3]

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::mark ( int  refCount,
const typename Traits::template Codim< 0 >::Entity &  e 
)
inline

Marks an entity to be refined/coarsened in a subsequent adapt.

Parameters
[in]refCountNumber of subdivisions that should be applied. Negative value means coarsening.
[in]eEntity that should be marked
Returns
true if Entity was marked, false otherwise.

◆ maxLevel()

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::maxLevel
inline

Return maximum level defined in this grid. Levels are numbered 0 ... maxLevel with 0 the coarsest level.

◆ meshPointer()

template<int dim, int dimworld = Alberta::dimWorld>
const MeshPointer & Dune::AlbertaGrid< dim, dimworld >::meshPointer ( ) const
inline

◆ numBoundarySegments()

template<int dim, int dimworld = Alberta::dimWorld>
std::size_t Dune::AlbertaGrid< dim, dimworld >::numBoundarySegments ( ) const
inline

number of boundary segments within the macro grid

◆ operator=()

template<int dim, int dimworld = Alberta::dimWorld>
This & Dune::AlbertaGrid< dim, dimworld >::operator= ( const This )
delete

◆ postAdapt()

template<int dim, int dimworld>
void Dune::AlbertaGrid< dim, dimworld >::postAdapt
inline

clean up some markers

◆ preAdapt()

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::preAdapt
inline

returns true, if a least one element is marked for coarsening

◆ readGrid()

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::readGrid ( const std::string &  filename,
ctype time 
)
inline

read Grid from file filename and store time of mesh in time

◆ size() [1/4]

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::size ( GeometryType  type) const
inline

number of leaf entities per geometry type in this process

◆ size() [2/4]

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::size ( int  codim) const
inline

number of leaf entities per codim in this process

◆ size() [3/4]

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::size ( int  level,
GeometryType  type 
) const
inline

number of entities per level and geometry type in this process

◆ size() [4/4]

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::size ( int  level,
int  codim 
) const
inline

Number of grid entities per level and codim because lbegin and lend are none const, and we need this methods counting the entities on each level, you know.

◆ typeName()

template<int dim, int dimworld = Alberta::dimWorld>
static std::string Dune::AlbertaGrid< dim, dimworld >::typeName ( )
inlinestatic

◆ writeGrid()

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::writeGrid ( const std::string &  filename,
ctype  time 
) const
inline

write Grid to file in Xdr

Member Data Documentation

◆ dimension

template<int dim, int dimworld = Alberta::dimWorld>
const int Dune::AlbertaGrid< dim, dimworld >::dimension = GridFamily::dimension
static

◆ dimensionworld

template<int dim, int dimworld = Alberta::dimWorld>
const int Dune::AlbertaGrid< dim, dimworld >::dimensionworld = GridFamily::dimensionworld
static

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