| 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_BREZZIDOUGLASMARINICUBE_HH |
| 6 | #define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI_BREZZIDOUGLASMARINICUBE_HH |
| 7 | |
| 8 | #include <dune/localfunctions/brezzidouglasmarini/brezzidouglasmarini1cube2d.hh> |
| 9 | #include <dune/localfunctions/brezzidouglasmarini/brezzidouglasmarini1cube3d.hh> |
| 10 | #include <dune/localfunctions/brezzidouglasmarini/brezzidouglasmarini2cube2d.hh> |
| 11 | |
| 12 | |
| 13 | namespace Dune |
| 14 | { |
| 15 | /** |
| 16 | * \brief Brezzi-Douglas-Marini local finite element for cubes |
| 17 | * |
| 18 | * \tparam D Number type to represent domain coordinates |
| 19 | * \tparam R Number type to represent shape function values |
| 20 | * \tparam dim Dimension of the reference elements, must be 2 or 3 |
| 21 | * \tparam order Polynomial order of the element |
| 22 | */ |
| 23 | template<class D, class R, unsigned int dim, unsigned int order> |
| 24 | class BrezziDouglasMariniCubeLocalFiniteElement; |
| 25 | |
| 26 | /** |
| 27 | * \brief Brezzi-Douglas-Marini local finite elements for cubes with dimension 2 and order 1. |
| 28 | */ |
| 29 | template<class D, class R> |
| 30 | class BrezziDouglasMariniCubeLocalFiniteElement<D, R, 2, 1> |
| 31 | : public BDM1Cube2DLocalFiniteElement<D, R> |
| 32 | { |
| 33 | public: |
| 34 | /** \brief Default constructor */ |
| 35 | BrezziDouglasMariniCubeLocalFiniteElement() |
| 36 | {} |
| 37 | |
| 38 | /** |
| 39 | * \brief Constructor with a set of edge orientations |
| 40 | * |
| 41 | * \param s Bitfield of size 4 giving the orientations of the four element edges |
| 42 | */ |
| 43 | BrezziDouglasMariniCubeLocalFiniteElement(int s) |
| 44 | : BDM1Cube2DLocalFiniteElement<D, R>::BDM1Cube2DLocalFiniteElement(s) |
| 45 | {} |
| 46 | }; |
| 47 | |
| 48 | /** |
| 49 | * \brief Brezzi-Douglas-Marini local finite elements for cubes with dimension 2 and order 2. |
| 50 | */ |
| 51 | template<class D, class R> |
| 52 | class BrezziDouglasMariniCubeLocalFiniteElement<D, R, 2, 2> |
| 53 | : public BDM2Cube2DLocalFiniteElement<D, R> |
| 54 | { |
| 55 | public: |
| 56 | /** \brief Default constructor */ |
| 57 | BrezziDouglasMariniCubeLocalFiniteElement() |
| 58 | {} |
| 59 | |
| 60 | /** |
| 61 | * \brief Constructor with a set of edge orientations |
| 62 | * |
| 63 | * \param s Bitfield of size 4 giving the orientations of the four element edges |
| 64 | */ |
| 65 | BrezziDouglasMariniCubeLocalFiniteElement(int s) |
| 66 | : BDM2Cube2DLocalFiniteElement<D, R>::BDM2Cube2DLocalFiniteElement(s) |
| 67 | {} |
| 68 | }; |
| 69 | |
| 70 | /** |
| 71 | * \brief Brezzi-Douglas-Marini local finite elements for cubes with dimension 3 and order 1. |
| 72 | */ |
| 73 | template<class D, class R> |
| 74 | class BrezziDouglasMariniCubeLocalFiniteElement<D, R, 3, 1> |
| 75 | : public BDM1Cube3DLocalFiniteElement<D, R> |
| 76 | { |
| 77 | public: |
| 78 | /** \brief Default constructor */ |
| 79 | BrezziDouglasMariniCubeLocalFiniteElement() |
| 80 | {} |
| 81 | |
| 82 | /** |
| 83 | * \brief Constructor with a set of edge orientations |
| 84 | * |
| 85 | * \param s Bitfield of size 6 giving the orientations of the six element facets |
| 86 | */ |
| 87 | BrezziDouglasMariniCubeLocalFiniteElement(int s) |
| 88 | : BDM1Cube3DLocalFiniteElement<D, R>::BDM1Cube3DLocalFiniteElement(s) |
| 89 | {} |
| 90 | }; |
| 91 | |
| 92 | } // namespace Dune |
| 93 | |
| 94 | #endif // #ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI_BREZZIDOUGLASMARINICUBE_HH |