| 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_BREZZIDOUGLASMARINI_BREZZIDOUGLASMARINISIMPLEX_HH |
| 6 | #define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI_BREZZIDOUGLASMARINISIMPLEX_HH |
| 7 | |
| 8 | #include <dune/localfunctions/brezzidouglasmarini/brezzidouglasmarini1simplex2d.hh> |
| 9 | #include <dune/localfunctions/brezzidouglasmarini/brezzidouglasmarini2simplex2d.hh> |
| 10 | |
| 11 | |
| 12 | namespace Dune |
| 13 | { |
| 14 | /** |
| 15 | * \brief Brezzi-Douglas-Marini local finite element for simplices |
| 16 | * |
| 17 | * \tparam D Number type to represent domain coordinates |
| 18 | * \tparam R Number type to represent shape function values |
| 19 | * \tparam dim Dimension of the reference elements, currently only 2 is supported |
| 20 | * \tparam order Polynomial order of the element |
| 21 | */ |
| 22 | template<class D, class R, unsigned int dim, unsigned int order> |
| 23 | class BrezziDouglasMariniSimplexLocalFiniteElement; |
| 24 | |
| 25 | /** |
| 26 | * \brief Brezzi-Douglas-Marini local finite elements for simplices with dimension 2 and order 1. |
| 27 | */ |
| 28 | template<class D, class R> |
| 29 | class BrezziDouglasMariniSimplexLocalFiniteElement<D, R, 2, 1> |
| 30 | : public BDM1Simplex2DLocalFiniteElement<D, R> |
| 31 | { |
| 32 | public: |
| 33 | /** \brief Default constructor */ |
| 34 | BrezziDouglasMariniSimplexLocalFiniteElement() |
| 35 | {} |
| 36 | |
| 37 | /** |
| 38 | * \brief Constructor with a set of edge orientations |
| 39 | * |
| 40 | * \param s Bitfield of size 3 giving the orientations of the three element edges |
| 41 | */ |
| 42 | BrezziDouglasMariniSimplexLocalFiniteElement(int s) |
| 43 | : BDM1Simplex2DLocalFiniteElement<D, R>::BDM1Simplex2DLocalFiniteElement(s) |
| 44 | {} |
| 45 | }; |
| 46 | |
| 47 | /** |
| 48 | * \brief Brezzi-Douglas-Marini local finite elements for simplices with dimension 2 and order 2. |
| 49 | */ |
| 50 | template<class D, class R> |
| 51 | class BrezziDouglasMariniSimplexLocalFiniteElement<D, R, 2, 2> |
| 52 | : public BDM2Simplex2DLocalFiniteElement<D, R> |
| 53 | { |
| 54 | public: |
| 55 | /** \brief Default constructor */ |
| 56 | BrezziDouglasMariniSimplexLocalFiniteElement() |
| 57 | {} |
| 58 | |
| 59 | /** |
| 60 | * \brief Constructor with a set of edge orientations |
| 61 | * |
| 62 | * \param s Bitfield of size 3 giving the orientations of the three element edges |
| 63 | */ |
| 64 | BrezziDouglasMariniSimplexLocalFiniteElement(int s) |
| 65 | : BDM2Simplex2DLocalFiniteElement<D, R>::BDM2Simplex2DLocalFiniteElement(s) |
| 66 | {} |
| 67 | }; |
| 68 | |
| 69 | } // namespace Dune |
| 70 | |
| 71 | #endif // #ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI_BREZZIDOUGLASMARINISIMPLEX_HH |