- Home
- About DUNE
- Download
- Documentation
- Community
- Development
#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 | |
void | finalize () |
compress macro data structure | |
void | markLongestEdge () |
mark the longest edge of all elements as refinement edges | |
void | setOrientation (const Real orientation) |
set the orientation of all elements | |
bool | checkNeighbors () const |
check the neighbor information | |
void | release () |
release the macro data structure | |
int | insertElement (const ElementId &id) |
insert element | |
int | insertVertex (const GlobalVector &coords) |
insert vertex | |
int | insertVertex (const FieldVector< Real, dimWorld > &coords) |
insert vertex | |
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 = (DUNE_ALBERTA_VERSION >= 0x300) |
Friends | |
struct | InstantiateMacroDataLibrary |
typedef int Dune::Alberta::MacroData< dim >::ElementId[numVertices] |
Dune::Alberta::MacroData< dim >::MacroData | ( | ) | [inline] |
BoundaryId & Dune::Alberta::MacroData< dim >::boundaryId | ( | int | element, | |
int | i | |||
) | const [inline] |
void Dune::Alberta::MacroData< dim >::checkCycles | ( | ) | [inline] |
References ALBERTA, and Dune::Alberta::MacroData< dim >::finalize().
bool Dune::Alberta::MacroData< dim >::checkNeighbors | ( | ) | const [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().
void Dune::Alberta::MacroData< dim >::create | ( | ) |
create a new macro data structure
A new macro data structure is created and put into insert mode.
MacroData< dim >::ElementId & Dune::Alberta::MacroData< dim >::element | ( | int | i | ) | const [inline] |
int Dune::Alberta::MacroData< dim >::elementCount | ( | ) | const [inline] |
void Dune::Alberta::MacroData< dim >::finalize | ( | ) | [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().
int Dune::Alberta::MacroData< dim >::insertElement | ( | const ElementId & | id | ) | [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(), and Dune::Alberta::InteriorBoundary.
int Dune::Alberta::MacroData< dim >::insertVertex | ( | const FieldVector< Real, dimWorld > & | coords | ) | [inline] |
insert vertex
Insert a vertex into the macro data structure. This may only be done in insert mode.
int Dune::Alberta::MacroData< dim >::insertVertex | ( | const GlobalVector & | coords | ) | [inline] |
insert vertex
Insert a vertex into the macro data structure. This may only be done in insert mode.
void Dune::Alberta::MacroData< dim >::insertWallTrafo | ( | const GlobalMatrix & | m, | |
const GlobalVector & | t | |||
) | [inline] |
void Dune::Alberta::MacroData< dim >::insertWallTrafo | ( | const FieldMatrix< Real, dimWorld, dimWorld > & | matrix, | |
const FieldVector< Real, dimWorld > & | shift | |||
) | [inline] |
void Dune::Alberta::MacroData< dim >::markLongestEdge | ( | ) | [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().
int & Dune::Alberta::MacroData< dim >::neighbor | ( | int | element, | |
int | i | |||
) | const [inline] |
Dune::Alberta::MacroData< dim >::operator Data * | ( | ) | const [inline] |
void Dune::Alberta::MacroData< dim >::read | ( | const std::string & | filename, | |
bool | binary = false | |||
) | [inline] |
References ALBERTA, and Dune::Alberta::MacroData< dim >::release().
Referenced by Dune::Alberta::MeshPointer< dim >::create(), and Dune::AlbertaReader< Grid >::readGrid().
void Dune::Alberta::MacroData< dim >::release | ( | ) | [inline] |
release the macro data structure
Referenced by Dune::Alberta::MeshPointer< dim >::create(), Dune::Alberta::MacroData< dim >::read(), and Dune::AlbertaReader< Grid >::readGrid().
void Dune::Alberta::MacroData< dim >::setOrientation | ( | const Real | orientation | ) | [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().
GlobalVector & Dune::Alberta::MacroData< dim >::vertex | ( | int | i | ) | const [inline] |
int Dune::Alberta::MacroData< dim >::vertexCount | ( | ) | const [inline] |
Referenced by Dune::AlbertaReader< Grid >::readGrid().
bool Dune::Alberta::MacroData< dim >::write | ( | const std::string & | filename, | |
bool | binary = false | |||
) | const [inline] |
friend struct InstantiateMacroDataLibrary [friend] |
const int Dune::Alberta::MacroData< dim >::supportPeriodicity = (DUNE_ALBERTA_VERSION >= 0x300) [static] |
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].