Dune Core Modules (2.11.0)
subdivisiondatacollector.hh
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);
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
Implementation class for a multiple codim and multiple geometry type mapper.
Definition: mcmgmapper.hh:129
Holds the number of refined intervals per axis needed for virtual and static refinement.
Definition: base.cc:94
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
static constexpr auto partition
The partitionset to collect data from.
Definition: datacollectorinterface.hh:24
GridView 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
This file simply includes all Refinement implementations so you don't have to do them separately.
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:158
static constexpr int dimension
The dimension of the grid.
Definition: gridview.hh:134
constexpr GeometryType simplex(unsigned int dim)
Returns a GeometryType representing a simplex of dimension dim.
Definition: type.hh:453
auto elements(const SubDomainGridView< HostGridView > &subDomainGridView)
ADL findable access to element range for a SubDomainGridView.
Definition: subdomain.hh:487
Mapper for multiple codim and multiple geometry types.
int permutation(int idx) const
Return a permutation of Dune element vertices to conform to VTK element numbering.
Definition: types.hh:222
This file contains the virtual wrapper around refinement.
|
Legal Statements / Impressum |
Hosted by TU Dresden & Uni Heidelberg |
generated with Hugo v0.111.3
(Feb 14, 23:39, 2026)