|
dune-grid 2.10
|
Loading...
Searching...
No Matches
onedgrid.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
96 class OneDGrid : public GridDefaultImplementation <1, 1,typename OneDGridGeometry<0,1,OneDGrid>::ctype, OneDGridFamily>
171 return typename Traits::template Codim<codim>::Entity(OneDGridEntity<codim,dim,const OneDGrid>(seed.impl().target()));
int size() const
#define DUNE_THROW(E, m)
CommunicationDirection
Define a type for communication direction parameter.
Definition gridenums.hh:170
InterfaceType
Parameter to be used for the communication functions.
Definition gridenums.hh:86
Include standard header files.
AxisAlignedCubeGeometry< double, mydim, coorddim > OneDGridGeometry
The type used to for OneDGrid geometries.
Definition onedgrid.hh:47
CoordType ctype
constexpr unsigned int dim() const
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition common/capabilities.hh:27
static const unsigned int topologyId
Definition common/capabilities.hh:31
Specialize with 'true' for all codims that a grid implements entities for. (default=false)
Definition common/capabilities.hh:58
specialize with 'true' for all codims that a grid provides an iterator for (default=hasEntity<codim>:...
Definition common/capabilities.hh:74
Specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition common/capabilities.hh:106
static const bool v
Definition common/capabilities.hh:107
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false)
Definition common/capabilities.hh:115
Definition common/grid.hh:848
auto size(GeometryType type) const
Return total number of entities of given geometry type in entity set .
Definition common/indexidset.hh:223
typename GridFamily::Traits::Communication Communication
A type that is a model of Dune::Communication. It provides a portable way for communication on the se...
Definition common/grid.hh:515
A Traits struct that collects all associated types of one implementation.
Definition common/grid.hh:411
A traits struct that collects all associated types of one grid model.
Definition common/grid.hh:1013
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:275
Definition onedgrid.hh:50
GridTraits< 1, 1, Dune::OneDGrid, OneDGridGeometry, OneDGridEntity, OneDGridLevelIterator, OneDGridLeafIntersection, OneDGridLevelIntersection, OneDGridLeafIntersectionIterator, OneDGridLevelIntersectionIterator, OneDGridHierarchicIterator, OneDGridLeafIterator, OneDGridLevelIndexSet< const OneDGrid >, OneDGridLeafIndexSet< const OneDGrid >, OneDGridIdSet< const OneDGrid >, unsigned int, OneDGridIdSet< const OneDGrid >, unsigned int, Communication< No_Comm >, OneDGridLevelGridViewTraits, OneDGridLeafGridViewTraits, OneDGridEntitySeed, OneDGridGeometry, unsigned int, std::array< GeometryType, 1 > > Traits
Definition onedgrid.hh:76
OneDGridGeometry< 0, 1, OneDGrid >::ctype ctype
The type used to store coordinates.
Definition onedgrid.hh:142
const Traits::LevelIndexSet & levelIndexSet(int level) const
Get an index set for the given level.
Definition onedgrid.hh:233
bool preAdapt()
Does nothing except return true if some element has been marked for refinement.
const Traits::LocalIdSet & localIdSet() const
Get the set of local ids.
Definition onedgrid.hh:227
int size(GeometryType type) const
number of leaf entities per geometry type in this process
Definition onedgrid.hh:205
OneDGrid(const std::vector< ctype > &coords)
Constructor with an explicit set of coordinates.
void postAdapt()
Adaptation post-processing: Reset all adaptation state flags.
RefinementType
The different forms of grid refinement supported by OneDGrid.
Definition onedgrid.hh:282
@ COPY
New level consists of the refined elements and the unrefined ones, too.
Definition onedgrid.hh:286
@ LOCAL
New level consists only of the refined elements.
Definition onedgrid.hh:284
size_t numBoundarySegments() const
Return the number of coarse grid boundary segments.
Definition onedgrid.hh:215
void communicate(DataHandle &, InterfaceType, CommunicationDirection, int) const
Communicate data of level gridView.
Definition onedgrid.hh:311
bool mark(int refCount, const Traits::Codim< 0 >::Entity &e)
Mark entity for refinement.
void setRefinementType(RefinementType type)
Sets the type of grid refinement.
Definition onedgrid.hh:290
int size(int level, GeometryType type) const
number of entities per level and geometry type in this process
Definition onedgrid.hh:198
int size(int level, int codim) const
Number of grid entities per level and codim.
Definition onedgrid.hh:177
friend class OneDGridLeafIndexSet< const OneDGrid >
Definition onedgrid.hh:116
OneDGrid(int numElements, const ctype &leftBoundary, const ctype &rightBoundary)
Constructor for a uniform grid.
const Traits::LeafIndexSet & leafIndexSet() const
Get an index set for the leaf level.
Definition onedgrid.hh:245
const Traits::GlobalIdSet & globalIdSet() const
Get the set of global ids.
Definition onedgrid.hh:221
static Traits::template Codim< Seed::codimension >::Entity entity(const Seed &seed)
Create an Entity from an EntitySeed.
Definition onedgrid.hh:168
void communicate(DataHandle &, InterfaceType, CommunicationDirection) const
Communicate data of leaf gridView.
Definition onedgrid.hh:319
int size(int codim) const
number of leaf entities per codim in this process
Definition onedgrid.hh:192
OneDGridFamily GridFamily
GridFamily of OneDGrid.
Definition onedgrid.hh:145
friend class OneDGridLevelIndexSet< const OneDGrid >
Definition onedgrid.hh:115
int maxLevel() const
Return maximum level defined in this grid.
Definition onedgrid.hh:163
int getMark(const Traits::Codim< 0 >::Entity &e) const
return current adaptation marker of given entity
friend class OneDGridIdSet< const OneDGrid >
Definition onedgrid.hh:117
A set of traits classes to store static information about grid implementation.
Provide a generic factory class for unstructured grids.
Different resources needed by all grid implementations.
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8