15#ifndef DUMUX_FACETCOUPLING_BOX_GRID_FVGEOMETRY_HH
16#define DUMUX_FACETCOUPLING_BOX_GRID_FVGEOMETRY_HH
23#include <dune/grid/common/mcmgmapper.hh>
24#include <dune/localfunctions/lagrange/lagrangelfecache.hh>
40template<
class GV,
class T>
55template<
class Gr
idView>
62 template<
class Gr
idGeometry,
bool enableCache>
66 using ElementMapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
70 using FacetMapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
82 bool enableGridGeometryCache =
false,
93template<
class Scalar,
class GV,
class Traits>
102 using Element =
typename GV::template Codim<0>::Entity;
103 using CoordScalar =
typename GV::ctype;
104 static const int dim = GV::dimension;
105 static const int dimWorld = GV::dimensionworld;
123 using FeCache = Dune::LagrangeLocalFiniteElementCache<CoordScalar, Scalar, dim, 1>;
128 template<
class FacetGr
idView,
class CodimOneGr
idAdapter>
130 const FacetGridView& facetGridView,
132 bool verbose =
false)
136 update_(facetGridView, codimOneGridAdapter, verbose);
154 {
return numBoundaryScvf_; }
173 template<
class FacetGr
idView,
class CodimOneGr
idAdapter>
175 const FacetGridView& facetGridView,
177 bool verbose =
false)
180 update_(facetGridView, codimOneGridAdapter, verbose);
184 template<
class FacetGr
idView,
class CodimOneGr
idAdapter>
186 const FacetGridView& facetGridView,
188 bool verbose =
false)
191 update_(facetGridView, codimOneGridAdapter, verbose);
200 {
return boundaryDofIndices_[dofIdx]; }
204 {
return interiorBoundaryDofIndices_[dofIdx]; }
211 [[deprecated(
"Will be removed after release 3.11. Use periodicallyMappedDofs, returning a range of dofs")]]
213 { DUNE_THROW(Dune::InvalidStateException,
"Periodic boundaries are not supported by the box facet coupling scheme"); }
217 { DUNE_THROW(Dune::InvalidStateException,
"Periodic boundaries are not supported by the box facet coupling scheme"); }
221 {
return { gg.cache_ }; }
224 class BoxFacetCouplingGridGeometryCache
230 using DofHelper =
typename GeometryHelper::DofHelper;
236 const BoxFacetCouplingFVGridGeometry& gridGeometry()
const
237 {
return *gridGeometry_; }
240 const std::vector<SubControlVolume>&
scvs(GridIndexType eIdx)
const
241 {
return scvs_[eIdx]; }
244 const std::vector<SubControlVolumeFace>& scvfs(GridIndexType eIdx)
const
245 {
return scvfs_[eIdx]; }
255 std::vector<std::vector<SubControlVolume>> scvs_;
256 std::vector<std::vector<SubControlVolumeFace>> scvfs_;
258 const BoxFacetCouplingFVGridGeometry* gridGeometry_;
264 using Cache = BoxFacetCouplingGridGeometryCache;
267 using GeometryHelper =
typename Cache::GeometryHelper;
269 template<
class FacetGr
idView,
class CodimOneGr
idAdapter>
270 void update_(
const FacetGridView& facetGridView,
272 bool verbose =
false)
275 this->
vertexMapper().enrich(facetGridView, codimOneGridAdapter, verbose);
281 const auto numElements = this->
gridView().size(0);
282 cache_.scvs_.resize(numElements);
283 cache_.scvfs_.resize(numElements);
284 boundaryDofIndices_.assign(numDof,
false);
285 interiorBoundaryDofIndices_.assign(numDof,
false);
290 numBoundaryScvf_ = 0;
296 numScv_ +=
element.subEntities(dim);
297 numScvf_ +=
element.subEntities(dim-1);
300 auto elementGeometry =
element.geometry();
301 const auto refElement = referenceElement(elementGeometry);
304 GeometryHelper geometryHelper(elementGeometry);
307 cache_.scvs_[eIdx].resize(elementGeometry.corners());
308 for (LocalIndexType scvLocalIdx = 0; scvLocalIdx < elementGeometry.corners(); ++scvLocalIdx)
309 cache_.scvs_[eIdx][scvLocalIdx] =
SubControlVolume(geometryHelper.getScvCorners(scvLocalIdx),
312 this->vertexMapper().subIndex(
element, scvLocalIdx, dim));
315 LocalIndexType scvfLocalIdx = 0;
316 cache_.scvfs_[eIdx].resize(
element.subEntities(dim-1));
317 for (; scvfLocalIdx <
element.subEntities(dim-1); ++scvfLocalIdx)
320 std::array<LocalIndexType, 2> localScvIndices{{
321 static_cast<LocalIndexType
>(refElement.subEntity(scvfLocalIdx, dim-1, 0, dim)),
322 static_cast<LocalIndexType
>(refElement.subEntity(scvfLocalIdx, dim-1, 1, dim))
329 std::move(localScvIndices));
334 std::vector<unsigned int> handledFacets;
335 for (
const auto& intersection : intersections(this->
gridView(),
element))
337 if (std::count(handledFacets.begin(), handledFacets.end(), intersection.indexInInside()))
340 handledFacets.push_back(intersection.indexInInside());
343 const auto isGeometry = intersection.geometry();
344 const auto numFaceCorners = isGeometry.corners();
345 const auto idxInInside = intersection.indexInInside();
346 const auto boundary = intersection.boundary();
348 std::vector<LocalIndexType> vIndicesLocal(numFaceCorners);
349 for (
int i = 0; i < numFaceCorners; ++i)
350 vIndicesLocal[i] =
static_cast<LocalIndexType
>(refElement.subEntity(idxInInside, 1, i, dim));
352 std::vector<LocalIndexType> gridVertexIndices(numFaceCorners);
353 for (
int i = 0; i < numFaceCorners; ++i)
360 if (boundary && intersection.neighbor())
361 DUNE_THROW(Dune::InvalidStateException,
"Periodic boundaries are not supported by the box facet coupling scheme");
363 if (isOnFacet || boundary)
366 numScvf_ += numFaceCorners;
367 numBoundaryScvf_ += int(boundary)*numFaceCorners;
369 for (
unsigned int isScvfLocalIdx = 0; isScvfLocalIdx < numFaceCorners; ++isScvfLocalIdx)
372 std::array<LocalIndexType, 2> localScvIndices{{
373 vIndicesLocal[isScvfLocalIdx], vIndicesLocal[isScvfLocalIdx]
377 cache_.scvfs_[eIdx].emplace_back(geometryHelper,
381 std::move(localScvIndices),
386 const auto dofIndex = this->
vertexMapper().subIndex(
element, vIndicesLocal[isScvfLocalIdx], dim);
387 if (boundary) boundaryDofIndices_[ dofIndex ] = boundary && !isOnFacet;
388 if (isOnFacet) interiorBoundaryDofIndices_[ dofIndex ] = isOnFacet;
398 const FeCache feCache_;
402 std::size_t numScvf_;
403 std::size_t numBoundaryScvf_;
406 std::vector<bool> boundaryDofIndices_;
407 std::vector<bool> interiorBoundaryDofIndices_;
419template<
class Scalar,
class GV,
class Traits>
428 static const int dim = GV::dimension;
429 static const int dimWorld = GV::dimensionworld;
431 using Element =
typename GV::template Codim<0>::Entity;
432 using Intersection =
typename GV::Intersection;
433 using CoordScalar =
typename GV::ctype;
451 using FeCache = Dune::LagrangeLocalFiniteElementCache<CoordScalar, Scalar, dim, 1>;
456 template<
class FacetGr
idView,
class CodimOneGr
idAdapter>
458 const FacetGridView& facetGridView,
460 bool verbose =
false)
465 update_(facetGridView, codimOneGridAdapter, verbose);
484 {
return numBoundaryScvf_; }
503 template<
class FacetGr
idView,
class CodimOneGr
idAdapter>
505 const FacetGridView& facetGridView,
507 bool verbose =
false)
510 updateFacetMapper_();
511 update_(facetGridView, codimOneGridAdapter, verbose);
515 template<
class FacetGr
idView,
class CodimOneGr
idAdapter>
517 const FacetGridView& facetGridView,
519 bool verbose =
false)
522 updateFacetMapper_();
523 update_(facetGridView, codimOneGridAdapter, verbose);
532 {
return boundaryDofIndices_[dofIdx]; }
536 {
return interiorBoundaryDofIndices_[dofIdx]; }
540 {
return facetIsOnInteriorBoundary_[ facetMapper_.subIndex(
element, intersection.indexInInside(), 1) ]; }
547 [[deprecated(
"Will be removed after release 3.11. Use periodicallyMappedDofs, returning a range of dofs")]]
549 { DUNE_THROW(Dune::InvalidStateException,
"Periodic boundaries are not supported by the facet coupling scheme"); }
553 { DUNE_THROW(Dune::InvalidStateException,
"Periodic boundaries are not supported by the facet coupling scheme"); }
557 {
return { gg.cache_ }; }
561 class BoxFacetCouplingGridGeometryCache
567 using DofHelper =
typename GeometryHelper::DofHelper;
573 const BoxFacetCouplingFVGridGeometry& gridGeometry()
const
574 {
return *gridGeometry_; }
577 const BoxFacetCouplingFVGridGeometry* gridGeometry_;
583 using Cache = BoxFacetCouplingGridGeometryCache;
587 void updateFacetMapper_()
589 facetMapper_.update(this->
gridView());
592 template<
class FacetGr
idView,
class CodimOneGr
idAdapter>
593 void update_(
const FacetGridView& facetGridView,
598 this->vertexMapper().enrich(facetGridView, codimOneGridAdapter, verbose);
604 numBoundaryScvf_ = 0;
606 const auto numDof = numDofs();
607 boundaryDofIndices_.assign(numDof,
false);
608 interiorBoundaryDofIndices_.assign(numDof,
false);
609 facetIsOnInteriorBoundary_.assign(this->gridView().size(1),
false);
610 for (
const auto& element : elements(this->gridView()))
612 numScv_ += element.subEntities(dim);
613 numScvf_ += element.subEntities(dim-1);
615 const auto elementGeometry = element.geometry();
616 const auto refElement = referenceElement(elementGeometry);
620 std::vector<unsigned int> handledFacets;
621 for (
const auto& intersection : intersections(this->gridView(), element))
623 if (std::count(handledFacets.begin(), handledFacets.end(), intersection.indexInInside()))
626 handledFacets.push_back(intersection.indexInInside());
629 const auto isGeometry = intersection.geometry();
630 const auto numFaceCorners = isGeometry.corners();
631 const auto idxInInside = intersection.indexInInside();
632 const auto boundary = intersection.boundary();
634 std::vector<LocalIndexType> vIndicesLocal(numFaceCorners);
635 for (
int i = 0; i < numFaceCorners; ++i)
636 vIndicesLocal[i] =
static_cast<LocalIndexType
>(refElement.subEntity(idxInInside, 1, i, dim));
638 std::vector<GridIndexType> gridVertexIndices(numFaceCorners);
639 for (
int i = 0; i < numFaceCorners; ++i)
640 gridVertexIndices[i] = this->vertexMapper().vertexIndex(element, vIndicesLocal[i], dim);
646 if (boundary && intersection.neighbor())
647 DUNE_THROW(Dune::InvalidStateException,
"Periodic boundaries are not supported by the box facet coupling scheme");
649 if (isOnFacet || boundary)
651 numScvf_ += numFaceCorners;
652 numBoundaryScvf_ += int(boundary)*numFaceCorners;
655 for (
int i = 0; i < numFaceCorners; ++i)
657 const auto dofIndex = this->vertexMapper().subIndex(element, vIndicesLocal[i], dim);
658 if (boundary) boundaryDofIndices_[ dofIndex ] = boundary && !isOnFacet;
661 interiorBoundaryDofIndices_[ dofIndex ] =
true;
662 facetIsOnInteriorBoundary_[ facetMapper_.subIndex(element, idxInInside, 1) ] =
true;
670 const FeCache feCache_;
675 std::size_t numScvf_;
676 std::size_t numBoundaryScvf_;
679 std::vector<bool> boundaryDofIndices_;
680 std::vector<bool> interiorBoundaryDofIndices_;
683 typename Traits::FacetMapper facetMapper_;
684 std::vector<bool> facetIsOnInteriorBoundary_;
Base class for grid geometries.
Helper class constructing the dual grid finite volume geometries for the box discretizazion method.
const ElementMapper & elementMapper() const
Returns the mapper for elements to indices for constant grids.
Definition basegridgeometry.hh:112
Element element(GridIndexType eIdx) const
Get an element from a global element index.
Definition basegridgeometry.hh:142
const VertexMapper & vertexMapper() const
Returns the mapper for vertices to indices for constant grids.
Definition basegridgeometry.hh:106
const GridView & gridView() const
Return the gridView this grid geometry object lives on.
Definition basegridgeometry.hh:100
void update(const GridView &gridView)
Update all fvElementGeometries (call this after grid adaption).
Definition basegridgeometry.hh:88
Base class for the element-local finite volume geometry for box models in the context of models consi...
Definition multidomain/facet/box/fvelementgeometry.hh:36
typename Traits::SubControlVolume SubControlVolume
export the type of sub control volume
Definition multidomain/facet/box/fvgridgeometry.hh:443
BoxFacetCouplingFVGridGeometry(const GridView &gridView, const FacetGridView &facetGridView, const CodimOneGridAdapter &codimOneGridAdapter, bool verbose=false)
Constructor.
Definition multidomain/facet/box/fvgridgeometry.hh:457
std::size_t numScv() const
The total number of sub control volumes.
Definition multidomain/facet/box/fvgridgeometry.hh:474
std::size_t numScvf() const
The total number of sun control volume faces.
Definition multidomain/facet/box/fvgridgeometry.hh:478
GV GridView
export the grid view type
Definition multidomain/facet/box/fvgridgeometry.hh:453
DiscretizationMethods::Box DiscretizationMethod
export the discretization method this geometry belongs to
Definition multidomain/facet/box/fvgridgeometry.hh:437
std::size_t numDofs() const
The total number of degrees of freedom.
Definition multidomain/facet/box/fvgridgeometry.hh:487
void update(GridView &&gridView, const FacetGridView &facetGridView, const CodimOneGridAdapter &codimOneGridAdapter, bool verbose=false)
update all fvElementGeometries (call this after grid adaption)
Definition multidomain/facet/box/fvgridgeometry.hh:516
std::size_t numBoundaryScvf() const
Definition multidomain/facet/box/fvgridgeometry.hh:483
Dune::LagrangeLocalFiniteElementCache< CoordScalar, Scalar, dim, 1 > FeCache
export the finite element cache type
Definition multidomain/facet/box/fvgridgeometry.hh:451
std::span< const GridIndexType > periodicallyMappedDofs(GridIndexType dofIdx) const
The indices of the vertices / d.o.f.s on the other side of the periodic boundary.
Definition multidomain/facet/box/fvgridgeometry.hh:552
const FeCache & feCache() const
The finite element cache for creating local FE bases.
Definition multidomain/facet/box/fvgridgeometry.hh:527
typename Traits::VertexMapper DofMapper
export dof mapper type
Definition multidomain/facet/box/fvgridgeometry.hh:449
const DofMapper & dofMapper() const
Definition multidomain/facet/box/fvgridgeometry.hh:470
friend LocalView localView(const BoxFacetCouplingFVGridGeometry &gg)
local view of this object (constructed with the internal cache)
Definition multidomain/facet/box/fvgridgeometry.hh:556
static constexpr DiscretizationMethod discMethod
Definition multidomain/facet/box/fvgridgeometry.hh:438
typename Traits::template LocalView< ThisType, false > LocalView
export the type of the fv element geometry (the local view type)
Definition multidomain/facet/box/fvgridgeometry.hh:441
GridIndexType periodicallyMappedDof(GridIndexType dofIdx) const
The index of the vertex / d.o.f. on the other side of the periodic boundary.
Definition multidomain/facet/box/fvgridgeometry.hh:548
bool dofOnPeriodicBoundary(GridIndexType dofIdx) const
Periodic boundaries are not supported for the box facet coupling scheme.
Definition multidomain/facet/box/fvgridgeometry.hh:543
BoxFacetCouplingGridGeometryCache Cache
Definition multidomain/facet/box/fvgridgeometry.hh:583
typename Traits::SubControlVolumeFace SubControlVolumeFace
export the type of sub control volume
Definition multidomain/facet/box/fvgridgeometry.hh:445
Extrusion_t< Traits > Extrusion
export the type of extrusion
Definition multidomain/facet/box/fvgridgeometry.hh:447
bool dofOnBoundary(unsigned int dofIdx) const
If a d.o.f. is on the boundary.
Definition multidomain/facet/box/fvgridgeometry.hh:531
void update(const GridView &gridView, const FacetGridView &facetGridView, const CodimOneGridAdapter &codimOneGridAdapter, bool verbose=false)
update all fvElementGeometries (call this after grid adaption)
Definition multidomain/facet/box/fvgridgeometry.hh:504
bool dofOnInteriorBoundary(unsigned int dofIdx) const
If a d.o.f. is on an interior boundary.
Definition multidomain/facet/box/fvgridgeometry.hh:535
bool isOnInteriorBoundary(const Element &element, const Intersection &intersection) const
returns true if an intersection is on an interior boundary
Definition multidomain/facet/box/fvgridgeometry.hh:539
bool dofOnInteriorBoundary(GridIndexType dofIdx) const
If a d.o.f. is on an interior boundary.
Definition multidomain/facet/box/fvgridgeometry.hh:203
GridIndexType periodicallyMappedDof(GridIndexType dofIdx) const
The index of the vertex / d.o.f. on the other side of the periodic boundary.
Definition multidomain/facet/box/fvgridgeometry.hh:212
void update(const GridView &gridView, const FacetGridView &facetGridView, const CodimOneGridAdapter &codimOneGridAdapter, bool verbose=false)
update all fvElementGeometries (call this after grid adaption)
Definition multidomain/facet/box/fvgridgeometry.hh:174
Dune::LagrangeLocalFiniteElementCache< CoordScalar, Scalar, dim, 1 > FeCache
export the finite element cache type
Definition multidomain/facet/box/fvgridgeometry.hh:123
Extrusion_t< Traits > Extrusion
export the type of extrusion
Definition multidomain/facet/box/fvgridgeometry.hh:119
static constexpr DiscretizationMethod discMethod
Definition multidomain/facet/box/fvgridgeometry.hh:110
BoxFacetCouplingGridGeometryCache Cache
Definition multidomain/facet/box/fvgridgeometry.hh:264
std::span< const GridIndexType > periodicallyMappedDofs(GridIndexType dofIdx) const
The indices of the vertices / d.o.f.s on the other side of the periodic boundary.
Definition multidomain/facet/box/fvgridgeometry.hh:216
GV GridView
export the grid view type
Definition multidomain/facet/box/fvgridgeometry.hh:125
std::size_t numScv() const
The total number of sub control volumes.
Definition multidomain/facet/box/fvgridgeometry.hh:144
bool dofOnPeriodicBoundary(GridIndexType dofIdx) const
Periodic boundaries are not supported for the box facet coupling scheme.
Definition multidomain/facet/box/fvgridgeometry.hh:207
bool dofOnBoundary(GridIndexType dofIdx) const
If a d.o.f. is on the boundary.
Definition multidomain/facet/box/fvgridgeometry.hh:199
typename Traits::VertexMapper DofMapper
export dof mapper type
Definition multidomain/facet/box/fvgridgeometry.hh:121
std::size_t numBoundaryScvf() const
Definition multidomain/facet/box/fvgridgeometry.hh:153
const DofMapper & dofMapper() const
the vertex mapper is the dofMapper
Definition multidomain/facet/box/fvgridgeometry.hh:140
typename Traits::SubControlVolume SubControlVolume
export the type of sub control volume
Definition multidomain/facet/box/fvgridgeometry.hh:115
friend LocalView localView(const BoxFacetCouplingFVGridGeometry &gg)
local view of this object (constructed with the internal cache)
Definition multidomain/facet/box/fvgridgeometry.hh:220
std::size_t numScvf() const
The total number of sun control volume faces.
Definition multidomain/facet/box/fvgridgeometry.hh:148
void update(GridView &&gridView, const FacetGridView &facetGridView, const CodimOneGridAdapter &codimOneGridAdapter, bool verbose=false)
update all fvElementGeometries (call this after grid adaption)
Definition multidomain/facet/box/fvgridgeometry.hh:185
const FeCache & feCache() const
The finite element cache for creating local FE bases.
Definition multidomain/facet/box/fvgridgeometry.hh:195
std::size_t numDofs() const
The total number of degrees of freedom.
Definition multidomain/facet/box/fvgridgeometry.hh:157
BoxFacetCouplingFVGridGeometry(const GridView &gridView, const FacetGridView &facetGridView, const CodimOneGridAdapter &codimOneGridAdapter, bool verbose=false)
Constructor.
Definition multidomain/facet/box/fvgridgeometry.hh:129
typename Traits::template LocalView< ThisType, true > LocalView
export the type of the fv element geometry (the local view type)
Definition multidomain/facet/box/fvgridgeometry.hh:113
DiscretizationMethods::Box DiscretizationMethod
export the discretization method this geometry belongs to
Definition multidomain/facet/box/fvgridgeometry.hh:109
typename Traits::SubControlVolumeFace SubControlVolumeFace
export the type of sub control volume
Definition multidomain/facet/box/fvgridgeometry.hh:117
Base class for the finite volume geometry vector for box schemes in the context of coupled models whe...
Definition multidomain/facet/box/fvgridgeometry.hh:84
Class for a sub control volume face in the box method, i.e a part of the boundary of a sub control vo...
Definition multidomain/facet/box/subcontrolvolumeface.hh:39
Create sub control volumes and sub control volume face geometries.
Definition boxgeometryhelper.hh:262
the sub control volume for the box scheme
Definition discretization/box/subcontrolvolume.hh:58
Adapter that allows retrieving information on a d-dimensional grid for entities of a (d-1)-dimensiona...
Definition codimonegridadapter.hh:40
bool composeFacetElement(const IndexStorage &bulkVertexIndices) const
Returns true if a given set of bulk vertex indices make up a facet grid element.
Definition codimonegridadapter.hh:180
A vertex mapper that allows for enrichment of nodes. Indication on where to enrich the nodes is done ...
Definition vertexmapper.hh:126
the sub control volume for the box scheme
Helper classes to compute the integration elements.
BaseGridGeometry(std::shared_ptr< BaseImplementation > impl)
Constructor from a BaseImplementation.
Definition basegridgeometry.hh:72
The available discretization methods in Dumux.
Base class for the element-local finite volume geometry for box models in the context of models consi...
Base class for a sub control volume face of the box method in the context of of models considering co...
Definition cvfelocalresidual.hh:25
Dune::Std::detected_or_t< Dumux::BoxGeometryHelper< GV, GV::dimension, typename T::SubControlVolume, typename T::SubControlVolumeFace >, SpecifiesGeometryHelper, T > BoxFacetCouplingGeometryHelper_t
Definition multidomain/facet/box/fvgridgeometry.hh:41
typename T::GeometryHelper SpecifiesGeometryHelper
Definition basegridgeometry.hh:30
CVFE< CVFEMethods::PQ1 > Box
Definition method.hh:102
std::ranges::range auto scvs(const FVElementGeometry &fvGeometry, const LocalDof &localDof)
Definition localdof.hh:82
typename Extrusion< T >::type Extrusion_t
Convenience alias for obtaining the extrusion type.
Definition extrusion.hh:257
Definition common/pdesolver.hh:24
The default traits for the finite volume grid geometry of the box scheme with coupling occurring acro...
Definition multidomain/facet/box/fvgridgeometry.hh:57
BoxFacetCouplingFVElementGeometry< GridGeometry, enableCache > LocalView
Definition multidomain/facet/box/fvgridgeometry.hh:63
Dune::MultipleCodimMultipleGeomTypeMapper< GridView > FacetMapper
Definition multidomain/facet/box/fvgridgeometry.hh:70
BoxFacetCouplingSubControlVolumeFace< GridView > SubControlVolumeFace
Definition multidomain/facet/box/fvgridgeometry.hh:60
EnrichedVertexDofMapper< GridView > VertexMapper
Definition multidomain/facet/box/fvgridgeometry.hh:68
Dune::MultipleCodimMultipleGeomTypeMapper< GridView > ElementMapper
Definition multidomain/facet/box/fvgridgeometry.hh:66
BoxSubControlVolume< GridView > SubControlVolume
Definition multidomain/facet/box/fvgridgeometry.hh:59
typename GridView::IndexSet::IndexType GridIndex
Definition indextraits.hh:27
unsigned int LocalIndex
Definition indextraits.hh:28
A vertex mapper that allows for enrichment of nodes. Indication on where to enrich the nodes is done ...