12#ifndef DUMUX_DISCRETIZATION_SUBCONTROLVOLUMEFACEBASE_HH
13#define DUMUX_DISCRETIZATION_SUBCONTROLVOLUMEFACEBASE_HH
14#warning "This header is deprecated and will be removed after release 3.11"
17#include <dune/common/fvector.hh>
28template<
class Imp,
class ScvfGeometryTraits>
31 using Implementation = Imp;
32 using GridIndexType =
typename ScvfGeometryTraits::GridIndexType;
33 using Scalar =
typename ScvfGeometryTraits::Scalar;
44 return asImp_().center();
51 return asImp_().ipGlobal();
57 return asImp_().area();
63 return asImp_().boundary();
69 return asImp_().unitOuterNormal();
75 return asImp_().insideScvIdx();
83 return asImp_().outsideScvIdx(i);
89 return asImp_().index();
93 const Implementation& asImp_()
const
94 {
return *
static_cast<const Implementation*
>(
this); }
96 Implementation& asImp_()
97 {
return *
static_cast<Implementation*
>(
this); }
Base class for a sub control volume face, i.e a part of the boundary of a sub control volume we compu...
Definition: subcontrolvolumefacebase.hh:30
GridIndexType index() const
The global index of this sub control volume face.
Definition: subcontrolvolumefacebase.hh:87
GlobalPosition unitOuterNormal() const
the unit outward pointing normal on the scv face
Definition: subcontrolvolumefacebase.hh:67
GridIndexType insideScvIdx() const
index of the inside sub control volume for spatial param evaluation
Definition: subcontrolvolumefacebase.hh:73
bool boundary() const
returns boolean if the sub control volume face is on the boundary
Definition: subcontrolvolumefacebase.hh:61
typename ScvfGeometryTraits::GlobalPosition GlobalPosition
export the type used for global coordinates
Definition: subcontrolvolumefacebase.hh:37
Scalar area() const
The area of the sub control volume face.
Definition: subcontrolvolumefacebase.hh:55
GlobalPosition ipGlobal() const
The integration point for flux evaluations in global coordinates.
Definition: subcontrolvolumefacebase.hh:48
GridIndexType outsideScvIdx(int i=0) const
Definition: subcontrolvolumefacebase.hh:81
GlobalPosition center() const
The center of the sub control volume face.
Definition: subcontrolvolumefacebase.hh:42
ScvfGeometryTraits Traits
state the traits public and thus export all types
Definition: subcontrolvolumefacebase.hh:39