|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
subdivisiondatacollector.hh
Go to the documentation of this file.
35 : public UnstructuredDataCollectorInterface<GridView, SubdivisionDataCollector<GridView>, Partitions::All>
43 static Dune::GeometryType refinementGeometryType (Dune::GeometryType const& gt, Vtk::Subdivision subdivision)
63 auto layout = [subdivision=subdivision_, ivals=ivals_](Dune::GeometryType gt, int dimgrid) -> unsigned int {
73 using Super::partition; // NOTE: subdivision data-collector currently implemented for the All partition only
160 Vtk::CellType cellType(refinementGeometryType(element.type(),subdivision_), Vtk::CellType::LINEAR);
Definition writer.hh:16
@ TRIANGULATION
@ REFINEMENT
int intervals() const
auto size(GeometryType type) const
Types types(int codim) const
std::uint64_t numCells() const
Return the number of cells in (this partition of the) grid.
Definition datacollectorinterface.hh:57
std::uint64_t numPoints() const
Return the number of points in (this partition of the) grid.
Definition datacollectorinterface.hh:63
GV GridView
Type of the bound grid view.
Definition datacollectorinterface.hh:21
GridView const & gridView() const
Return the bound grid view.
Definition datacollectorinterface.hh:39
Implementation of DataCollector with refined cells.
Definition subdivisiondatacollector.hh:36
std::uint64_t numCellsImpl() const
Return number of grid cells.
Definition subdivisiondatacollector.hh:141
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.
Definition subdivisiondatacollector.hh:179
SubdivisionDataCollector(GridView const &gridView, Dune::RefinementIntervals ivals=Dune::RefinementIntervals(1), Vtk::Subdivision subdivision=Vtk::Subdivision::REFINEMENT)
Construct a data collector with virtual element refinement.
Definition subdivisiondatacollector.hh:83
void updateImpl()
Construct the virtual element refinements.
Definition subdivisiondatacollector.hh:94
Cells cellsImpl() const
Return cell types, offsets, and connectivity.
Definition subdivisiondatacollector.hh:150
std::vector< T > pointsImpl() const
Return a vector of point coordinates.
Definition subdivisiondatacollector.hh:118
std::uint64_t numPointsImpl() const
Return number of points in the grid.
Definition subdivisiondatacollector.hh:108
std::vector< T > cellDataImpl(GlobalFunction const &fct) const
Evaluate the fct at cell centers.
Definition subdivisiondatacollector.hh:204
Definition unstructureddatacollector.hh:12
std::vector< std::int64_t > offsets
Definition unstructureddatacollector.hh:14
std::vector< std::int64_t > connectivity
Definition unstructureddatacollector.hh:15
Definition unstructureddatacollector.hh:26
static constexpr auto partition
The partitionset to collect data from.
Definition datacollectorinterface.hh:24
Cells cells() const
Return cell types, offsets, and connectivity.
Definition unstructureddatacollector.hh:45
T push_back(T... args)
T reserve(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8