version 3.11-dev
subcontrolvolumefacebase.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightText: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
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"
15
16#include <utility>
17#include <dune/common/fvector.hh>
18
19namespace Dumux {
20
28template<class Imp, class ScvfGeometryTraits>
29class [[deprecated("Will be removed after 3.11")]] SubControlVolumeFaceBase
30{
31 using Implementation = Imp;
32 using GridIndexType = typename ScvfGeometryTraits::GridIndexType;
33 using Scalar = typename ScvfGeometryTraits::Scalar;
34
35public:
37 using GlobalPosition = typename ScvfGeometryTraits::GlobalPosition;
39 using Traits = ScvfGeometryTraits;
40
43 {
44 return asImp_().center();
45 }
46
49 {
50 // Return center for now
51 return asImp_().ipGlobal();
52 }
53
55 Scalar area() const
56 {
57 return asImp_().area();
58 }
59
61 bool boundary() const
62 {
63 return asImp_().boundary();
64 }
65
68 {
69 return asImp_().unitOuterNormal();
70 }
71
73 GridIndexType insideScvIdx() const
74 {
75 return asImp_().insideScvIdx();
76 }
77
81 GridIndexType outsideScvIdx(int i = 0) const
82 {
83 return asImp_().outsideScvIdx(i);
84 }
85
87 GridIndexType index() const
88 {
89 return asImp_().index();
90 }
91
92private:
93 const Implementation& asImp_() const
94 { return *static_cast<const Implementation*>(this); }
95
96 Implementation& asImp_()
97 { return *static_cast<Implementation*>(this); }
98};
99
100} // end namespace Dumux
101
102#endif
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
Definition: adapt.hh:17