| 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_SIMPLEX_HH |
| 6 |
#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS_SIMPLEX_HH |
| 7 |
|
| 8 |
#include <dune/localfunctions/utility/localfiniteelement.hh> |
| 9 |
#include "raviartthomassimplex/raviartthomassimplexbasis.hh" |
| 10 |
|
| 11 |
/** |
| 12 |
* \file |
| 13 |
* \brief Raviart-Thomas local finite elements of arbitrary order |
| 14 |
* for simplices of arbitrary dimension. |
| 15 |
*/ |
| 16 |
|
| 17 |
namespace Dune |
| 18 |
{ |
| 19 |
/** |
| 20 |
* \brief Raviart-Thomas local finite elements of arbitrary order |
| 21 |
* for simplices of arbitrary dimension. |
| 22 |
* |
| 23 |
* These generic local finite elements are only available for |
| 24 |
* simplex geometry types. The extension to cube and prism |
| 25 |
* elements could be added. |
| 26 |
* |
| 27 |
* \ingroup RaviartThomas |
| 28 |
* |
| 29 |
* \tparam dimDomain dimension of reference elements |
| 30 |
* \tparam D domain for basis functions |
| 31 |
* \tparam R range for basis functions |
| 32 |
* \tparam SF storage field for basis matrix |
| 33 |
* \tparam CF compute field for basis matrix |
| 34 |
*/ |
| 35 |
template<unsigned int dimDomain, class D, class R, |
| 36 |
class SF=R, class CF=SF> |
| 37 |
class RaviartThomasSimplexLocalFiniteElement |
| 38 |
: public GenericLocalFiniteElement<RaviartThomasBasisFactory<dimDomain, D, R, SF, CF>, |
| 39 |
RaviartThomasCoefficientsFactory<dimDomain>, |
| 40 |
RaviartThomasL2InterpolationFactory<dimDomain, SF> > |
| 41 |
{ |
| 42 |
typedef GenericLocalFiniteElement<RaviartThomasBasisFactory<dimDomain, D, R, SF, CF>, |
| 43 |
RaviartThomasCoefficientsFactory<dimDomain>, |
| 44 |
RaviartThomasL2InterpolationFactory<dimDomain, SF> > Base; |
| 45 |
public: |
| 46 |
using typename Base::Traits; |
| 47 |
|
| 48 |
/** \todo Please doc me */ |
| 49 |
RaviartThomasSimplexLocalFiniteElement(const GeometryType >, unsigned int order) |
| 50 |
: Base(gt, order) |
| 51 |
{} |
| 52 |
}; |
| 53 |
} // namespace Dune |
| 54 |
|
| 55 |
#endif // #ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS_SIMPLEX_HH |