dune-vtk
0.2
|
Implementation of DataCollector for linear cells, with continuous data. More...
#include <dune/vtk/datacollectors/continuousdatacollector.hh>
Public Types | |
enum | |
The dimension of the grid. More... | |
enum | |
The dimension of the world. More... | |
using | GridView = GridView |
Public Member Functions | |
ContinuousDataCollector (GridView const &gridView) | |
void | updateImpl () |
Collect the vertex indices. More... | |
std::uint64_t | numPointsImpl () const |
Return number of grid vertices. More... | |
template<class T > | |
std::vector< T > | pointsImpl () const |
Return the coordinates of all grid vertices in the order given by the indexSet. More... | |
std::vector< std::uint64_t > | pointIdsImpl () const |
Return a vector of global unique ids of the points. More... | |
std::uint64_t | numCellsImpl () const |
Return number of grid cells. More... | |
Cells | cellsImpl () const |
template<class T , class GlobalFunction > | |
std::vector< T > | pointDataImpl (GlobalFunction const &fct) const |
Evaluate the fct at the corners of the elements. More... | |
Cells | cells () const |
Return cell types, offsets, and connectivity. More... | |
std::vector< std::uint64_t > | pointIds () const |
void | update () |
Update the DataCollector on the current GridView. More... | |
int | ghostLevel () const |
Return the number of ghost elements. More... | |
std::uint64_t | numCells () const |
Return the number of cells in (this partition of the) grid. More... | |
std::uint64_t | numPoints () const |
Return the number of points in (this partition of the) grid. More... | |
std::vector< T > | points () const |
Return a flat vector of point coordinates. More... | |
std::vector< T > | pointData (VtkFunction const &fct) const |
Return a flat vector of function values evaluated at the points. More... | |
std::vector< T > | cellData (VtkFunction const &fct) const |
Return a flat vector of function values evaluated at the cells in the order of traversal. More... | |
int | ghostLevelImpl () const |
std::vector< T > | cellDataImpl (VtkFunction const &fct) const |
Static Public Attributes | |
static constexpr auto | partition |
The partitionset to collect data from. More... | |
Protected Member Functions | |
ContinuousDataCollector< GridView, Partitions::InteriorBorder > & | asDerived () |
const ContinuousDataCollector< GridView, Partitions::InteriorBorder > & | asDerived () const |
Protected Attributes | |
std::uint64_t | numPoints_ = 0 |
std::uint64_t | numCells_ = 0 |
std::vector< std::int64_t > | indexMap_ |
GridView | gridView_ |
Implementation of DataCollector for linear cells, with continuous data.
|
inherited |
|
inherited |
The dimension of the grid.
|
inherited |
The dimension of the world.
|
inline |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
Return cell types, offsets, and connectivity.
|
inline |
Return the types, offsets and connectivity of the cells, using the same connectivity as given by the grid.
|
inlineinherited |
Return the number of ghost elements.
|
inlineinherited |
|
inlineinherited |
Return the number of cells in (this partition of the) grid.
|
inline |
Return number of grid cells.
|
inlineinherited |
Return the number of points in (this partition of the) grid.
|
inline |
Return number of grid vertices.
|
inlineinherited |
Return a flat vector of function values evaluated at the points.
In case of a vector valued function, flat the vector entries: [fct(p0)_0, fct(p0)_1, fct(p0)_2, fct(p1)_0, ...] where the vector dimension must be 3 (possible extended by 0s) In case of tensor valued function, flat the tensor row-wise: [fct(p0)_00, fct(p0)_01, fct(p0)_02, fct(p0)_10, fct(p0)_11, fct(p0)_12, fct(p0)_20...] where the tensor dimension must be 3x3 (possible extended by 0s)
|
inline |
Evaluate the fct
at the corners of the elements.
|
inlineinherited |
|
inline |
Return a vector of global unique ids of the points.
|
inlineinherited |
Return a flat vector of point coordinates.
All coordinates are extended to 3 components and concatenated. [p0_x, p0_y, p0_z, p1_x, p1_y, p1_z, ...] If the GridView::dimensionworld < 3, the remaining components are set to 0
|
inline |
Return the coordinates of all grid vertices in the order given by the indexSet.
|
inlineinherited |
Update the DataCollector on the current GridView.
|
inline |
Collect the vertex indices.
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
staticconstexprinherited |
The partitionset to collect data from.