|
dune-grid
2.2.0
|
#include <dune/grid/io/visual/grapedatadisplay.hh>
Public Types | |
| typedef GridType | MyGridType |
| typedef GridType::HierarchicIterator | HierarchicIteratorType |
| typedef GridType::Traits::LocalIdSet | LocalIdSetType |
| typedef GridType::Traits::LeafIndexSet | LeafIndexSetType |
Public Member Functions | |
| GrapeDataDisplay (const GridType &grid, const int myrank=-1) | |
| Constructor, make a GrapeDataDisplay for given grid. | |
| template<class GridPartType > | |
| GrapeDataDisplay (const GridPartType &gridPart, const int myrank=-1) | |
| Constructor, make a GrapeDataDisplay for given grid. | |
| ~GrapeDataDisplay () | |
| Desctructor. | |
| template<class VectorType , class IndexSetType > | |
| void | displayVector (const std::string name, const VectorType &data, const IndexSetType &indexSet, const int polOrd, const unsigned int dimRange, bool continuous=false) |
| template<class DiscFuncType > | |
| void | dataDisplay (const DiscFuncType &func, bool vector=false) |
| void | display () |
| display grid and data without grid mode | |
| template<class DiscFuncType > | |
| void | addData (const DiscFuncType &func, double time=0.0, bool vector=false) |
| add discrete function to display | |
| template<class DiscFuncType > | |
| void | addData (const DiscFuncType &func, std::string name, double time, bool vector=false) |
| add discrete function to display | |
| template<class GV , int dimR, int polOrd> | |
| void | addData (const GrapeFunction< GV, dimR, polOrd > &function) |
| int | myRank () const |
| return rank of this display, for visualisation of parallel grid | |
| const GridType & | getGrid () const |
| return reference to Dune Grid | |
Public Attributes | |
| const GridType & | grid_ |
| const bool | hasLevelIntersections_ |
| void * | gridPart_ |
| void * | indexSet_ |
| const LocalIdSetType & | lid_ |
| const int | myRank_ |
| void * | hmesh_ |
| HierarchicIteratorList | hierList_ |
Protected Types | |
| typedef std::list < HierarchicIteratorType * > | HierarchicIteratorList |
| typedef HierarchicIteratorList::iterator | ListIteratorType |
typedef std::list<HierarchicIteratorType *> Dune::GrapeGridDisplay< GridType >::HierarchicIteratorList [protected, inherited] |
typedef GridType::HierarchicIterator Dune::GrapeGridDisplay< GridType >::HierarchicIteratorType [inherited] |
typedef GridType::Traits::LeafIndexSet Dune::GrapeGridDisplay< GridType >::LeafIndexSetType [inherited] |
typedef HierarchicIteratorList::iterator Dune::GrapeGridDisplay< GridType >::ListIteratorType [protected, inherited] |
typedef GridType::Traits::LocalIdSet Dune::GrapeGridDisplay< GridType >::LocalIdSetType [inherited] |
| typedef GridType Dune::GrapeDataDisplay< GridType >::MyGridType |
| Dune::GrapeDataDisplay< GridType >::GrapeDataDisplay | ( | const GridType & | grid, |
| const int | myrank = -1 |
||
| ) | [inline] |
Constructor, make a GrapeDataDisplay for given grid.
| Dune::GrapeDataDisplay< GridType >::GrapeDataDisplay | ( | const GridPartType & | gridPart, |
| const int | myrank = -1 |
||
| ) | [inline] |
Constructor, make a GrapeDataDisplay for given grid.
| Dune::GrapeDataDisplay< GridType >::~GrapeDataDisplay | ( | ) | [inline] |
Desctructor.
References deleteFunctions().
| void Dune::GrapeDataDisplay< GridType >::addData | ( | const DiscFuncType & | func, |
| double | time = 0.0, |
||
| bool | vector = false |
||
| ) | [inline] |
add discrete function to display
| void Dune::GrapeDataDisplay< GridType >::addData | ( | const DiscFuncType & | func, |
| std::string | name, | ||
| double | time, | ||
| bool | vector = false |
||
| ) | [inline] |
add discrete function to display
| void Dune::GrapeDataDisplay< GridType >::addData | ( | const GrapeFunction< GV, dimR, polOrd > & | function | ) | [inline] |
| void Dune::GrapeDataDisplay< GridType >::dataDisplay | ( | const DiscFuncType & | func, |
| bool | vector = false |
||
| ) | [inline] |
Calls the display of the grid and draws the discrete function if discretefunction is NULL, then only the grid is displayed
References handleMesh().
| void Dune::GrapeDataDisplay< GridType >::display | ( | ) | [inline] |
display grid and data without grid mode
Reimplemented from Dune::GrapeGridDisplay< GridType >.
References handleMesh().
| void Dune::GrapeDataDisplay< GridType >::displayVector | ( | const std::string | name, |
| const VectorType & | data, | ||
| const IndexSetType & | indexSet, | ||
| const int | polOrd, | ||
| const unsigned int | dimRange, | ||
| bool | continuous = false |
||
| ) | [inline] |
display data stored in vector
| name | Name of data (i.e. solution) |
| data | Data vector storing data to display |
| indexSet | The corresponding index set related to the data |
| polOrd | polynominal order of Lagrangespace, only 0 and 1 allowed at the momnent |
| dimRange | dimension of the result data (scalar: 1) |
| continuous | continuous or not (i.e polOrd = 0 ==> discontinuous) default is discontinuous |
References Dune::Alberta::abs(), handleMesh(), Dune::Alberta::max(), and Dune::Alberta::min().
| const GridType & Dune::GrapeGridDisplay< GridType >::getGrid | ( | ) | const [inline, inherited] |
| int Dune::GrapeGridDisplay< GridType >::myRank | ( | ) | const [inline, inherited] |
return rank of this display, for visualisation of parallel grid
References Dune::GrapeGridDisplay< GridType >::myRank_.
const GridType& Dune::GrapeGridDisplay< GridType >::grid_ [inherited] |
void* Dune::GrapeGridDisplay< GridType >::gridPart_ [inherited] |
const bool Dune::GrapeGridDisplay< GridType >::hasLevelIntersections_ [inherited] |
HierarchicIteratorList Dune::GrapeGridDisplay< GridType >::hierList_ [inherited] |
void* Dune::GrapeGridDisplay< GridType >::hmesh_ [inherited] |
Referenced by Dune::GrapeGridDisplay< GridType >::GrapeGridDisplay().
void* Dune::GrapeGridDisplay< GridType >::indexSet_ [inherited] |
const LocalIdSetType& Dune::GrapeGridDisplay< GridType >::lid_ [inherited] |
const int Dune::GrapeGridDisplay< GridType >::myRank_ [inherited] |
Referenced by Dune::GrapeGridDisplay< GridType >::myRank().
1.7.6.1