13#ifndef DUMUX_MULTDOMAIN_FACET_CC_MPFA_O_LOCAL_SUBCONTROLENTITIES_HH 
   14#define DUMUX_MULTDOMAIN_FACET_CC_MPFA_O_LOCAL_SUBCONTROLENTITIES_HH 
   18#include <dune/common/fvector.hh> 
   32template< 
class IvIndexSet, 
class Scalar, 
int dim, 
int dimWorld>
 
   58    template<
class MpfaHelper, 
class FVElementGeometry, 
class SubControlVolume, 
class IndexMap>
 
   60                                                  const FVElementGeometry& fvGeometry,
 
   61                                                  const SubControlVolume& scv,
 
   63                                                  const IvIndexSet& indexSet,
 
   64                                                  const IndexMap& scvfGridToLocalIndexMap)
 
   65    : ParentType(helper, fvGeometry, scv, localIndex, indexSet)
 
   68        const auto& nis = indexSet.nodalIndexSet();
 
   69        for (
unsigned int dir = 0; dir < 
myDimension; ++dir)
 
   70            localScvfIndices_[dir] = scvfGridToLocalIndexMap.at(nis.gridScvfIndex(this->localDofIndex(), dir));
 
 
   77        return localScvfIndices_[coordDir];
 
 
   81    std::array<LocalIndexType, dim> localScvfIndices_;
 
 
   91template< 
class IvIndexSet >
 
  104    using ParentType::ParentType;
 
  116    template< 
class SubControlVolumeFace >
 
  123    , isInteriorBoundary_(true)
 
  124    , coupledFacetLocalDofIndex_(coupledFacetLocalDof)
 
  125    , neighborLocalScvIndices_(localScvIndices)
 
 
  130    { assert(isInteriorBoundary_); 
return coupledFacetLocalDofIndex_; }
 
 
  140    bool isInteriorBoundary_{
false};
 
 
static constexpr int myDimension
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:43
CCMpfaOFacetCouplingInteractionVolumeLocalScv(const MpfaHelper &helper, const FVElementGeometry &fvGeometry, const SubControlVolume &scv, const LocalIndexType localIndex, const IvIndexSet &indexSet, const IndexMap &scvfGridToLocalIndexMap)
The constructor.
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:59
typename IVIndexSet::LocalIndexType LocalIndexType
LocalIndexType localScvfIndex(unsigned int coordDir) const
iv-local index of the coordir's scvf in this scv
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:74
CCMpfaOFacetCouplingInteractionVolumeLocalScv()=default
The default constructor.
CCMpfaOInteractionVolumeLocalScv()=default
The default constructor.
typename IvIndexSet::LocalIndexType LocalIndexType
Definition discretization/cellcentered/mpfa/omethod/localsubcontrolentities.hh:36
Classes for sub control entities of the mpfa-o method.
bool isOnInteriorBoundary() const
Returns true if this face is on an interior boundary.
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:137
CCMpfaOFacetCouplingInteractionVolumeLocalScvf(const SubControlVolumeFace &scvf, const ScvfNeighborLocalIndexSet &localScvIndices, const LocalIndexType localDofIdx, const bool isDirichlet, const LocalIndexType coupledFacetLocalDof)
The constructor for interior boundary faces.
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:117
LocalIndexType coupledFacetLocalDofIndex() const
Returns the iv-local dof index of the coupled facet element.
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:129
const ScvfNeighborLocalIndexSet & neighboringLocalScvIndices() const
Returns the local indices of the scvs neighboring this scvf.
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:133
CCMpfaOInteractionVolumeLocalScvf< IVIndexSet > ParentType
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:95
typename IVIndexSet::ScvfNeighborLocalIndexSet ScvfNeighborLocalIndexSet
Definition multidomain/facet/cellcentered/mpfa/localsubcontrolentities.hh:96
typename IVIndexSet::LocalIndexType LocalIndexType
const ScvfNeighborLocalIndexSet & neighboringLocalScvIndices() const
Returns the local indices of the scvs neighboring this scvf.
Definition discretization/cellcentered/mpfa/omethod/localsubcontrolentities.hh:164
typename IvIndexSet::GridIndexType GridIndexType
Definition discretization/cellcentered/mpfa/omethod/localsubcontrolentities.hh:131
bool isDirichlet() const
Definition discretization/cellcentered/mpfa/omethod/localsubcontrolentities.hh:167
CCMpfaOInteractionVolumeLocalScvf()=default
The default constructor.
typename IvIndexSet::LocalIndexType LocalIndexType
Definition discretization/cellcentered/mpfa/omethod/localsubcontrolentities.hh:132