14#ifndef DUMUX_DISCRETIZATION_BOX_FV_ELEMENT_GEOMETRY_HH
15#define DUMUX_DISCRETIZATION_BOX_FV_ELEMENT_GEOMETRY_HH
20#include <unordered_map>
24#include <dune/geometry/type.hh>
25#include <dune/localfunctions/lagrange/pqkfactory.hh>
26#include <dune/common/reservedvector.hh>
45template<
class GG,
bool enableGr
idGeometryCache>
52 using GridView =
typename GG::GridView;
53 static constexpr int dim = GridView::dimension;
54 static constexpr int dimWorld = GridView::dimensionworld;
57 using CoordScalar =
typename GridView::ctype;
58 using FeLocalBasis =
typename GG::FeCache::FiniteElementType::Traits::LocalBasisType;
59 using GGCache =
typename GG::Cache;
60 using GeometryHelper =
typename GGCache::GeometryHelper;
61 using DofHelper =
typename GGCache::DofHelper;
64 typename GridView::template Codim<0>::Entity::Geometry::LocalCoordinate,
65 typename GridView::template Codim<0>::Entity::Geometry::GlobalCoordinate
70 using Element =
typename GridView::template Codim<0>::Entity;
91 : ggCache_(&ggCache) {}
96 return ggCache_->scvs(eIdx_)[scvIdx];
102 return ggCache_->scvfs(eIdx_)[scvfIdx];
110 friend inline Dune::IteratorRange<typename std::vector<SubControlVolume>::const_iterator>
113 using Iter =
typename std::vector<SubControlVolume>::const_iterator;
114 const auto& s = fvGeometry.ggCache_->scvs(fvGeometry.eIdx_);
115 return Dune::IteratorRange<Iter>(s.begin(), s.end());
123 friend inline Dune::IteratorRange<typename std::vector<SubControlVolumeFace>::const_iterator>
126 using Iter =
typename std::vector<SubControlVolumeFace>::const_iterator;
127 const auto& s = fvGeometry.ggCache_->scvfs(fvGeometry.eIdx_);
128 return Dune::IteratorRange<Iter>(s.begin(), s.end());
133 friend inline Dune::IteratorRange<typename std::vector<SubControlVolumeFace>::const_iterator>
136 using Iter =
typename std::vector<SubControlVolumeFace>::const_iterator;
137 const auto& s = fvGeometry.ggCache_->scvfs(fvGeometry.eIdx_);
138 const auto& range = fvGeometry.ggCache_->boundaryFaceScvfRanges(fvGeometry.eIdx_)[
boundaryFace.index()];
139 return Dune::IteratorRange<Iter>(s.begin() + range[0], s.begin() + range[0] + range[1]);
144 friend inline std::ranges::view
auto
147 const auto& v = fvGeometry.ggCache_->boundaryFaces(fvGeometry.eIdx_);
148 return std::ranges::views::all(v);
153 {
return DofHelper::localDofsOnBoundaryFace(fvGeometry,
boundaryFace); }
158 return gridGeometry().feCache().get(element_->type()).localBasis();
164 return gridGeometry().feCache().get(element_->type()).localCoefficients();
176 return ggCache_->scvs(eIdx_).size();
182 return ggCache_->scvfs(eIdx_).size();
193 return std::move(*
this);
210 return std::move(*
this);
219 elementGeometry_.emplace(
element.geometry());
226 {
return static_cast<bool>(element_); }
230 {
return *element_; }
234 {
return *elementGeometry_; }
243 const auto localScvfIdx =
scvf.index() - GeometryHelper::numInteriorScvf(
element().type());
244 return ggCache_->scvfBoundaryGeometryKeys(eIdx_)[localScvfIdx][0];
249 {
return ggCache_->gridGeometry(); }
253 {
return ggCache_->hasBoundaryScvf(eIdx_); }
261 {
return ggCache_->boundaryFaces(eIdx_)[bfIdx]; }
267 return { Dune::GeometryTypes::cube(dim), GeometryHelper(*elementGeometry_).getScvCorners(
scv.indexInElement()) };
274 const GeometryHelper geometryHelper(*elementGeometry_);
277 const auto localBoundaryIndex =
scvf.index() - geometryHelper.numInteriorScvf();
278 const auto& key = ggCache_->scvfBoundaryGeometryKeys(eIdx_)[localBoundaryIndex];
279 return { Dune::GeometryTypes::cube(dim-1), geometryHelper.getBoundaryScvfCorners(key[0], key[1]) };
282 return { Dune::GeometryTypes::cube(dim-1), geometryHelper.getScvfCorners(
scvf.index()) };
291 typename BoundaryFace::Traits::CornerStorage corners;
292 for (
int i = 0; i < faceGeoInRef.corners(); ++i)
293 corners.push_back(elemGeo.global(faceGeoInRef.corner(i)));
294 return { faceGeoInRef.type(), corners };
300 const auto type = fvGeometry.element().type();
301 const auto& localKey = fvGeometry.gridGeometry().feCache().get(type).localCoefficients().localKey(
scv.localDofIndex());
307 template<
class LocalDof>
310 const auto type = fvGeometry.element().type();
311 const auto& localKey = fvGeometry.gridGeometry().feCache().get(type).localCoefficients().localKey(localDof.index());
312 const auto& localPos = DofHelper::localDofPosition(type, localKey);
322 [&] (
const typename Element::Geometry::GlobalCoordinate& pos)
323 {
return fvGeometry.elementGeometry().local(pos); },
332 {
scvf.unitOuterNormal(),
scvf.index(), fvGeometry.elementGeometry().local(
scvf.ipGlobal()),
scvf.ipGlobal() };
336 const GGCache* ggCache_;
339 std::optional<Element> element_;
340 std::optional<typename Element::Geometry> elementGeometry_;
347 using GridView =
typename GG::GridView;
348 static constexpr int dim = GridView::dimension;
349 static constexpr int dimWorld = GridView::dimensionworld;
352 using CoordScalar =
typename GridView::ctype;
353 using FeLocalBasis =
typename GG::FeCache::FiniteElementType::Traits::LocalBasisType;
354 using GGCache =
typename GG::Cache;
355 using GeometryHelper =
typename GGCache::GeometryHelper;
356 using DofHelper =
typename GGCache::DofHelper;
359 typename GridView::template Codim<0>::Entity::Geometry::LocalCoordinate,
360 typename GridView::template Codim<0>::Entity::Geometry::GlobalCoordinate
365 using Element =
typename GridView::template Codim<0>::Entity;
386 : ggCache_(&ggCache) {}
391 return scvs_[scvIdx];
397 return scvfs_[scvfIdx];
405 friend inline Dune::IteratorRange<typename std::vector<SubControlVolume>::const_iterator>
408 using Iter =
typename std::vector<SubControlVolume>::const_iterator;
409 return Dune::IteratorRange<Iter>(fvGeometry.scvs_.begin(), fvGeometry.scvs_.end());
417 friend inline Dune::IteratorRange<typename std::vector<SubControlVolumeFace>::const_iterator>
420 using Iter =
typename std::vector<SubControlVolumeFace>::const_iterator;
421 return Dune::IteratorRange<Iter>(fvGeometry.scvfs_.begin(), fvGeometry.scvfs_.end());
426 friend inline Dune::IteratorRange<typename std::vector<SubControlVolumeFace>::const_iterator>
429 using Iter =
typename std::vector<SubControlVolumeFace>::const_iterator;
430 const auto& range = fvGeometry.boundaryFaceScvfRanges_[
boundaryFace.index()];
431 return Dune::IteratorRange<Iter>(fvGeometry.scvfs_.begin() + range[0], fvGeometry.scvfs_.begin() + range[0] + range[1]);
436 friend inline std::ranges::view
auto
438 {
return std::ranges::views::all(fvGeometry.boundaryFaces_); }
442 {
return DofHelper::localDofsOnBoundaryFace(fvGeometry,
boundaryFace); }
447 return gridGeometry().feCache().get(element_->type()).localBasis();
453 return gridGeometry().feCache().get(element_->type()).localCoefficients();
471 return scvfs_.size();
482 return std::move(*
this);
499 return std::move(*
this);
509 elementGeometry_.emplace(
element.geometry());
510 makeElementGeometries_();
515 {
return static_cast<bool>(element_); }
519 {
return *element_; }
523 {
return *elementGeometry_; }
532 const auto localScvfIdx =
scvf.index() - GeometryHelper::numInteriorScvf(
element().type());
533 return scvfBoundaryGeometryKeys_[localScvfIdx][0];
538 {
return ggCache_->gridGeometry(); }
542 {
return ggCache_->gridGeometry(); }
546 {
return hasBoundaryScvf_; }
554 {
return boundaryFaces_[bfIdx]; }
560 return { Dune::GeometryTypes::cube(dim), GeometryHelper(*elementGeometry_).getScvCorners(
scv.indexInElement()) };
567 const GeometryHelper geometryHelper(*elementGeometry_);
570 const auto localBoundaryIndex =
scvf.index() - geometryHelper.numInteriorScvf();
571 const auto& key = scvfBoundaryGeometryKeys_[localBoundaryIndex];
572 return { Dune::GeometryTypes::cube(dim-1), geometryHelper.getBoundaryScvfCorners(key[0], key[1]) };
575 return { Dune::GeometryTypes::cube(dim-1), geometryHelper.getScvfCorners(
scvf.index()) };
584 typename BoundaryFace::Traits::CornerStorage corners;
585 for (
int i = 0; i < faceGeoInRef.corners(); ++i)
586 corners.push_back(elemGeo.global(faceGeoInRef.corner(i)));
587 return { faceGeoInRef.type(), corners };
593 const auto type = fvGeometry.element().type();
594 const auto& localKey = fvGeometry.gridGeometry().feCache().get(type).localCoefficients().localKey(
scv.localDofIndex());
600 template<
class LocalDof>
603 const auto type = fvGeometry.element().type();
604 const auto& localKey = fvGeometry.gridGeometry().feCache().get(type).localCoefficients().localKey(localDof.index());
605 const auto& localPos = DofHelper::localDofPosition(type, localKey);
615 [&] (
const typename Element::Geometry::GlobalCoordinate& pos) {
return fvGeometry.elementGeometry().local(pos); },
624 {
scvf.unitOuterNormal(),
scvf.index(), fvGeometry.elementGeometry().local(
scvf.ipGlobal()),
scvf.ipGlobal() };
628 void makeElementGeometries_()
630 hasBoundaryScvf_ =
false;
631 boundaryFaces_.clear();
632 boundaryFaceScvfRanges_.clear();
635 const auto& element = *element_;
636 const auto& elementGeometry = *elementGeometry_;
637 const auto refElement = referenceElement(elementGeometry);
640 GeometryHelper geometryHelper(elementGeometry);
643 scvs_.resize(elementGeometry.corners());
644 for (LocalIndexType scvLocalIdx = 0; scvLocalIdx < elementGeometry.corners(); ++scvLocalIdx)
647 const auto dofIdxGlobal = gridGeometry().vertexMapper().subIndex(element, scvLocalIdx, dim);
650 scvs_[scvLocalIdx] = SubControlVolume(
651 geometryHelper.getScvCorners(scvLocalIdx),
659 const auto numInnerScvf = geometryHelper.numInteriorScvf();
660 scvfs_.resize(numInnerScvf);
661 scvfBoundaryGeometryKeys_.clear();
663 LocalIndexType scvfLocalIdx = 0;
664 for (; scvfLocalIdx < numInnerScvf; ++scvfLocalIdx)
667 std::array<LocalIndexType, 2> localScvIndices{{
668 static_cast<LocalIndexType
>(refElement.subEntity(scvfLocalIdx, dim-1, 0, dim)),
669 static_cast<LocalIndexType
>(refElement.subEntity(scvfLocalIdx, dim-1, 1, dim))
672 const auto& corners = geometryHelper.getScvfCorners(scvfLocalIdx);
673 scvfs_[scvfLocalIdx] = SubControlVolumeFace(
675 geometryHelper.normal(corners, localScvIndices),
678 std::move(localScvIndices)
683 LocalIndexType numBoundaryFaces = 0;
684 for (
const auto& intersection : intersections(gridGeometry().gridView(), element))
686 if (intersection.boundary() && !intersection.neighbor())
688 const auto isGeometry = intersection.geometry();
689 hasBoundaryScvf_ =
true;
692 boundaryFaces_.push_back(BoundaryFace{
695 intersection.centerUnitOuterNormal(),
697 static_cast<LocalIndexType
>(intersection.indexInInside()),
698 typename BoundaryFace::Traits::BoundaryFlag{intersection}
702 boundaryFaceScvfRanges_.push_back(std::array<LocalIndexType, 2>{{
704 static_cast<LocalIndexType
>(isGeometry.corners())
707 for (
unsigned int isScvfLocalIdx = 0; isScvfLocalIdx < isGeometry.corners(); ++isScvfLocalIdx)
710 const LocalIndexType insideScvIdx =
static_cast<LocalIndexType
>(refElement.subEntity(intersection.indexInInside(), 1, isScvfLocalIdx, dim));
711 std::array<LocalIndexType, 2> localScvIndices{{insideScvIdx, insideScvIdx}};
714 geometryHelper.getBoundaryScvfCorners(intersection.indexInInside(), isScvfLocalIdx),
715 intersection.centerUnitOuterNormal(),
719 std::move(localScvIndices)
722 scvfBoundaryGeometryKeys_.emplace_back(std::array<LocalIndexType, 2>{{
723 static_cast<LocalIndexType
>(intersection.indexInInside()),
724 static_cast<LocalIndexType
>(isScvfLocalIdx)
736 std::optional<Element> element_;
737 std::optional<typename Element::Geometry> elementGeometry_;
740 const GGCache* ggCache_;
743 std::vector<SubControlVolume> scvs_;
744 std::vector<SubControlVolumeFace> scvfs_;
745 std::vector<std::array<LocalIndexType, 2>> scvfBoundaryGeometryKeys_;
746 Dune::ReservedVector<BoundaryFace, 2*dim> boundaryFaces_;
747 Dune::ReservedVector<std::array<LocalIndexType, 2>, 2*dim> boundaryFaceScvfRanges_;
749 bool hasBoundaryScvf_ =
false;
Helper class constructing the dual grid finite volume geometries for the box discretizazion method.
bool isBound() const
Returns true if bind/bindElement has already been called.
Definition discretization/box/fvelementgeometry.hh:514
std::size_t numScvf() const
The total number of sub control volume faces.
Definition discretization/box/fvelementgeometry.hh:469
GG GridGeometry
export type of finite volume grid geometry
Definition discretization/box/fvelementgeometry.hh:371
SubControlVolumeFace::Traits::Geometry geometry(const SubControlVolumeFace &scvf) const
Geometry of a sub control volume face.
Definition discretization/box/fvelementgeometry.hh:564
bool hasBoundaryScvf() const
Returns whether one of the geometry's scvfs lies on a boundary.
Definition discretization/box/fvelementgeometry.hh:545
friend Dune::IteratorRange< typename std::vector< SubControlVolume >::const_iterator > scvs(const BoxFVElementGeometry &fvGeometry)
Definition discretization/box/fvelementgeometry.hh:406
std::size_t numScv() const
The total number of sub control volumes.
Definition discretization/box/fvelementgeometry.hh:463
GridIndexType elementIndex() const
The bound element's index in the grid view.
Definition discretization/box/fvelementgeometry.hh:526
void bindElement(const Element &element) &
Definition discretization/box/fvelementgeometry.hh:505
std::size_t intersectionIndex(const SubControlVolumeFace &scvf) const
The intersection index the scvf belongs to.
Definition discretization/box/fvelementgeometry.hh:530
const SubControlVolumeFace & scvf(LocalIndexType scvfIdx) const
Get a sub control volume face with a local scvf index.
Definition discretization/box/fvelementgeometry.hh:395
BoxFVElementGeometry(const GGCache &ggCache)
Constructor.
Definition discretization/box/fvelementgeometry.hh:385
typename GG::ScvfQuadratureRule ScvfQuadratureRule
the quadrature rule type for scvfs
Definition discretization/box/fvelementgeometry.hh:377
SubControlVolume::Traits::Geometry geometry(const SubControlVolume &scv) const
Geometry of a sub control volume.
Definition discretization/box/fvelementgeometry.hh:557
const GridGeometry & gridGeometry() const
The grid geometry we are a restriction of.
Definition discretization/box/fvelementgeometry.hh:537
friend Dune::IteratorRange< typename std::vector< SubControlVolumeFace >::const_iterator > scvfs(const BoxFVElementGeometry &fvGeometry, const BoundaryFace &boundaryFace)
Definition discretization/box/fvelementgeometry.hh:427
typename GridView::template Codim< 0 >::Entity Element
export the element type
Definition discretization/box/fvelementgeometry.hh:365
friend Dune::IteratorRange< typename std::vector< SubControlVolumeFace >::const_iterator > scvfs(const BoxFVElementGeometry &fvGeometry)
Definition discretization/box/fvelementgeometry.hh:418
friend auto ipData(const BoxFVElementGeometry &fvGeometry, const SubControlVolume &scv)
Interpolation point data for an scv.
Definition discretization/box/fvelementgeometry.hh:591
BoundaryFace::Traits::Geometry geometry(const BoundaryFace &boundaryFace) const
Geometry of a boundary face.
Definition discretization/box/fvelementgeometry.hh:579
const FeLocalBasis & feLocalBasis() const
Get a local finite element basis.
Definition discretization/box/fvelementgeometry.hh:445
const Element & element() const
The bound element.
Definition discretization/box/fvelementgeometry.hh:518
const SubControlVolume & scv(LocalIndexType scvIdx) const
Get a sub control volume with a local scv index.
Definition discretization/box/fvelementgeometry.hh:389
friend auto ipData(const BoxFVElementGeometry &fvGeometry, const typename Element::Geometry::GlobalCoordinate &globalPos)
Interpolation point data for a global position.
Definition discretization/box/fvelementgeometry.hh:611
BoxFVElementGeometry bind(const Element &element) &&
bind the local view (r-value overload) This overload is called when an instance of this class is a te...
Definition discretization/box/fvelementgeometry.hh:479
friend auto ipData(const BoxFVElementGeometry &fvGeometry, const SubControlVolumeFace &scvf)
Interpolation point data for scvf.
Definition discretization/box/fvelementgeometry.hh:621
friend auto localDofs(const BoxFVElementGeometry &fvGeometry, const BoundaryFace &boundaryFace)
an iterator over all local dofs related to a boundary face
Definition discretization/box/fvelementgeometry.hh:441
friend auto ipData(const BoxFVElementGeometry &fvGeometry, const LocalDof &localDof)
Interpolation point data for a localDof.
Definition discretization/box/fvelementgeometry.hh:601
typename GG::ScvQuadratureRule ScvQuadratureRule
the quadrature rule type for scvs
Definition discretization/box/fvelementgeometry.hh:375
std::size_t numLocalDofs() const
The total number of element-local dofs.
Definition discretization/box/fvelementgeometry.hh:457
typename GG::BoundaryFace BoundaryFace
export the boundary face type
Definition discretization/box/fvelementgeometry.hh:373
friend std::ranges::view auto boundaryFaces(const BoxFVElementGeometry &fvGeometry)
Definition discretization/box/fvelementgeometry.hh:437
typename GG::SubControlVolumeFace SubControlVolumeFace
export type of subcontrol volume face
Definition discretization/box/fvelementgeometry.hh:369
const BoundaryFace & boundaryFace(LocalIndexType bfIdx) const
Get a boundary face with a local boundary face index.
Definition discretization/box/fvelementgeometry.hh:553
const auto & feLocalCoefficients() const
Get the local finite element coefficients.
Definition discretization/box/fvelementgeometry.hh:451
BoxFVElementGeometry bindElement(const Element &element) &&
bind the local view (r-value overload) This overload is called when an instance of this class is a te...
Definition discretization/box/fvelementgeometry.hh:496
const Element::Geometry & elementGeometry() const
The bound element geometry.
Definition discretization/box/fvelementgeometry.hh:522
bool hasBoundaryFaces() const
Returns whether the element has boundary faces.
Definition discretization/box/fvelementgeometry.hh:549
typename GG::SubControlVolume SubControlVolume
export type of subcontrol volume
Definition discretization/box/fvelementgeometry.hh:367
void bind(const Element &element) &
Definition discretization/box/fvelementgeometry.hh:488
static constexpr std::size_t maxNumElementScvs
the maximum number of scvs per element (2^dim for cubes)
Definition discretization/box/fvelementgeometry.hh:379
const GridGeometry & gridDiscretization() const
The grid discretization we are a restriction of.
Definition discretization/box/fvelementgeometry.hh:541
bool isBound() const
Returns true if bind/bindElement has already been called.
Definition discretization/box/fvelementgeometry.hh:225
const FeLocalBasis & feLocalBasis() const
Get a local finite element basis.
Definition discretization/box/fvelementgeometry.hh:156
BoundaryFace::Traits::Geometry geometry(const BoundaryFace &boundaryFace) const
Geometry of a boundary face.
Definition discretization/box/fvelementgeometry.hh:286
BoxFVElementGeometry bindElement(const Element &element) &&
bind the local view (r-value overload) This overload is called when an instance of this class is a te...
Definition discretization/box/fvelementgeometry.hh:207
const Element & element() const
The bound element.
Definition discretization/box/fvelementgeometry.hh:229
SubControlVolume::Traits::Geometry geometry(const SubControlVolume &scv) const
Geometry of a sub control volume.
Definition discretization/box/fvelementgeometry.hh:264
friend Dune::IteratorRange< typename std::vector< SubControlVolume >::const_iterator > scvs(const BoxFVElementGeometry &fvGeometry)
Definition discretization/box/fvelementgeometry.hh:111
bool hasBoundaryFaces() const
Returns whether the element has boundary faces.
Definition discretization/box/fvelementgeometry.hh:256
std::size_t numScv() const
The total number of sub control volumes.
Definition discretization/box/fvelementgeometry.hh:174
typename GG::BoundaryFace BoundaryFace
export the boundary face type
Definition discretization/box/fvelementgeometry.hh:78
const SubControlVolume & scv(LocalIndexType scvIdx) const
Get a sub control volume with a local scv index.
Definition discretization/box/fvelementgeometry.hh:94
std::size_t numLocalDofs() const
The total number of element-local dofs.
Definition discretization/box/fvelementgeometry.hh:168
std::size_t numScvf() const
The total number of sub control volume faces.
Definition discretization/box/fvelementgeometry.hh:180
typename GG::SubControlVolume SubControlVolume
export type of subcontrol volume
Definition discretization/box/fvelementgeometry.hh:72
const GridGeometry & gridGeometry() const
The grid geometry we are a restriction of.
Definition discretization/box/fvelementgeometry.hh:248
const auto & feLocalCoefficients() const
Get the local finite element coefficients.
Definition discretization/box/fvelementgeometry.hh:162
friend Dune::IteratorRange< typename std::vector< SubControlVolumeFace >::const_iterator > scvfs(const BoxFVElementGeometry &fvGeometry, const BoundaryFace &boundaryFace)
Definition discretization/box/fvelementgeometry.hh:134
bool hasBoundaryScvf() const
Returns whether one of the geometry's scvfs lies on a boundary.
Definition discretization/box/fvelementgeometry.hh:252
friend Dune::IteratorRange< typename std::vector< SubControlVolumeFace >::const_iterator > scvfs(const BoxFVElementGeometry &fvGeometry)
Definition discretization/box/fvelementgeometry.hh:124
friend auto ipData(const BoxFVElementGeometry &fvGeometry, const SubControlVolume &scv)
Interpolation point data for an scv.
Definition discretization/box/fvelementgeometry.hh:298
typename GG::ScvQuadratureRule ScvQuadratureRule
export the scv interpolation point data type
Definition discretization/box/fvelementgeometry.hh:80
const Element::Geometry & elementGeometry() const
The bound element geometry.
Definition discretization/box/fvelementgeometry.hh:233
void bind(const Element &element) &
Definition discretization/box/fvelementgeometry.hh:199
typename GG::ScvfQuadratureRule ScvfQuadratureRule
the quadrature rule type for scvfs
Definition discretization/box/fvelementgeometry.hh:82
std::size_t intersectionIndex(const SubControlVolumeFace &scvf) const
The intersection index the scvf belongs to.
Definition discretization/box/fvelementgeometry.hh:241
SubControlVolumeFace::Traits::Geometry geometry(const SubControlVolumeFace &scvf) const
Geometry of a sub control volume face.
Definition discretization/box/fvelementgeometry.hh:271
friend auto ipData(const BoxFVElementGeometry &fvGeometry, const typename Element::Geometry::GlobalCoordinate &globalPos)
Interpolation point data for a global position.
Definition discretization/box/fvelementgeometry.hh:318
GridIndexType elementIndex() const
The bound element's index in the grid view.
Definition discretization/box/fvelementgeometry.hh:237
friend auto ipData(const BoxFVElementGeometry &fvGeometry, const SubControlVolumeFace &scvf)
Interpolation point data for scvf.
Definition discretization/box/fvelementgeometry.hh:329
friend auto localDofs(const BoxFVElementGeometry &fvGeometry, const BoundaryFace &boundaryFace)
an iterator over all local dofs related to a boundary face
Definition discretization/box/fvelementgeometry.hh:152
friend auto ipData(const BoxFVElementGeometry &fvGeometry, const LocalDof &localDof)
Interpolation point data for a localDof.
Definition discretization/box/fvelementgeometry.hh:308
friend std::ranges::view auto boundaryFaces(const BoxFVElementGeometry &fvGeometry)
Definition discretization/box/fvelementgeometry.hh:145
const BoundaryFace & boundaryFace(LocalIndexType bfIdx) const
Get a boundary face with a local boundary face index.
Definition discretization/box/fvelementgeometry.hh:260
static constexpr std::size_t maxNumElementScvs
the maximum number of scvs per element (2^dim for cubes)
Definition discretization/box/fvelementgeometry.hh:84
typename GG::SubControlVolumeFace SubControlVolumeFace
export type of subcontrol volume face
Definition discretization/box/fvelementgeometry.hh:74
void bindElement(const Element &element) &
Definition discretization/box/fvelementgeometry.hh:216
const SubControlVolumeFace & scvf(LocalIndexType scvfIdx) const
Get a sub control volume face with a local scvf index.
Definition discretization/box/fvelementgeometry.hh:100
BoxFVElementGeometry(const GGCache &ggCache)
Constructor.
Definition discretization/box/fvelementgeometry.hh:90
BoxFVElementGeometry bind(const Element &element) &&
bind the local view (r-value overload) This overload is called when an instance of this class is a te...
Definition discretization/box/fvelementgeometry.hh:190
typename GridView::template Codim< 0 >::Entity Element
export the element type
Definition discretization/box/fvelementgeometry.hh:70
GG GridGeometry
export type of finite volume grid geometry
Definition discretization/box/fvelementgeometry.hh:76
Base class for the finite volume geometry vector for box models This builds up the sub control volume...
Definition discretization/box/fvelementgeometry.hh:46
An interpolation point related to a face of an element.
Definition cvfe/interpolationpointdata.hh:109
An interpolation point related to an element that includes global and local positions.
Definition cvfe/interpolationpointdata.hh:31
An interpolation point related to a global position of an element, giving its local positions by a ma...
Definition cvfe/interpolationpointdata.hh:82
An interpolation point related to a localDof of an element, giving its global and local positions.
Definition cvfe/interpolationpointdata.hh:60
Classes representing interpolation point data for control-volume finite element schemes.
Class representing dofs on elements for control-volume finite element schemes.
Quadrature rules over sub-control volumes and sub-control volume faces.
Class providing iterators over sub control volumes and sub control volume faces of an element.
typename GridView::IndexSet::IndexType GridIndex
Definition indextraits.hh:27
unsigned int LocalIndex
Definition indextraits.hh:28