dune-grid
2.4.1
|
[ provides Dune::Grid ] More...
#include <dune/grid/alugrid/2d/entity.hh>
Public Types | |
typedef ALU2dGridFamily< dim, dimworld, eltype >::Traits | Traits |
The traits of this class. More... | |
Exported constants | |
enum | { dimension =dim } |
A constant that exports the template parameter dim. More... | |
enum | { dimensionworld =dimworld } |
A constant that exports the template parameter dimworld. More... | |
Exported types | |
typedef Partition < All_Partition > ::LevelGridView | LevelGridView |
View types for All_Partition. More... | |
typedef Partition < All_Partition > ::LeafGridView | LeafGridView |
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... | |
typedef GridFamily::Traits::LevelIndexSet | LevelIndexSet |
A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities on a grid level. More... | |
typedef GridFamily::Traits::LeafIndexSet | LeafIndexSet |
A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities in the leaf grid. More... | |
typedef GridFamily::Traits::GlobalIdSet | GlobalIdSet |
A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is unique over all processes over which the grid is partitioned. The numbering is not necessarily consecutive. More... | |
typedef GridFamily::Traits::LocalIdSet | LocalIdSet |
A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is only unique in a single process and it is not necessarily consecutive. More... | |
typedef GridFamily::Traits::CollectiveCommunication | CollectiveCommunication |
A type that is a model of Dune::CollectiveCommunication. It provides a portable way for collective communication on the set of processes used by the grid. More... | |
typedef ct | ctype |
Define type used for coordinates in grid module. More... | |
Public Member Functions | |
Traits::template Codim< codim > ::LevelIterator | lbegin (int level) const |
Iterator to first entity of given codim on level for PartitionType All_Partition. More... | |
Traits::template Codim< codim > ::template Partition< pitype > ::LevelIterator | lbegin (int level) const |
Iterator to first entity of given codim on level. More... | |
Traits::template Codim< codim > ::LevelIterator | lend (int level) const |
one past the end on this level for PartitionType All_Partition More... | |
Traits::template Codim< codim > ::template Partition< pitype > ::LevelIterator | lend (int level) const |
one past the end on this level More... | |
Traits::template Codim< codim > ::LeafIterator | leafbegin () const |
Iterator to first entity of given codim on leaf grid for PartitionType All_Partition. More... | |
Traits::template Codim< codim > ::template Partition< pitype > ::LeafIterator | leafbegin () const |
Iterator to first entity of given codim on leaf grid. More... | |
Traits::template Codim< codim > ::LeafIterator | leafend () const |
one past the end on the leaf grid for PartitionType All_Partition More... | |
Traits::template Codim< codim > ::template Partition< pitype > ::LeafIterator | leafend () const |
one past the end on the leaf level grid More... | |
Traits::template Partition < pitype >::LevelGridView | levelGridView (int level) const |
View for a grid level. More... | |
Traits::template Partition < All_Partition > ::LevelGridView | levelGridView (int level) const |
View for a grid level for All_Partition. More... | |
Traits::template Partition < pitype >::LeafGridView | leafGridView () const |
View for the leaf grid. More... | |
Traits::template Partition < All_Partition > ::LeafGridView | leafGridView () const |
View for the leaf grid for All_Partition. 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... | |
int | getMark (const typename Traits::template Codim< 0 >::Entity &e) const |
returns adaptation mark for given entity, i.e. here the default implementation returns 0. More... | |
bool | adapt () |
Refine all positive marked leaf entities coarsen all negative marked entities if possible. More... | |
bool | preAdapt () |
returns true, if at least one entity is marked for adaption More... | |
void | postAdapt () |
clean up some markers More... | |
int | ghostSize (int level, int codim) const |
ghostSize is zero by default More... | |
int | ghostSize (int codim) const |
ghostSize is zero by default More... | |
int | overlapSize (int level, int codim) const |
overlapSize is zero by default More... | |
int | overlapSize (int codim) const |
overlapSize is zero by default More... | |
void | communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir, int level) const |
void | communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir) const |
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... | |
size_t | numBoundarySegments () const |
returns the number of boundary segments within the macro grid More... | |
template<class EntitySeed > | |
Codim< EntitySeed::codimension > ::EntityPointer | entityPointer (const EntitySeed &seed) const |
obtain EntityPointer from EntitySeed. More... | |
template<class EntitySeed > | |
Codim< EntitySeed::codimension > ::Entity | entity (const EntitySeed &seed) const |
obtain Entity from EntitySeed. 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... | |
void | globalRefine (int refCount) |
Refine the grid refCount times using the default refinement rule. More... | |
Size methods | |
int | maxLevel () const |
Return maximum level defined in this grid. Levels are numbered 0 ... maxLevel with 0 the coarsest level. More... | |
int | size (int level, int codim) const |
Return number of grid entities of a given codim on a given level in this process. More... | |
int | size (int codim) const |
Return number of leaf entities of a given codim in this process. More... | |
int | size (int level, GeometryType type) const |
Return number of entities per level and geometry type in this process. More... | |
int | size (GeometryType type) const |
Return number of leaf entities per geometry type in this process. More... | |
Access to index and id sets | |
const GlobalIdSet & | globalIdSet () const |
return const reference to the grids global id set More... | |
const LocalIdSet & | localIdSet () const |
return const reference to the grids local id set More... | |
const LevelIndexSet & | levelIndexSet (int level) const |
return const reference to the grids level index set for level level More... | |
const LeafIndexSet & | leafIndexSet () const |
return const reference to the grids leaf index set More... | |
Parallel data distribution and communication | |
const CollectiveCommunication & | comm () const |
return const reference to a collective communication object. The return type is a model of Dune::CollectiveCommunication. More... | |
Protected Member Functions | |
GridImp & | asImp () |
Barton-Nackman trick. More... | |
const GridImp & | asImp () const |
Barton-Nackman trick. More... | |
Static Protected Member Functions | |
static std::conditional < std::is_reference < InterfaceType >::value, typename std::add_lvalue_reference < typename ReturnImplementationType < typename std::remove_reference < InterfaceType >::type > ::ImplementationType >::type, typename std::remove_const < typename ReturnImplementationType < typename std::remove_reference < InterfaceType >::type > ::ImplementationType >::type > ::type | getRealImplementation (InterfaceType &&i) |
return real implementation of interface class More... | |
[ provides Dune::Grid ]
2D grid, will provide non conform grids The ALU2dGrid implements the Dune GridInterface for 2d meshes. This grid can be locally adapted and will provide non conform grids.
(see ALUGrid homepage: http://www.mathematik.uni-freiburg.de/IAM/Research/alugrid/)
|
inherited |
A type that is a model of Dune::CollectiveCommunication. It provides a portable way for collective communication on the set of processes used by the grid.
|
inherited |
Define type used for coordinates in grid module.
|
inherited |
A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is unique over all processes over which the grid is partitioned. The numbering is not necessarily consecutive.
|
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.
|
inherited |
|
inherited |
A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities in the leaf grid.
|
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.
|
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.
|
inherited |
View types for All_Partition.
|
inherited |
A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities on a grid level.
|
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.
|
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.
|
inherited |
A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is only unique in a single process and it is not necessarily consecutive.
|
inherited |
The traits of this class.
Presents the typedefs as described in GridTraits.
|
inlineinherited |
Refine all positive marked leaf entities coarsen all negative marked entities if possible.
|
inlineprotectedinherited |
Barton-Nackman trick.
Referenced by Dune::Grid< dim, dimworld, ct, GridFamily >::adapt(), Dune::Grid< dim, dimworld, ct, GridFamily >::comm(), Dune::Grid< dim, dimworld, ct, GridFamily >::communicate(), Dune::Grid< dim, dimworld, ct, GridFamily >::entity(), Dune::Grid< dim, dimworld, ct, GridFamily >::entityPointer(), Dune::Grid< dim, dimworld, ct, GridFamily >::getMark(), Dune::Grid< dim, dimworld, ct, GridFamily >::ghostSize(), Dune::Grid< dim, dimworld, ct, GridFamily >::globalIdSet(), Dune::Grid< dim, dimworld, ct, GridFamily >::globalRefine(), Dune::Grid< dim, dimworld, ct, GridFamily >::lbegin(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::lbegin(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafbegin(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::leafbegin(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafend(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::leafend(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafGridView(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::leafGridView(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafIndexSet(), Dune::Grid< dim, dimworld, ct, GridFamily >::lend(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::lend(), Dune::Grid< dim, dimworld, ct, GridFamily >::levelGridView(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::levelGridView(), Dune::Grid< dim, dimworld, ct, GridFamily >::levelIndexSet(), Dune::Grid< dim, dimworld, ct, GridFamily >::loadBalance(), Dune::Grid< dim, dimworld, ct, GridFamily >::localIdSet(), Dune::Grid< dim, dimworld, ct, GridFamily >::mark(), Dune::Grid< dim, dimworld, ct, GridFamily >::maxLevel(), Dune::Grid< dim, dimworld, ct, GridFamily >::numBoundarySegments(), Dune::Grid< dim, dimworld, ct, GridFamily >::overlapSize(), Dune::Grid< dim, dimworld, ct, GridFamily >::postAdapt(), Dune::Grid< dim, dimworld, ct, GridFamily >::preAdapt(), and Dune::Grid< dim, dimworld, ct, GridFamily >::size().
|
inlineprotectedinherited |
Barton-Nackman trick.
|
inlineinherited |
return const reference to a collective communication object. The return type is a model of Dune::CollectiveCommunication.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
dummy communicate, doing nothing
|
inlineinherited |
dummy communicate, doing nothing
|
inlineinherited |
obtain Entity from EntitySeed.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
obtain EntityPointer from EntitySeed.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
returns adaptation mark for given entity
[in] | e | Entity for which adaptation mark should be determined |
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
returns adaptation mark for given entity, i.e. here the default implementation returns 0.
[in] | e | Entity for which adaptation mark should be determined |
|
inlinestaticprotectedinherited |
return real implementation of interface class
Referenced by Dune::ALU2dGridHierarchicIndexSet< dim, dimworld, eltype >::index().
|
inlineinherited |
ghostSize is zero by default
|
inlineinherited |
ghostSize is zero by default
|
inlineinherited |
return const reference to the grids global id set
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
Refine the grid refCount times using the default refinement rule.
This behaves like marking all elements for refinement and then calling preAdapt, adapt and postAdapt. The state after globalRefine is comparable to the state after postAdapt.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
Referenced by main().
|
inlineinherited |
Iterator to first entity of given codim on level for PartitionType All_Partition.
|
inlineinherited |
Iterator to first entity of given codim on level.
|
inlineinherited |
Iterator to first entity of given codim on leaf grid for PartitionType All_Partition.
|
inlineinherited |
Iterator to first entity of given codim on leaf grid.
|
inlineinherited |
one past the end on the leaf grid for PartitionType All_Partition
|
inlineinherited |
one past the end on the leaf level grid
|
inlineinherited |
View for the leaf grid.
|
inlineinherited |
View for the leaf grid for All_Partition.
|
inlineinherited |
return const reference to the grids leaf index set
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
one past the end on this level for PartitionType All_Partition
|
inlineinherited |
one past the end on this level
|
inlineinherited |
View for a grid level.
|
inlineinherited |
View for a grid level for All_Partition.
|
inlineinherited |
return const reference to the grids level index set for level level
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
default implementation of load balance does nothing and returns false
|
inlineinherited |
default implementation of load balance does nothing and returns false
|
inlineinherited |
return const reference to the grids local id set
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
Marks an entity to be refined/coarsened in a subsequent adapt.
[in] | refCount | Number of subdivisions that should be applied. Negative value means coarsening. |
[in] | e | Entity that should be marked |
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
Marks an entity to be refined/coarsened in a subsequent adapt.
[in] | refCount | Number of subdivisions that should be applied. Negative value means coarsening. |
[in] | e | Entity to Entity that should be refined |
|
inlineinherited |
Return maximum level defined in this grid. Levels are numbered 0 ... maxLevel with 0 the coarsest level.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
Referenced by Dune::ALUGridLoadBalanceDataHandle< Grid, DataHandleImpl, Data >::inlineData(), and Dune::ALUGridLoadBalanceDataHandle< Grid, DataHandleImpl, Data >::xtractData().
|
inlineinherited |
returns the number of boundary segments within the macro grid
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
|
inlineinherited |
overlapSize is zero by default
|
inlineinherited |
overlapSize is zero by default
|
inlineinherited |
clean up some markers
|
inlineinherited |
returns true, if at least one entity is marked for adaption
|
inlineinherited |
Return number of grid entities of a given codim on a given level in this process.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().
Referenced by Dune::YaspPersistentContainerIndex< const YaspGrid< dim, CoordCont > >::size(), Dune::ALU2dGridHierarchicIndexSet< dim, dimworld, eltype >::size(), and Dune::Grid< dim, dimworld, ct, GridFamily >::size().
|
inlineinherited |
Return number of leaf entities of a given codim in this process.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp(), and Dune::Grid< dim, dimworld, ct, GridFamily >::size().
|
inlineinherited |
Return number of entities per level and geometry type in this process.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp(), and Dune::Grid< dim, dimworld, ct, GridFamily >::size().
|
inlineinherited |
Return number of leaf entities per geometry type in this process.
References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp(), and Dune::Grid< dim, dimworld, ct, GridFamily >::size().