Dune Core Modules (2.4.1)
sgrid.hh
Go to the documentation of this file.
7#warning The SGrid grid manager has been deprecated, and will be removed after the dune-grid-2.4 release. \
110 static_cast< AxisAlignedCubeGeometry<ctype,mydim,cdim> & >( *this ) = AxisAlignedCubeGeometry<ctype,mydim,cdim>(lower);
127 static_cast< AxisAlignedCubeGeometry<ctype,mydim,cdim> & >( *this ) = AxisAlignedCubeGeometry<ctype,mydim,cdim>(lower, upper, axes);
132 : AxisAlignedCubeGeometry<ctype,mydim,cdim>(FieldVector<ctype,cdim>(0),FieldVector<ctype,cdim>(0)) // anything
583 std::stack<SHierarchicStackElem, Dune::ReservedVector<SHierarchicStackElem,GridImp::MAXL> > stack;
662 typedef Dune::Intersection< const GridImp, Dune::SIntersectionIterator< const GridImp > > Intersection;
1054 DUNE_THROW( NotImplemented, "subIndex for higher codimension entity not implemented for SGrid." );
1105 public IdSet<GridImp,SGridGlobalIdSet<GridImp>, typename remove_const<GridImp>::type::PersistentIndexType>
1128 IdType id (const typename remove_const<GridImp>::type::Traits::template Codim<cd>::Entity& e) const
1138 IdType subId ( const typename remove_const< GridImp >::type::Traits::template Codim< 0 >::Entity &e,
1227 class SGrid : public GridDefaultImplementation <dim,dimworld,_ctype,SGridFamily<dim,dimworld,_ctype> >
1231 typedef bigunsignedint<dim*sgrid_dim_bits+sgrid_level_bits+sgrid_codim_bits> PersistentIndexType;
1289 typename Traits::template Codim<cd>::template Partition<pitype>::LevelIterator lbegin (int level) const;
1293 typename Traits::template Codim<cd>::template Partition<pitype>::LevelIterator lend (int level) const;
1297 typename Traits::template Codim<cd>::template Partition<All_Partition>::LevelIterator lbegin (int level) const
1304 typename Traits::template Codim<cd>::template Partition<All_Partition>::LevelIterator lend (int level) const
1311 typename Traits::template Codim<cd>::template Partition<pitype>::LeafIterator leafbegin () const;
1315 typename Traits::template Codim<cd>::template Partition<pitype>::LeafIterator leafend () const;
1319 typename Traits::template Codim<cd>::template Partition<All_Partition>::LeafIterator leafbegin () const
1326 typename Traits::template Codim<cd>::template Partition<All_Partition>::LeafIterator leafend () const
1471 void communicate (DataHandle& data, InterfaceType iftype, CommunicationDirection dir, int level) const
1648 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:830
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:755
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:25
bool isCube() const
Return true if entity is a cube of any dimension.
Definition: type.hh:311
FieldVector< ctype, cdim > GlobalCoordinate
type of the global coordinates
Definition: geometry.hh:104
FieldVector< ctype, mydim > LocalCoordinate
type of local coordinates
Definition: geometry.hh:101
Definition: grid.hh:1030
static std::conditional< std::is_reference< InterfaceType >::value, typenamestd::add_lvalue_reference< typenameReturnImplementationType< typenamestd::remove_reference< InterfaceType >::type >::ImplementationType >::type, typenamestd::remove_const< typenameReturnImplementationType< typenamestd::remove_reference< InterfaceType >::type >::ImplementationType >::type >::type getRealImplementation(InterfaceType &&i)
return real implementation of interface class
Definition: grid.hh:1305
Intersection of a mesh entities of codimension 0 ("elements") with a "neighboring" element or with th...
Definition: intersection.hh:161
Definition: sgrid.hh:145
int compressedIndex() const
consecutive, codim-wise, level-wise index
Definition: sgrid.hh:238
int subCompressedLeafIndex(int cd, int i) const
subentity compressed leaf index (not available here)
Definition: sgrid.hh:269
array< int, dim > z
my coordinate, number of even components = codim
Definition: sgrid.hh:280
PersistentIndexType persistentIndex() const
globally unique, persistent index
Definition: sgrid.hh:232
SEntitySeed< codim, GridImp > seed() const
Return the entity seed which contains sufficient information to generate the entity again and uses as...
Definition: sgrid.hh:174
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:244
GeometryType type() const
return the element type identifier
Definition: sgrid.hh:179
SEntityBase(const SEntityBase &other)
copy constructor
Definition: sgrid.hh:213
SEntityBase(GridImp *_grid, int _l, int _index)
constructor
Definition: sgrid.hh:197
bool builtgeometry
true if geometry has been constructed
Definition: sgrid.hh:282
int subCompressedIndex(int cd, int i) const
subentity compressed index (not available here)
Definition: sgrid.hh:262
Definition: sgrid.hh:847
SEntityPointer(const SEntityPointer< codim, GridImp > &other)
constructor
Definition: sgrid.hh:876
SEntityPointer(GridImp *_grid, int _l, int _index)
constructor
Definition: sgrid.hh:864
SEntityPointer & operator=(const SEntityPointer &other)
assignment operator
Definition: sgrid.hh:892
SEntityPointer(const SEntity< codim, dim, GridImp > &_e)
constructor
Definition: sgrid.hh:870
Definition: sgrid.hh:956
bool isValid() const
check whether the EntitySeed refers to a valid Entity
Definition: sgrid.hh:972
bool hasFather() const
returns true if father entity exists
Definition: sgrid.hh:435
int count() const
Entity father() const
Inter-level access to father element on coarser grid.
bool isLeaf() const
return true if the entity is leaf
Definition: sgrid.hh:441
IntersectionIterator ibegin() const
Codim< cc >::Entity subEntity(int i) const
int subCompressedLeafIndex(int codim, int i) const
Definition: sgrid.hh:395
PersistentIndexType subPersistentIndex(int codim, int i) const
subentity persistent index
Definition: sgrid.hh:405
int subCompressedIndex(int codim, int i) const
subentity compressed index
Definition: sgrid.hh:385
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.
SEntity(GridImp *_grid, int _l, int _index)
constructor
Definition: sgrid.hh:475
void make(int _l, int _id)
Reinitialization.
Definition: sgrid.hh:493
void make(GridImp *_grid, int _l, int _id)
Reinitialization.
Definition: sgrid.hh:486
HierarchicIterator hend(int maxLevel) const
Returns iterator to one past the last son.
unsigned int subEntities(unsigned int codim) const
Return number of subentities with codimension codim.
Definition: sgrid.hh:293
Definition: sgrid.hh:93
GridImp::ctype ctype
define type used for coordinates in grid module
Definition: sgrid.hh:96
void make(const FieldVector< ctype, cdim > &lower, const FieldMatrix< ctype, mydim, cdim > &A)
Set up the geometry.
Definition: sgrid.hh:105
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:1138
IdType id(const typename remove_const< GridImp >::type::Traits::template Codim< cd >::Entity &e) const
get id of an entity
Definition: sgrid.hh:1128
remove_const< GridImp >::type::PersistentIndexType IdType
define the type used for persistent indices
Definition: sgrid.hh:1120
const std::vector< GeometryType > & geomTypes(int codim) const
deliver all geometry types used in this grid
Definition: sgrid.hh:1077
int index(const typename GridImp::Traits::template Codim< cd >::Entity &e) const
get index of an entity
Definition: sgrid.hh:1042
int size(int codim) const
return size of set for a given codim
Definition: sgrid.hh:1071
SGridLevelIndexSet(const GridImp &g, int l)
constructor stores reference to a grid and level
Definition: sgrid.hh:1030
int size(GeometryType type) const
get number of entities of given type and level (the level is known to the object)
Definition: sgrid.hh:1065
const std::vector< GeometryType > & types(int codim) const
deliver all geometry types used in this grid
Definition: sgrid.hh:1083
int ghostSize(int level, int codim) const
return size (= distance in graph) of ghost region
Definition: sgrid.hh:1496
int overlapSize(int level, int codim)
return size (= distance in graph) of overlap region
Definition: sgrid.hh:1406
FieldVector< ctype, dimworld > upperRight() const
Get upper right corner.
Definition: sgrid.hh:1433
Traits::template Codim< cd >::template Partition< All_Partition >::LeafIterator leafbegin() const
return LeafIterator which points to the first entity
Definition: sgrid.hh:1319
const array< int, dim > & dims(int level) const
Get number of elements in each coordinate direction.
Definition: sgrid.hh:1423
int ghostSize(int level, int codim)
return size (= distance in graph) of ghost region
Definition: sgrid.hh:1412
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:1391
int size(int level, GeometryType type) const
number of entities per level and geometry type in this process
Definition: sgrid.hh:1385
Traits::template Codim< cd >::template Partition< All_Partition >::LevelIterator lend(int level) const
one past the end on this level
Definition: sgrid.hh:1304
int overlapSize(int level, int codim) const
return size (= distance in graph) of overlap region
Definition: sgrid.hh:1484
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:1490
_ctype ctype
define type used for coordinates in grid module
Definition: sgrid.hh:1244
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:1297
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:1379
Traits::template Codim< cd >::template Partition< All_Partition >::LeafIterator leafend() const
return LeafIterator which points behind the last entity
Definition: sgrid.hh:1326
const FieldVector< ctype, dimworld > & lowerLeft() const
Get lower left corner.
Definition: sgrid.hh:1428
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:1502
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:1369
size_t numBoundarySegments() const
returns the number of boundary segments within the macro grid
Definition: sgrid.hh:1397
Definition: sgrid.hh:597
bool equals(const SIntersectionIterator< GridImp > &i) const
equality
Definition: sgrid.hh:619
GridImp::ctype ctype
define type used for coordinates in grid module
Definition: sgrid.hh:616
const Intersection & dereference() const
dereferencing
Definition: sgrid.hh:628
Definition: sgrid.hh:993
SLevelIterator(GridImp *_grid, int _l, int _id)
constructor
Definition: sgrid.hh:1007
static shared_ptr< GridType > createSimplexGrid(const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const array< unsigned int, dim > &elements)
Create a structured simplex grid.
Definition: sgrid.hh:1770
static shared_ptr< GridType > createCubeGrid(const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const array< unsigned int, dim > &elements)
Create a structured cube grid.
Definition: sgrid.hh:1749
Construct structured cube and simplex grids in unstructured grid managers.
Definition: structuredgridfactory.hh:31
Implements an utility class that provides collective communication methods for sequential programs.
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
PartitionType
Attributes used in the generic overlap model.
Definition: gridenums.hh:28
CommunicationDirection
Define a type for communication direction parameter.
Definition: gridenums.hh:168
InterfaceType
Parameter to be used for the communication functions.
Definition: gridenums.hh:84
Provides base classes for index and id sets.
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:58
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: capabilities.hh:27
Specialize with 'true' if the grid is a Cartesian grid. Cartesian grids satisfy the following propert...
Definition: capabilities.hh:48
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false)
Definition: capabilities.hh:108
Specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition: capabilities.hh:99
A traits struct that collects all associated types of one grid model.
Definition: grid.hh:1344
IdSet< const GridImp, GlobalIdSetImp, GIDType > GlobalIdSet
The type of the global id set.
Definition: grid.hh:1430
IndexSet< const GridImp, LevelIndexSetImp > LevelIndexSet
The type of the level index set.
Definition: grid.hh:1426
IndexSet< const GridImp, LeafIndexSetImp > LeafIndexSet
The type of the leaf index set.
Definition: grid.hh:1428
IdSet< const GridImp, LocalIdSetImp, LIDType > LocalIdSet
The type of the local id set.
Definition: grid.hh:1432
Definition: sgrid.hh:517
A class to construct structured cube and simplex grids using the grid factory.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)