#include <grapedatadisplay.hh>
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, const DATAINFO *, double time) |
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 | |
int | myRank () const |
return rank of this display, for visualisation of parallel grid | |
void * | getHmesh () |
return pointer to Grape Hmesh | |
DUNE_DAT & | getDuneDat () |
void | addMyMeshToTimeScene (void *timescene, double time, int proc) |
const GridType & | getGrid () const |
return reference to Dune Grid | |
template<class IntersectionIteratorType> | |
void | checkNeighbors (IntersectionIteratorType &, const IntersectionIteratorType &, DUNE_ELEM *) |
Protected Attributes | |
const GridType & | grid_ |
the grid we want to display | |
const bool | hasLevelIntersections_ |
true if we can use LevelIntersectionIterator | |
void * | indexSet_ |
leaf index set of the grid | |
const LocalIdSetType & | lid_ |
leaf index set of the grid | |
const int | myRank_ |
my process number | |
DUNE_ELEM | hel_ |
store the actual element pointer | |
void * | hmesh_ |
pointer to hmesh |
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 | |
dinf | GrapeDataDisplay internal data | |
polOrd | polynominal order of Lagrangespace, only 0 and 1 allowed at the momnent @ param continuous continuous or not (i.e polOrd = 0 ==> discontinuous) default is discontinuous |
References Dune::GrapeGridDisplay< GridType >::hmesh_.
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 Dune::GrapeDataDisplay< GridType >::addData(), and Dune::GrapeGridDisplay< GridType >::hmesh_.
DUNE_DAT& Dune::GrapeGridDisplay< GridType >::getDuneDat | ( | ) | [inline, inherited] |
void Dune::GrapeGridDisplay< GridType >::addMyMeshToTimeScene | ( | void * | timescene, | |
double | time, | |||
int | proc | |||
) | [inline, inherited] |
void Dune::GrapeGridDisplay< GridType >::checkNeighbors | ( | IntersectionIteratorType & | nit, | |
const IntersectionIteratorType & | endnit, | |||
DUNE_ELEM * | he | |||
) | [inline, inherited] |
hmesh functionen
References Dune::Entity< cd, dim, GridImp, EntityImp >::dimensionworld, and Dune::InteriorEntity.