// ------------------------------------------------------------------------ // // SPDX-License-Identifier: LGPL-2.1-or-later // Copyright (C) 2021 - 2024 by the deal.II authors // // This file is part of the deal.II library. // // Part of the source code is dual licensed under Apache-2.0 WITH // LLVM-exception OR LGPL-2.1-or-later. Detailed license information // governing the source code and code contributions can be found in // LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. // // ------------------------------------------------------------------------ #ifndef dealii_fe_fe_p_pyramids_h #define dealii_fe_fe_p_pyramids_h #include #include #include DEAL_II_NAMESPACE_OPEN /** * Base class of FE_PyramidP and FE_PyramidDGP. * * @note Only implemented for 3d. * * Also see * @ref simplex "Simplex support". */ template class FE_PyramidPoly : public dealii::FE_Poly { public: /** * Constructor. */ FE_PyramidPoly(const unsigned int degree, const internal::GenericDoFsPerObject &dpos, const typename FiniteElementData::Conformity conformity); /** * @copydoc dealii::FiniteElement::convert_generalized_support_point_values_to_dof_values() */ virtual void convert_generalized_support_point_values_to_dof_values( const std::vector> &support_point_values, std::vector &nodal_values) const override; }; /** * Implementation of a scalar Lagrange finite element on a pyramid that yields * the finite element space of continuous, piecewise polynomials of * degree $k$. The corresponding element on simplex (triangular or tetrahedral) * cells is FE_SimplexP, on hypercube cells it is FE_Q, and * on wedges it is FE_WedgeP. * * @note Currently, only linear polynomials (degree=1) are implemented. See * also the documentation of ScalarLagrangePolynomialPyramid. * * Also see * @ref simplex "Simplex support". */ template class FE_PyramidP : public FE_PyramidPoly { public: /** * Constructor. */ FE_PyramidP(const unsigned int degree); /** * @copydoc dealii::FiniteElement::clone() */ std::unique_ptr> clone() const override; /** * Return a string that uniquely identifies a finite element. This class * returns FE_PyramidP(degree), with @p dim and @p degree * replaced by appropriate values. */ std::string get_name() const override; /** * @copydoc dealii::FiniteElement::compare_for_domination() */ FiniteElementDomination::Domination compare_for_domination(const FiniteElement &fe_other, const unsigned int codim) const override; /** * @copydoc dealii::FiniteElement::hp_vertex_dof_identities() */ std::vector> hp_vertex_dof_identities( const FiniteElement &fe_other) const override; /** * @copydoc dealii::FiniteElement::hp_line_dof_identities() */ std::vector> hp_line_dof_identities( const FiniteElement &fe_other) const override; /** * @copydoc dealii::FiniteElement::hp_quad_dof_identities() */ std::vector> hp_quad_dof_identities(const FiniteElement &fe_other, const unsigned int face_no = 0) const override; }; /** * Implementation of a scalar Lagrange finite element on a pyramid that yields * the finite element space of discontinuous, piecewise polynomials of * degree $k$. * * @note Currently, only linear polynomials (degree=1) are implemented. See * also the documentation of ScalarLagrangePolynomialPyramid. * * Also see * @ref simplex "Simplex support". */ template class FE_PyramidDGP : public FE_PyramidPoly { public: /** * Constructor. */ FE_PyramidDGP(const unsigned int degree); /** * @copydoc dealii::FiniteElement::clone() */ std::unique_ptr> clone() const override; /** * Return a string that uniquely identifies a finite element. This class * returns FE_PyramidDGP(degree), with @p dim and @p degree * replaced by appropriate values. */ std::string get_name() const override; }; DEAL_II_NAMESPACE_CLOSE #endif