24#ifndef DUMUX_BOX_ELEMENT_BOUNDARY_TYPES_HH
25#define DUMUX_BOX_ELEMENT_BOUNDARY_TYPES_HH
29#include <dune/common/deprecated.hh>
51 template<
class Problem,
class Element,
class FVElementGeometry>
53 const Element &element,
54 const FVElementGeometry &fvGeometry)
56 using GridGeometry =
typename FVElementGeometry::GridGeometry;
57 using GridView =
typename GridGeometry::GridView;
65 for (
const auto& scv : scvs(fvGeometry))
67 int scvIdxLocal = scv.localDofIndex();
70 if (fvGeometry.gridGeometry().dofOnBoundary(scv.dofIndex()))
76DUNE_NO_DEPRECATED_BEGIN
101 [[deprecated(
"Will be removed after release 3.4")]]
This class stores an array of BoundaryTypes objects.
Definition: box/elementboundarytypes.hh:39
std::vector< BoundaryTypes > vertexBCTypes_
Definition: box/elementboundarytypes.hh:116
bool hasOutflow() const
Returns whether the element potentially features an outflow boundary segment.
Definition: box/elementboundarytypes.hh:102
BTypes BoundaryTypes
Definition: box/elementboundarytypes.hh:41
bool hasDirichlet_
Definition: box/elementboundarytypes.hh:117
void update(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry)
Update the boundary types for all vertices of an element.
Definition: box/elementboundarytypes.hh:52
const BoundaryTypes & operator[](std::size_t i) const
Definition: box/elementboundarytypes.hh:109
bool hasDirichlet() const
Returns whether the element has a vertex which contains a Dirichlet value.
Definition: box/elementboundarytypes.hh:87
bool hasNeumann_
Definition: box/elementboundarytypes.hh:118
bool hasNeumann() const
Returns whether the element potentially features a Neumann boundary segment.
Definition: box/elementboundarytypes.hh:94
bool hasOutflow_
Definition: box/elementboundarytypes.hh:119