|
dune-grid 2.8.0
|
Loading...
Searching...
No Matches
uggrid.hh
Go to the documentation of this file.
283 return typename Traits::template Codim<codim>::Entity(UGGridEntity<codim,dim,const UGGrid<dim> >(seed.impl().target(),this));
518 bool loadBalance (const std::vector<Rank>& targetProcessors, unsigned int fromLevel, DataHandle& dataHandle)
Base class for grid boundary segments of arbitrary geometry.
size_type dim() const
#define DUNE_THROW(E, m)
The specialization of the generic GridFactory for UGGrid.
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
@ ForwardCommunication
communicate as given in InterfaceType
Definition gridenums.hh:169
Include standard header files.
CollectiveCommunication< No_Comm > UGCollectiveCommunication
Definition uggrid.hh:135
Specialize with 'true' for all codims that a grid implements entities for. (default=false)
Definition common/capabilities.hh:56
specialize with 'true' for all codims that a grid provides an iterator for (default=hasEntity<codim>:...
Definition common/capabilities.hh:72
specialize with 'true' for all codims that a grid can communicate data on (default=false)
Definition common/capabilities.hh:95
Specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition common/capabilities.hh:104
static const bool v
Definition common/capabilities.hh:105
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false)
Definition common/capabilities.hh:113
Definition common/grid.hh:851
Traits::LeafGridView leafGridView() const
View for the leaf grid for All_Partition.
Definition common/grid.hh:871
bool loadBalance()
default implementation of load balance does nothing and returns false
Definition common/grid.hh:937
auto size(GeometryType type) const
Return total number of entities of given geometry type in entity set .
Definition indexidset.hh:221
A Traits struct that collects all associated types of one implementation.
Definition common/grid.hh:414
A traits struct that collects all associated types of one grid model.
Definition common/grid.hh:984
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:312
Definition uggrid.hh:140
GridTraits< dim, dim, Dune::UGGrid< dim >, UGGridGeometry, UGGridEntity, UGGridLevelIterator, UGGridLeafIntersection, UGGridLevelIntersection, UGGridLeafIntersectionIterator, UGGridLevelIntersectionIterator, UGGridHierarchicIterator, UGGridLeafIterator, UGGridLevelIndexSet< const UGGrid< dim > >, UGGridLeafIndexSet< const UGGrid< dim > >, UGGridIdSet< const UGGrid< dim > >, typename UG_NS< dim >::UG_ID_TYPE, UGGridIdSet< const UGGrid< dim > >, typename UG_NS< dim >::UG_ID_TYPE, UGCollectiveCommunication, UGGridLevelGridViewTraits, UGGridLeafGridViewTraits, UGGridEntitySeed, UGGridLocalGeometry > Traits
Definition uggrid.hh:162
Front-end for the grid manager of the finite element toolbox UG3.
Definition uggrid.hh:205
size_t numBoundarySegments() const
Return the number of boundary segments.
Definition uggrid.hh:309
void setRefinementType(RefinementType type)
Sets the type of grid refinement.
Definition uggrid.hh:627
int getMark(const typename Traits::template Codim< 0 >::Entity &e) const
Query whether element is marked for refinement.
bool mark(int refCount, const typename Traits::template Codim< 0 >::Entity &e)
Mark element for refinement.
bool loadBalance(int minlevel=0)
Distributes this grid over the available nodes in a distributed machine.
bool loadBalance(const std::vector< Rank > &targetProcessors, unsigned int fromLevel, DataHandle &dataHandle)
Distributes the grid over the processes of a parallel machine, and sends data along with it.
Definition uggrid.hh:518
void getChildrenOfSubface(const typename Traits::template Codim< 0 >::Entity &e, int elementSide, int maxl, std::vector< typename Traits::template Codim< 0 >::Entity > &childElements, std::vector< unsigned char > &childElementSides) const
Rudimentary substitute for a hierarchic iterator on faces.
UGGridFamily< dim > GridFamily
type of the used GridFamily for this grid
Definition uggrid.hh:255
bool loadBalance(const std::vector< Rank > &targetProcessors, unsigned int fromLevel)
Distribute this grid over a distributed machine.
bool mark(const typename Traits::template Codim< 0 >::Entity &e, typename UG_NS< dim >::RefinementRule rule, int side=0)
Mark method accepting a UG refinement rule.
int maxLevel() const
const Traits::LevelIndexSet & levelIndexSet(int level) const
Access to the LevelIndexSets.
Definition uggrid.hh:328
void setClosureType(ClosureType type)
Sets the type of grid refinement closure.
Definition uggrid.hh:632
const Traits::LocalIdSet & localIdSet() const
Access to the LocalIdSet.
Definition uggrid.hh:322
int size(int level, GeometryType type) const
number of entities per level and geometry type in this process
Definition uggrid.hh:297
RefinementType
The different forms of grid refinement that UG supports.
Definition uggrid.hh:611
@ COPY
New level consists of the refined elements and the unrefined ones, too.
Definition uggrid.hh:615
@ LOCAL
New level consists only of the refined elements and the closure.
Definition uggrid.hh:613
int size(GeometryType type) const
number of leaf entities per geometry type in this process
Definition uggrid.hh:303
void setPosition(const typename Traits::template Codim< dim >::Entity &e, const FieldVector< double, dim > &pos)
Sets a vertex to a new position.
const Traits::GlobalIdSet & globalIdSet() const
Access to the GlobalIdSet.
Definition uggrid.hh:316
void loadState(const std::string &filename)
Read entire grid hierarchy from disk.
bool loadBalance(DataHandle &dataHandle)
Distributes the grid and some data over the available nodes in a distributed machine.
Definition uggrid.hh:439
Traits::template Codim< Seed::codimension >::Entity entity(const Seed &seed) const
Create an Entity from an EntitySeed.
Definition uggrid.hh:280
void saveState(const std::string &filename) const
Save entire grid hierarchy to disk.
bool preAdapt()
returns true, if some elements might be coarsend during grid adaption, here always returns true
ClosureType
Decide whether to add a green closure to locally refined grid sections or not.
Definition uggrid.hh:619
const Traits::LeafIndexSet & leafIndexSet() const
Access to the LeafIndexSet.
Definition uggrid.hh:336
int size(int codim) const
number of leaf entities per codim in this process
Definition uggrid.hh:291
A set of traits classes to store static information about grid implementation.
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