dune-vtk 2.8
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Dune::Vtk::DiscontinuousDataCollector< GridView, Partition > Class Template Reference

Implementation of DataCollector for linear cells, with discontinuous data. More...

#include <dune/vtk/datacollectors/discontinuousdatacollector.hh>

Inheritance diagram for Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >:
Inheritance graph

Public Types

enum  { dim = GridView::dimension }
 The dimension of the grid. More...
 
enum  { dow = GridView::dimensionworld }
 The dimension of the world. More...
 
using GridView = GridViewType
 

Public Member Functions

 DiscontinuousDataCollector (GridView const &gridView)
 
void updateImpl ()
 Create an index map the uniquely assigns an index to each pair (element,corner)
 
std::uint64_t numPointsImpl () const
 The number of points approx. #cell * #corners-per-cell.
 
template<class T >
std::vector< T > pointsImpl () const
 Return the coordinates of the corners of all cells.
 
std::uint64_t numCellsImpl () const
 Return number of grid cells.
 
Cells cellsImpl () const
 Connect the corners of each cell. The leads to a global discontinuous grid.
 
template<class T , class GlobalFunction >
std::vector< T > pointDataImpl (GlobalFunction const &fct) const
 Evaluate the fct in the corners of each cell.
 
Cells cells () const
 Return cell types, offsets, and connectivity.
 
std::vector< std::uint64_t > pointIds () const
 
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.
 
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
 

Protected Attributes

std::uint64_t numCells_ = 0
 
std::uint64_t numPoints_ = 0
 
std::vector< std::int64_t > indexMap_
 
GridView gridView_
 

Detailed Description

template<class GridView, class Partition = Partitions::InteriorBorder>
class Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >

Implementation of DataCollector for linear cells, with discontinuous data.

Member Typedef Documentation

◆ GridView

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
using Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::GridView = GridViewType
inherited

Member Enumeration Documentation

◆ anonymous enum

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
anonymous enum
inherited

The dimension of the grid.

Enumerator
dim 

◆ anonymous enum

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
anonymous enum
inherited

The dimension of the world.

Enumerator
dow 

Constructor & Destructor Documentation

◆ DiscontinuousDataCollector()

template<class GridView , class Partition = Partitions::InteriorBorder>
Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::DiscontinuousDataCollector ( GridView const &  gridView)
inline

Member Function Documentation

◆ asDerived() [1/2]

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
Derived & Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::asDerived ( )
inlineprotectedinherited

◆ asDerived() [2/2]

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
const Derived & Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::asDerived ( ) const
inlineprotectedinherited

◆ cellData()

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
template<class T , class VtkFunction >
std::vector< T > Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::cellData ( VtkFunction const &  fct) const
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()

template<class GV , class D , class P >
template<class T , class VtkFunction >
std::vector< T > Dune::Vtk::DataCollectorInterface< GV, D, P >::cellDataImpl ( VtkFunction const &  fct) const
inherited

◆ cells()

template<class GridView , class Derived , class Partition = Partitions::InteriorBorder>
Cells Dune::Vtk::UnstructuredDataCollectorInterface< GridView, Derived, Partition >::cells ( ) const
inlineinherited

Return cell types, offsets, and connectivity.

See also
Cells

◆ cellsImpl()

template<class GridView , class Partition = Partitions::InteriorBorder>
Cells Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::cellsImpl ( ) const
inline

Connect the corners of each cell. The leads to a global discontinuous grid.

◆ ghostLevel()

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
int Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::ghostLevel ( ) const
inlineinherited

Return the number of ghost elements.

◆ ghostLevelImpl()

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
int Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::ghostLevelImpl ( ) const
inlineinherited

◆ numCells()

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
std::uint64_t Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::numCells ( ) const
inlineinherited

Return the number of cells in (this partition of the) grid.

◆ numCellsImpl()

template<class GridView , class Partition = Partitions::InteriorBorder>
std::uint64_t Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::numCellsImpl ( ) const
inline

Return number of grid cells.

◆ numPoints()

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
std::uint64_t Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::numPoints ( ) const
inlineinherited

Return the number of points in (this partition of the) grid.

◆ numPointsImpl()

template<class GridView , class Partition = Partitions::InteriorBorder>
std::uint64_t Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::numPointsImpl ( ) const
inline

The number of points approx. #cell * #corners-per-cell.

◆ pointData()

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
template<class T , class VtkFunction >
std::vector< T > Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::pointData ( VtkFunction const &  fct) const
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()

template<class GridView , class Partition = Partitions::InteriorBorder>
template<class T , class GlobalFunction >
std::vector< T > Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::pointDataImpl ( GlobalFunction const &  fct) const
inline

Evaluate the fct in the corners of each cell.

◆ pointIds()

template<class GridView , class Derived , class Partition = Partitions::InteriorBorder>
std::vector< std::uint64_t > Dune::Vtk::UnstructuredDataCollectorInterface< GridView, Derived, Partition >::pointIds ( ) const
inlineinherited

◆ pointIdsImpl()

template<class GridView , class Derived , class Partition = Partitions::InteriorBorder>
std::vector< std::uint64_t > Dune::Vtk::UnstructuredDataCollectorInterface< GridView, Derived, Partition >::pointIdsImpl ( ) const
inlineprotectedinherited

◆ points()

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
template<class T >
std::vector< T > Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::points ( ) const
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()

template<class GridView , class Partition = Partitions::InteriorBorder>
template<class T >
std::vector< T > Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::pointsImpl ( ) const
inline

Return the coordinates of the corners of all cells.

◆ update()

template<class GridViewType , class Derived , class Partition = Partitions::InteriorBorder>
void Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::update ( )
inlineinherited

Update the DataCollector on the current GridView.

◆ updateImpl()

template<class GridView , class Partition = Partitions::InteriorBorder>
void Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::updateImpl ( )
inline

Create an index map the uniquely assigns an index to each pair (element,corner)

Member Data Documentation

◆ gridView_

template<class GridView , class Derived , class Partition = Partitions::InteriorBorder>
GridView Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::gridView_
protectedinherited

◆ indexMap_

template<class GridView , class Partition = Partitions::InteriorBorder>
std::vector<std::int64_t> Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::indexMap_
protected

◆ numCells_

template<class GridView , class Partition = Partitions::InteriorBorder>
std::uint64_t Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::numCells_ = 0
protected

◆ numPoints_

template<class GridView , class Partition = Partitions::InteriorBorder>
std::uint64_t Dune::Vtk::DiscontinuousDataCollector< GridView, Partition >::numPoints_ = 0
protected

◆ partition

template<class GridView , class Derived , class Partition = Partitions::InteriorBorder>
constexpr auto Dune::Vtk::DataCollectorInterface< GridViewType, Derived, Partition >::partition
staticconstexprinherited

The partitionset to collect data from.


The documentation for this class was generated from the following file: