Dune Core Modules (2.3.1)
sgrid.hh
Go to the documentation of this file.
123 static_cast< AxisAlignedCubeGeometry<ctype,mydim,cdim> & >( *this ) = AxisAlignedCubeGeometry<ctype,mydim,cdim>(lower);
140 static_cast< AxisAlignedCubeGeometry<ctype,mydim,cdim> & >( *this ) = AxisAlignedCubeGeometry<ctype,mydim,cdim>(lower, upper, axes);
145 : AxisAlignedCubeGeometry<ctype,mydim,cdim>(FieldVector<ctype,cdim>(0),FieldVector<ctype,cdim>(0)) // anything
576 std::stack<SHierarchicStackElem, Dune::ReservedVector<SHierarchicStackElem,GridImp::MAXL> > stack;
747 typedef Dune::Intersection< const GridImp, Dune::SIntersectionIterator< const GridImp > > Intersection;
1100 DUNE_THROW( NotImplemented, "subIndex for higher codimension entity not implemented for SGrid." );
1145 public IdSet<GridImp,SGridGlobalIdSet<GridImp>, typename remove_const<GridImp>::type::PersistentIndexType>
1168 IdType id (const typename remove_const<GridImp>::type::Traits::template Codim<cd>::Entity& e) const
1178 IdType subId ( const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e,
1267 class SGrid : public GridDefaultImplementation <dim,dimworld,_ctype,SGridFamily<dim,dimworld,_ctype> >
1271 typedef bigunsignedint<dim*sgrid_dim_bits+sgrid_level_bits+sgrid_codim_bits> PersistentIndexType;
1329 typename Traits::template Codim<cd>::template Partition<pitype>::LevelIterator lbegin (int level) const;
1333 typename Traits::template Codim<cd>::template Partition<pitype>::LevelIterator lend (int level) const;
1337 typename Traits::template Codim<cd>::template Partition<All_Partition>::LevelIterator lbegin (int level) const
1344 typename Traits::template Codim<cd>::template Partition<All_Partition>::LevelIterator lend (int level) const
1351 typename Traits::template Codim<cd>::template Partition<pitype>::LeafIterator leafbegin () const;
1355 typename Traits::template Codim<cd>::template Partition<pitype>::LeafIterator leafend () const;
1359 typename Traits::template Codim<cd>::template Partition<All_Partition>::LeafIterator leafbegin () const
1366 typename Traits::template Codim<cd>::template Partition<All_Partition>::LeafIterator leafend () const
1498 void communicate (DataHandle& data, InterfaceType iftype, CommunicationDirection dir, int level) const
1675 void makeSGrid (const array<int,dim>& N_, const FieldVector<ctype, dim>& L_, const FieldVector<ctype, dim>& H_);
A geometry implementation for axis-aligned hypercubes.
Portable very large unsigned integers.
a stack of pointers with auto destruction if the stack is destructed
Definition: sgrid.hh:876
A geometry implementation for axis-aligned hypercubes.
Definition: axisalignedcubegeometry.hh:50
GridImp::template Codim< cd >::EntityPointer EntityPointer
The corresponding entity seed (for storage of entities)
Definition: entity.hh:574
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:25
FieldVector< ctype, cdim > GlobalCoordinate
type of the global coordinates
Definition: geometry.hh:136
FieldVector< ctype, mydim > LocalCoordinate
type of local coordinates
Definition: geometry.hh:133
Definition: grid.hh:1017
static ReturnImplementationType< InterfaceType >::ImplementationType & getRealImplementation(InterfaceType &i)
return real implementation of interface class
Definition: grid.hh:1223
Intersection of a mesh entities of codimension 0 ("elements") with a "neighboring" element or with th...
Definition: intersection.hh:161
Definition: sgrid.hh:158
int compressedIndex() const
consecutive, codim-wise, level-wise index
Definition: sgrid.hh:243
int subCompressedLeafIndex(int cd, int i) const
subentity compressed leaf index (not available here)
Definition: sgrid.hh:274
array< int, dim > z
my coordinate, number of even components = codim
Definition: sgrid.hh:285
PersistentIndexType persistentIndex() const
globally unique, persistent index
Definition: sgrid.hh:237
SEntitySeed< codim, GridImp > seed() const
Return the entity seed which contains sufficient information to generate the entity again and uses as...
Definition: sgrid.hh:182
int globalIndex() const
global index is calculated from the index and grid size
int compressedLeafIndex() const
consecutive, codim-wise, level-wise index
Definition: sgrid.hh:249
GeometryType type() const
return the element type identifier
Definition: sgrid.hh:187
SEntityBase(const SEntityBase &other)
copy constructor
Definition: sgrid.hh:218
SEntityBase(GridImp *_grid, int _l, int _index)
constructor
Definition: sgrid.hh:205
bool builtgeometry
true if geometry has been constructed
Definition: sgrid.hh:287
int subCompressedIndex(int cd, int i) const
subentity compressed index (not available here)
Definition: sgrid.hh:267
Definition: sgrid.hh:893
SEntityPointer(const SEntityPointer< codim, GridImp > &other)
constructor
Definition: sgrid.hh:922
SEntityPointer(GridImp *_grid, int _l, int _index)
constructor
Definition: sgrid.hh:910
SEntityPointer & operator=(const SEntityPointer &other)
assignment operator
Definition: sgrid.hh:938
SEntityPointer(const SEntity< codim, dim, GridImp > &_e)
constructor
Definition: sgrid.hh:916
Definition: sgrid.hh:1002
bool isValid() const
check whether the EntitySeed refers to a valid Entity
Definition: sgrid.hh:1018
Definition: sgrid.hh:336
bool hasFather() const
returns true if father entity exists
Definition: sgrid.hh:430
int count() const
bool isLeaf() const
return true if the entity is leaf
Definition: sgrid.hh:436
IntersectionIterator ibegin() const
int subCompressedLeafIndex(int codim, int i) const
Definition: sgrid.hh:390
PersistentIndexType subPersistentIndex(int codim, int i) const
subentity persistent index
Definition: sgrid.hh:400
Codim< cc >::EntityPointer subEntity(int i) const
int subCompressedIndex(int codim, int i) const
subentity compressed index
Definition: sgrid.hh:380
HierarchicIterator hbegin(int maxLevel) const
Inter-level access to son elements on higher levels<=maxLevel.
IntersectionIterator iend() const
Reference to one past the last intersection.
LocalGeometry geometryInFather() const
Location of this element relative to the reference element element of the father.
EntityPointer father() const
Inter-level access to father element on coarser grid.
SEntity(GridImp *_grid, int _l, int _index)
constructor
Definition: sgrid.hh:467
void make(int _l, int _id)
Reinitialization.
Definition: sgrid.hh:485
void make(GridImp *_grid, int _l, int _id)
Reinitialization.
Definition: sgrid.hh:478
HierarchicIterator hend(int maxLevel) const
Returns iterator to one past the last son.
Definition: sgrid.hh:298
Definition: sgrid.hh:106
GridImp::ctype ctype
define type used for coordinates in grid module
Definition: sgrid.hh:109
void make(const FieldVector< ctype, cdim > &lower, const FieldMatrix< ctype, mydim, cdim > &A)
Set up the geometry.
Definition: sgrid.hh:118
IdType subId(const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e, int i, unsigned int codim) const
get id of subentity
Definition: sgrid.hh:1178
IdType id(const typename remove_const< GridImp >::type::Traits::template Codim< cd >::Entity &e) const
get id of an entity
Definition: sgrid.hh:1168
remove_const< GridImp >::type::PersistentIndexType IdType
define the type used for persistent indices
Definition: sgrid.hh:1160
const std::vector< GeometryType > & geomTypes(int codim) const
deliver all geometry types used in this grid
Definition: sgrid.hh:1123
int index(const typename GridImp::Traits::template Codim< cd >::Entity &e) const
get index of an entity
Definition: sgrid.hh:1088
int size(int codim) const
return size of set for a given codim
Definition: sgrid.hh:1117
SGridLevelIndexSet(const GridImp &g, int l)
constructor stores reference to a grid and level
Definition: sgrid.hh:1076
int size(GeometryType type) const
get number of entities of given type and level (the level is known to the object)
Definition: sgrid.hh:1111
int ghostSize(int level, int codim) const
return size (= distance in graph) of ghost region
Definition: sgrid.hh:1523
int overlapSize(int level, int codim)
return size (= distance in graph) of overlap region
Definition: sgrid.hh:1433
FieldVector< ctype, dimworld > upperRight() const
Get upper right corner.
Definition: sgrid.hh:1460
Traits::template Codim< cd >::template Partition< All_Partition >::LeafIterator leafbegin() const
return LeafIterator which points to the first entity
Definition: sgrid.hh:1359
const array< int, dim > & dims(int level) const
Get number of elements in each coordinate direction.
Definition: sgrid.hh:1450
int ghostSize(int level, int codim)
return size (= distance in graph) of ghost region
Definition: sgrid.hh:1439
Traits::template Codim< cd >::template Partition< pitype >::LevelIterator lend(int level) const
one past the end on this level
int size(GeometryType type) const
number of leaf entities per codim and geometry type in this process
Definition: sgrid.hh:1418
int size(int level, GeometryType type) const
number of entities per level and geometry type in this process
Definition: sgrid.hh:1412
Traits::template Codim< cd >::template Partition< All_Partition >::LevelIterator lend(int level) const
one past the end on this level
Definition: sgrid.hh:1344
int overlapSize(int level, int codim) const
return size (= distance in graph) of overlap region
Definition: sgrid.hh:1511
Traits::template Codim< cd >::template Partition< pitype >::LeafIterator leafend() const
one past the end on the leaf level
Traits::template Codim< cd >::template Partition< pitype >::LevelIterator lbegin(int level) const
Iterator to first entity of given codim on level.
int global_size(int codim) const
number of grid entities of all level for given codim
int overlapSize(int codim) const
return size (= distance in graph) of overlap region
Definition: sgrid.hh:1517
_ctype ctype
define type used for coordinates in grid module
Definition: sgrid.hh:1284
Traits::template Codim< cd >::template Partition< All_Partition >::LevelIterator lbegin(int level) const
Iterator to first entity of given codim on level.
Definition: sgrid.hh:1337
SGrid(const int *const N_, const ctype *const L_, const ctype *const H_)
Make an SGrid from position, extend and number of cells per direction.
SGrid(const int *const N_, const ctype *const H_)
Make an SGrid from extend and number of cells per direction.
int size(int codim) const
number of leaf entities per codim in this process
Definition: sgrid.hh:1406
Traits::template Codim< cd >::template Partition< All_Partition >::LeafIterator leafend() const
return LeafIterator which points behind the last entity
Definition: sgrid.hh:1366
const FieldVector< ctype, dimworld > & lowerLeft() const
Get lower left corner.
Definition: sgrid.hh:1455
void globalRefine(int refCount)
Refine mesh globally by one refCount levels.
int ghostSize(int codim) const
return size (= distance in graph) of ghost region
Definition: sgrid.hh:1529
SGrid(FieldVector< int, dim > N_, FieldVector< ctype, dim > L_, FieldVector< ctype, dim > H_)
Make an SGrid from position, extend and number of cells per direction.
Traits::template Codim< cd >::template Partition< pitype >::LeafIterator leafbegin() const
return LeafIterator which points to the first entity
int maxLevel() const
void communicate(T &t, InterfaceType iftype, CommunicationDirection dir, int level)
Definition: sgrid.hh:1396
size_t numBoundarySegments() const
returns the number of boundary segments within the macro grid
Definition: sgrid.hh:1424
Definition: sgrid.hh:590
Geometry geometry() const
EntityPointer outside() const
bool equals(const SIntersectionIterator< GridImp > &i) const
equality
bool neighbor() const
return true if neighbor on this level exists
SIntersectionIterator(GridImp *_grid, const SEntity< 0, dim, GridImp > *_self, int _count)
constructor
Definition: sgrid.hh:675
int indexInOutside() const
local index of codim 1 entity in neighbor where intersection is contained in
LocalGeometry geometryInInside() const
int indexInInside() const
local index of codim 1 entity in self where intersection is contained in
EntityPointer inside() const
GeometryType type() const
obtain the type of reference element for this intersection
Definition: sgrid.hh:663
LocalGeometry geometryInOutside() const
GridImp::ctype ctype
define type used for coordinates in grid module
Definition: sgrid.hh:611
SIntersectionIterator & operator=(const SIntersectionIterator &other)
assignment operator
Definition: sgrid.hh:695
bool boundary() const
return true if intersection is with boundary.
const Intersection & dereference() const
dereferencing
Definition: sgrid.hh:619
Definition: sgrid.hh:1039
SLevelIterator(GridImp *_grid, int _l, int _id)
constructor
Definition: sgrid.hh:1053
A set of traits classes to store static information about grid implementation.
Different resources needed by all grid implementations.
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
Implements a matrix constructed from a given type representing a field and compile-time given number ...
Implements a vector constructed from a given type representing a field and a compile-time given size.
bool ne(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test for inequality using epsilon
Definition: float_cmp.cc:125
Provides base classes for index and id sets.
PartitionType
Attributes used in the generic overlap model.
Definition: gridenums.hh:24
CommunicationDirection
Define a type for communication direction parameter.
Definition: gridenums.hh:164
InterfaceType
Parameter to be used for the communication functions.
Definition: gridenums.hh:80
Implements an utility class that provides collective communication methods for sequential programs.
An stl-compliant random-access container which stores everything on the stack.
Specialize with 'true' for all codims that a grid implements entities for. (default=false)
Definition: capabilities.hh:56
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: capabilities.hh:25
Specialize with 'true' if the grid is a Cartesian grid. Cartesian grids satisfy the following propert...
Definition: capabilities.hh:46
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false)
Definition: capabilities.hh:96
Specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition: capabilities.hh:87
static const bool v
Whether to store by reference.
Definition: geometry.hh:49
A traits struct that collects all associated types of one grid model.
Definition: grid.hh:1261
IdSet< const GridImp, GlobalIdSetImp, GIDType > GlobalIdSet
The type of the global id set.
Definition: grid.hh:1347
IndexSet< const GridImp, LevelIndexSetImp > LevelIndexSet
The type of the level index set.
Definition: grid.hh:1343
IndexSet< const GridImp, LeafIndexSetImp > LeafIndexSet
The type of the leaf index set.
Definition: grid.hh:1345
IdSet< const GridImp, LocalIdSetImp, LIDType > LocalIdSet
The type of the local id set.
Definition: grid.hh:1349
Definition: sgrid.hh:510
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)