DUNE-GRID-GLUE (2.10)
extractor.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-GPL-2.0-only-with-dune-grid-glue-exception
129 ElementInfo(unsigned int idx_, const Element& p_, unsigned int f_) : idx(idx_), faces(f_), p(p_.seed())
409typename Extractor<GV,cd>::LocalGeometry Extractor<GV,cd>::geometryLocal(unsigned int index) const
Provides codimension-independent methods for grid extraction.
Definition: extractor.hh:46
VertexInfoMap vtxInfo_
a map enabling faster access to vertices and coordinates
Definition: extractor.hh:206
Element element(unsigned int index) const
gets the parent element for a given face index, throws an exception if index not valid
Definition: extractor.hh:361
int indexInInside(unsigned int index) const
gets the number face in the parent element
Definition: extractor.hh:326
LocalGeometry geometryLocal(unsigned int index) const
Get geometry of the extracted face in element coordinates.
Definition: extractor.hh:409
std::vector< CoordinateInfo > coords_
all information about the corner vertices of the extracted
Definition: extractor.hh:196
const GridView & gridView() const
give access to the Dune::GridView where this Patch belongs to
Definition: extractor.hh:344
void getFaces(std::vector< VertexVector > &faces) const
Get the corners of the extracted subentities.
Definition: extractor.hh:285
const GridView gv_
the grid object to extract the surface from
Definition: extractor.hh:191
std::vector< SubEntityInfo > subEntities_
all information about the extracted subEntities
Definition: extractor.hh:199
Vertex vertex(unsigned int index) const
gets the vertex for a given coordinate index throws an exception if index not valid
Definition: extractor.hh:377
void getGeometryTypes(std::vector< Dune::GeometryType > &geometryTypes) const
Get the list of geometry types.
Definition: extractor.hh:274
bool faceIndices(const Element &e, int &first, int &count) const
gets index of first subentity as well as the total number of subentities that were extracted from thi...
Definition: extractor.hh:304
Geometry geometry(unsigned int index) const
Get world geometry of the extracted face.
Definition: extractor.hh:397
unsigned int nCoords() const
getter for the count of coordinates
Definition: extractor.hh:268
void getCoords(std::vector< Dune::FieldVector< ctype, dimworld > > &coords) const
getter for the coordinates array
Definition: extractor.hh:256
ElementInfoMap elmtInfo_
a map enabling faster access to elements and faces
Definition: extractor.hh:213
void clear()
delete everything build up so far and free the memory
Definition: extractor.hh:235
Helpful struct holding one index for the coordinate (vertex) to which it is associated and the elemen...
Definition: extractor.hh:88
unsigned int idx
index of the vertex
Definition: extractor.hh:89
simple struct holding an element seed and an index
Definition: extractor.hh:128
unsigned int idx
the index of this element's first face in the internal list of extracted faces
Definition: extractor.hh:133
unsigned int faces
the number of extracted faces for this element
Definition: extractor.hh:136
ElementSeed p
the entity seed for the element
Definition: extractor.hh:139
Holds some information about an element's subentity involved in a coupling.
Definition: extractor.hh:147
CornerInfo corners[cube_corners]
the corner indices plus the numbers of the vertices in the parent element
Definition: extractor.hh:181
IndexType parent
the index of the parent element (from index set)
Definition: extractor.hh:167
unsigned int num_in_parent
the number of the face in the parent element
Definition: extractor.hh:170
Dune::GeometryType geometryType_
The GeometryType of the subentity.
Definition: extractor.hh:173
simple struct holding a vertex pointer and an index
Definition: extractor.hh:116
