|
dune-vtk 2.12
|
Implementation of DataCollector for Lagrange cells. More...
#include <dune/vtk/datacollectors/discontinuouslagrangedatacollector.hh>

Public Types | |
| enum | { dim = GridView::dimension } |
| The dimension of the grid. More... | |
| enum | { dow = GridView::dimensionworld } |
| The dimension of the world. More... | |
| using | GridView = GV |
| Type of the bound grid view. | |
Public Member Functions | |
| DiscontinuousLagrangeDataCollector (GridView const &gridView, int order=ORDER) | |
| void | updateImpl () |
| Construct the point sets. | |
| std::uint64_t | numPointsImpl () const |
| Return number of Lagrange nodes. | |
| template<class T > | |
| std::vector< T > | pointsImpl () const |
| Return a vector of point coordinates. | |
| std::uint64_t | numCellsImpl () const |
| Return number of grid cells. | |
| Cells | cellsImpl () const |
| Return cell types, offsets, and connectivity. | |
| template<class T , class GlobalFunction > | |
| std::vector< T > | pointDataImpl (GlobalFunction const &fct) const |
Evaluate the fct at element vertices and edge centers in the same order as the point coords. | |
| Cells | cells () const |
| Return cell types, offsets, and connectivity. | |
| std::vector< std::uint64_t > | pointIds () const |
| Return parallel unique IDs for each point in the grid. | |
| GridView const & | gridView () const |
| Return the bound grid view. | |
| void | update () |
| Update the DataCollector on the current GridView. | |
| int | ghostLevel () const |
| Return the number of ghost elements. | |
| std::uint64_t | numCells () const |
| Return the number of cells in (this partition of the) grid. | |
| std::uint64_t | numPoints () const |
| Return the number of points in (this partition of the) grid. | |
| template<class T > | |
| std::vector< T > | points () const |
| Return a flat vector of point coordinates. | |
| template<class T , class VtkFunction > | |
| std::vector< T > | pointData (VtkFunction const &fct) const |
| Return a flat vector of function values evaluated at the points. | |
| template<class T , class VtkFunction > | |
| std::vector< T > | cellData (VtkFunction const &fct) const |
| Return a flat vector of function values evaluated at the cells in the order of traversal. | |
| auto | comm () const |
| int | ghostLevelImpl () const |
| template<class T , class VtkFunction > | |
| std::vector< T > | cellDataImpl (VtkFunction const &fct) const |
Static Public Attributes | |
| static constexpr auto | partition |
| The partitionset to collect data from. | |
Protected Member Functions | |
| std::vector< std::uint64_t > | pointIdsImpl () const |
| Derived & | asDerived () |
| const Derived & | asDerived () const |
Detailed Description
class Dune::Vtk::DiscontinuousLagrangeDataCollector< GridView, ORDER >
Implementation of DataCollector for Lagrange cells.
In contrast to LagrangeDataCollector this one is discontinuous across cells and will create one copy per cell for each vertex. This DataCollector is particularly suited for writing higher order discontinuous polynomial data.
Member Typedef Documentation
◆ GridView
|
inherited |
Type of the bound grid view.
Member Enumeration Documentation
◆ anonymous enum
◆ anonymous enum
Constructor & Destructor Documentation
◆ DiscontinuousLagrangeDataCollector()
|
inline |
Member Function Documentation
◆ asDerived() [1/2]
|
inlineprotectedinherited |
◆ asDerived() [2/2]
|
inlineprotectedinherited |
◆ cellData()
|
inlineinherited |
Return a flat vector of function values evaluated at the cells in the order of traversal.
- See also
- pointData. Note: Cells might be described explicitly by connectivity, offsets, and types, e.g. in an UnstructuredGrid, or might be described implicitly by the grid type, e.g. in StructuredGrid.
◆ cellDataImpl()
|
inherited |
◆ cells()
|
inlineinherited |
Return cell types, offsets, and connectivity.
- See also
- Cells
◆ cellsImpl()
|
inline |
◆ comm()
|
inlineinherited |
◆ ghostLevel()
|
inlineinherited |
Return the number of ghost elements.
◆ ghostLevelImpl()
|
inlineinherited |
◆ gridView()
|
inlineinherited |
Return the bound grid view.
◆ numCells()
|
inlineinherited |
Return the number of cells in (this partition of the) grid.
◆ numCellsImpl()
|
inline |
Return number of grid cells.
◆ numPoints()
|
inlineinherited |
Return the number of points in (this partition of the) grid.
◆ numPointsImpl()
|
inline |
Return number of Lagrange nodes.
◆ pointData()
|
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)
◆ pointDataImpl()
|
inline |
Evaluate the fct at element vertices and edge centers in the same order as the point coords.
◆ pointIds()
|
inlineinherited |
Return parallel unique IDs for each point in the grid.
◆ pointIdsImpl()
|
inlineprotectedinherited |
◆ 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
◆ pointsImpl()
|
inline |
Return a vector of point coordinates.
The vector of point coordinates is composed of vertex coordinates first and second edge center coordinates.
◆ update()
|
inlineinherited |
Update the DataCollector on the current GridView.
◆ updateImpl()
|
inline |
Construct the point sets.
Member Data Documentation
◆ partition
|
staticconstexprinherited |
The partitionset to collect data from.
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8