| 1 |
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
| 2 |
// vi: set et ts=4 sw=2 sts=2: |
| 3 |
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 4 |
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception |
| 5 |
#ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS_CUBE_HH |
| 6 |
#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS_CUBE_HH |
| 7 |
|
| 8 |
#include "raviartthomas0cube2d.hh" |
| 9 |
#include "raviartthomas0cube3d.hh" |
| 10 |
#include "raviartthomas1cube2d.hh" |
| 11 |
#include "raviartthomas1cube3d.hh" |
| 12 |
#include "raviartthomas2cube2d.hh" |
| 13 |
#include "raviartthomas3cube2d.hh" |
| 14 |
#include "raviartthomas4cube2d.hh" |
| 15 |
|
| 16 |
/** |
| 17 |
* \file |
| 18 |
* \brief Convenience header that includes all available Raviart-Thomas |
| 19 |
* local finite elements for cubes. |
| 20 |
*/ |
| 21 |
|
| 22 |
namespace Dune |
| 23 |
{ |
| 24 |
/** |
| 25 |
* \brief Raviart-Thomas local finite elements for cubes. |
| 26 |
* |
| 27 |
* Convenience class to access all implemented Raviart-Thomas local |
| 28 |
* finite elements for cubes. |
| 29 |
* Generic Raviart-Thomas local finite elements for cubes like for |
| 30 |
* simpleces could be written. |
| 31 |
* |
| 32 |
* \ingroup RaviartThomas |
| 33 |
* |
| 34 |
* \tparam D type to represent the field in the domain. |
| 35 |
* \tparam R type to represent the field in the range. |
| 36 |
* \tparam dim dimension of the reference elements, must be 2 or 3. |
| 37 |
* \tparam order order of the element, depending on \a dim it can be 0, 1, or 2. |
| 38 |
*/ |
| 39 |
template<class D, class R, unsigned int dim, unsigned int order> |
| 40 |
class RaviartThomasCubeLocalFiniteElement; |
| 41 |
|
| 42 |
/** |
| 43 |
* \brief Raviart-Thomas local finite elements for cubes with dimension 2 and order 0. |
| 44 |
*/ |
| 45 |
template<class D, class R> |
| 46 |
class RaviartThomasCubeLocalFiniteElement<D, R, 2, 0> |
| 47 |
: public RT0Cube2DLocalFiniteElement<D, R> |
| 48 |
{ |
| 49 |
public: |
| 50 |
RaviartThomasCubeLocalFiniteElement() |
| 51 |
: RT0Cube2DLocalFiniteElement<D, R>::RT0Cube2DLocalFiniteElement() |
| 52 |
{} |
| 53 |
|
| 54 |
RaviartThomasCubeLocalFiniteElement(int s) |
| 55 |
: RT0Cube2DLocalFiniteElement<D, R>::RT0Cube2DLocalFiniteElement(s) |
| 56 |
{} |
| 57 |
}; |
| 58 |
|
| 59 |
/** |
| 60 |
* \brief Raviart-Thomas local finite elements for cubes with dimension 2 and order 1. |
| 61 |
*/ |
| 62 |
template<class D, class R> |
| 63 |
class RaviartThomasCubeLocalFiniteElement<D, R, 2, 1> |
| 64 |
: public RT1Cube2DLocalFiniteElement<D, R> |
| 65 |
{ |
| 66 |
public: |
| 67 |
RaviartThomasCubeLocalFiniteElement() |
| 68 |
: RT1Cube2DLocalFiniteElement<D, R>::RT1Cube2DLocalFiniteElement() |
| 69 |
{} |
| 70 |
|
| 71 |
RaviartThomasCubeLocalFiniteElement(int s) |
| 72 |
: RT1Cube2DLocalFiniteElement<D, R>::RT1Cube2DLocalFiniteElement(s) |
| 73 |
{} |
| 74 |
}; |
| 75 |
|
| 76 |
/** |
| 77 |
* \brief Raviart-Thomas local finite elements for cubes with dimension 2 and order 2. |
| 78 |
*/ |
| 79 |
template<class D, class R> |
| 80 |
class RaviartThomasCubeLocalFiniteElement<D, R, 2, 2> |
| 81 |
: public RT2Cube2DLocalFiniteElement<D, R> |
| 82 |
{ |
| 83 |
public: |
| 84 |
RaviartThomasCubeLocalFiniteElement() |
| 85 |
: RT2Cube2DLocalFiniteElement<D, R>::RT2Cube2DLocalFiniteElement() |
| 86 |
{} |
| 87 |
|
| 88 |
RaviartThomasCubeLocalFiniteElement(int s) |
| 89 |
: RT2Cube2DLocalFiniteElement<D, R>::RT2Cube2DLocalFiniteElement(s) |
| 90 |
{} |
| 91 |
}; |
| 92 |
|
| 93 |
/** |
| 94 |
* \brief Raviart-Thomas local finite elements for cubes with dimension 2 and order 3. |
| 95 |
*/ |
| 96 |
template<class D, class R> |
| 97 |
class RaviartThomasCubeLocalFiniteElement<D, R, 2, 3> |
| 98 |
: public RT3Cube2DLocalFiniteElement<D, R> |
| 99 |
{ |
| 100 |
public: |
| 101 |
RaviartThomasCubeLocalFiniteElement() |
| 102 |
: RT3Cube2DLocalFiniteElement<D, R>::RT3Cube2DLocalFiniteElement() |
| 103 |
{} |
| 104 |
|
| 105 |
RaviartThomasCubeLocalFiniteElement(int s) |
| 106 |
: RT3Cube2DLocalFiniteElement<D, R>::RT3Cube2DLocalFiniteElement(s) |
| 107 |
{} |
| 108 |
}; |
| 109 |
|
| 110 |
/** |
| 111 |
* \brief Raviart-Thomas local finite elements for cubes with dimension 2 and order 4. |
| 112 |
*/ |
| 113 |
template<class D, class R> |
| 114 |
class RaviartThomasCubeLocalFiniteElement<D, R, 2, 4> |
| 115 |
: public RT4Cube2DLocalFiniteElement<D, R> |
| 116 |
{ |
| 117 |
public: |
| 118 |
RaviartThomasCubeLocalFiniteElement() |
| 119 |
: RT4Cube2DLocalFiniteElement<D, R>::RT4Cube2DLocalFiniteElement() |
| 120 |
{} |
| 121 |
|
| 122 |
RaviartThomasCubeLocalFiniteElement(int s) |
| 123 |
: RT4Cube2DLocalFiniteElement<D, R>::RT4Cube2DLocalFiniteElement(s) |
| 124 |
{} |
| 125 |
}; |
| 126 |
|
| 127 |
/** |
| 128 |
* \brief Raviart-Thomas local finite elements for cubes with dimension 3 and order 0. |
| 129 |
*/ |
| 130 |
template<class D, class R> |
| 131 |
class RaviartThomasCubeLocalFiniteElement<D, R, 3, 0> |
| 132 |
: public RT0Cube3DLocalFiniteElement<D, R> |
| 133 |
{ |
| 134 |
public: |
| 135 |
RaviartThomasCubeLocalFiniteElement() |
| 136 |
: RT0Cube3DLocalFiniteElement<D, R>::RT0Cube3DLocalFiniteElement() |
| 137 |
{} |
| 138 |
|
| 139 |
RaviartThomasCubeLocalFiniteElement(int s) |
| 140 |
: RT0Cube3DLocalFiniteElement<D, R>::RT0Cube3DLocalFiniteElement(s) |
| 141 |
{} |
| 142 |
}; |
| 143 |
|
| 144 |
/** |
| 145 |
* \brief Raviart-Thomas local finite elements for cubes with dimension 3 and order 1. |
| 146 |
*/ |
| 147 |
template<class D, class R> |
| 148 |
class RaviartThomasCubeLocalFiniteElement<D, R, 3, 1> |
| 149 |
: public RT1Cube3DLocalFiniteElement<D, R> |
| 150 |
{ |
| 151 |
public: |
| 152 |
RaviartThomasCubeLocalFiniteElement() |
| 153 |
: RT1Cube3DLocalFiniteElement<D, R>::RT1Cube3DLocalFiniteElement() |
| 154 |
{} |
| 155 |
|
| 156 |
RaviartThomasCubeLocalFiniteElement(int s) |
| 157 |
: RT1Cube3DLocalFiniteElement<D, R>::RT1Cube3DLocalFiniteElement(s) |
| 158 |
{} |
| 159 |
}; |
| 160 |
} // namespace Dune |
| 161 |
|
| 162 |
#endif // #ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS_CUBE_HH |