// ------------------------------------------------------------------------ // // 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_wedge_h #define dealii_fe_fe_p_wedge_h #include #include #include DEAL_II_NAMESPACE_OPEN /** * Base class of FE_WedgeP and FE_WedgeDGP. * * @note Only implemented for 3d. * * Also see * @ref simplex "Simplex support". */ template class FE_WedgePoly : public dealii::FE_Poly { public: /** * Constructor. */ FE_WedgePoly(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 wedge 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 pyramids it is FE_PyramidP. * * @note Currently, only linear (degree=1) and quadratic polynomials * (degree=2) are implemented. See also the documentation of * ScalarLagrangePolynomialWedge. * * Also see * @ref simplex "Simplex support". */ template class FE_WedgeP : public FE_WedgePoly { public: /** * Constructor. */ FE_WedgeP(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_WedgeP(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 wedge that yields * the finite element space of discontinuous, piecewise polynomials of * degree $k$. * * @note Currently, only linear (degree=1) and quadratic polynomials * (degree=2) are implemented. See also the documentation of * ScalarLagrangePolynomialWedge. * * Also see * @ref simplex "Simplex support". */ template class FE_WedgeDGP : public FE_WedgePoly { public: /** * Constructor. */ FE_WedgeDGP(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_WedgeDGP(degree), with @p dim and @p degree * replaced by appropriate values. */ std::string get_name() const override; }; DEAL_II_NAMESPACE_CLOSE #endif