dune-grid
2.4.1-rc2
|
#include <dune/grid/albertagrid/macrodata.hh>
Classes | |
struct | Library |
Public Types | |
typedef int | ElementId[numVertices] |
Public Member Functions | |
MacroData () | |
operator Data * () const | |
int | vertexCount () const |
int | elementCount () const |
ElementId & | element (int i) const |
GlobalVector & | vertex (int i) const |
int & | neighbor (int element, int i) const |
BoundaryId & | boundaryId (int element, int i) const |
void | create () |
create a new macro data structure More... | |
void | finalize () |
compress macro data structure More... | |
void | markLongestEdge () |
mark the longest edge of all elements as refinement edges More... | |
void | setOrientation (const Real orientation) |
set the orientation of all elements More... | |
bool | checkNeighbors () const |
check the neighbor information More... | |
void | release () |
release the macro data structure More... | |
int | insertElement (const ElementId &id) |
insert element More... | |
int | insertVertex (const GlobalVector &coords) |
insert vertex More... | |
int | insertVertex (const FieldVector< Real, dimWorld > &coords) |
insert vertex More... | |
void | insertWallTrafo (const GlobalMatrix &m, const GlobalVector &t) |
void | insertWallTrafo (const FieldMatrix< Real, dimWorld, dimWorld > &matrix, const FieldVector< Real, dimWorld > &shift) |
void | checkCycles () |
void | read (const std::string &filename, bool binary=false) |
bool | write (const std::string &filename, bool binary=false) const |
Static Public Attributes | |
static const int | supportPeriodicity = 1 |
typedef int Dune::Alberta::MacroData< dim >::ElementId[numVertices] |
|
inline |
|
inline |
|
inline |
References ALBERTA, and Dune::Alberta::MacroData< dim >::finalize().
Referenced by Dune::Alberta::MacroData< dimension >::insertVertex().
|
inline |
check the neighbor information
This method allows the verification of neighbor information in a finalized (and possibly postprecessed) macro triangulation.
References Dune::Alberta::MacroData< dim >::Library< int >::checkNeighbors().
Referenced by Dune::Alberta::MacroData< dimension >::elementCount().
|
inline |
create a new macro data structure
A new macro data structure is created and put into insert mode.
References ALBERTA, and Dune::Alberta::MacroData< dim >::release().
Referenced by Dune::Alberta::MacroData< dimension >::elementCount().
|
inline |
Referenced by Dune::Alberta::MacroData< dimension >::elementCount(), Dune::Alberta::MacroData< dim >::finalize(), Dune::Alberta::MacroData< dim >::insertElement(), Dune::Alberta::MacroData< dim >::Library< int >::markLongestEdge(), Dune::AlbertaReader< Grid >::readGrid(), and Dune::Alberta::MacroData< dim >::Library< int >::setOrientation().
|
inline |
|
inline |
compress macro data structure
Compress the macro data structure to its minimum size and leave insert mode.
References ALBERTA, Dune::Alberta::MacroData< dim >::boundaryId(), Dune::Alberta::DirichletBoundary, Dune::Alberta::MacroData< dim >::element(), Dune::Alberta::InteriorBoundary, and Dune::Alberta::MacroData< dim >::neighbor().
Referenced by Dune::Alberta::MacroData< dim >::checkCycles(), and Dune::Alberta::MacroData< dimension >::elementCount().
|
inline |
insert element
Insert an element into the macro data structure. This may only be done in insert mode.
References Dune::Alberta::MacroData< dim >::boundaryId(), Dune::Alberta::MacroData< dim >::element(), Dune::Alberta::MacroData< dim >::insertWallTrafo(), and Dune::Alberta::InteriorBoundary.
Referenced by Dune::Alberta::MacroData< dimension >::release().
|
inline |
insert vertex
Insert a vertex into the macro data structure. This may only be done in insert mode.
|
inline |
insert vertex
Insert a vertex into the macro data structure. This may only be done in insert mode.
|
inline |
References Dune::Alberta::dimWorld.
Referenced by Dune::Alberta::MacroData< dim >::insertElement(), and Dune::Alberta::MacroData< dimension >::insertVertex().
|
inline |
References Dune::Alberta::dimWorld.
|
inline |
mark the longest edge of all elements as refinement edges
This is a postprocessing step and should be done after finalizing the triangulation.
References Dune::Alberta::MacroData< dim >::Library< int >::markLongestEdge().
Referenced by Dune::Alberta::MacroData< dimension >::elementCount().
|
inline |
|
inline |
|
inline |
|
inline |
release the macro data structure
Referenced by Dune::Alberta::MacroData< dim >::create(), Dune::Alberta::MeshPointer< dim >::create(), Dune::Alberta::MacroData< dim >::read(), and Dune::AlbertaReader< Grid >::readGrid().
|
inline |
set the orientation of all elements
This is a postprocessing step and should be done after finalizing the triangulation.
References Dune::Alberta::MacroData< dim >::Library< int >::setOrientation().
Referenced by Dune::Alberta::MacroData< dimension >::elementCount(), Dune::Alberta::MacroData< dim >::Library< int >::markLongestEdge(), and Dune::Alberta::MacroData< dim >::Library< int >::setOrientation().
|
inline |
|
inline |
Referenced by Dune::AlbertaReader< Grid >::readGrid().
|
inline |
|
static |