44 dpo.dofs_per_object_exclusive = {{1}, {0}, {0, 0, 0, 0, 0}, {0}};
45 dpo.dofs_per_object_inclusive = {{1}, {2}, {4, 3, 3, 3, 3}, {5}};
46 dpo.object_index = {{}, {5}, {5}, {5}};
47 dpo.first_object_index_on_face = {{}, {4, 3, 3, 3, 3}, {4, 3, 3, 3, 3}};
63 unsigned int n_dofs = 0;
75template <
int dim,
int spacedim>
77 const unsigned int degree,
108 const auto face_reference_cell =
111 for (
const auto i : face_reference_cell.vertex_indices())
122template <
int dim,
int spacedim>
130 this->get_unit_support_points().
size());
134 for (
unsigned int i = 0; i < this->dofs_per_cell; ++i)
144template <
int dim,
int spacedim>
153template <
int dim,
int spacedim>
154std::unique_ptr<FiniteElement<dim, spacedim>>
157 return std::make_unique<FE_PyramidP<dim, spacedim>>(*this);
162template <
int dim,
int spacedim>
167 namebuf <<
"FE_PyramidP<" << dim <<
">(" << this->degree <<
")";
174template <
int dim,
int spacedim>
178 const unsigned int codim)
const
229 if (fe_nothing->is_dominating())
244template <
int dim,
int spacedim>
245std::vector<std::pair<unsigned int, unsigned int>>
260template <
int dim,
int spacedim>
261std::vector<std::pair<unsigned int, unsigned int>>
271 std::vector<std::pair<unsigned int, unsigned int>>
result;
273 for (
unsigned int i = 0; i < this->degree - 1; ++i)
274 result.emplace_back(i, i);
281template <
int dim,
int spacedim>
282std::vector<std::pair<unsigned int, unsigned int>>
285 const unsigned int face_no)
const
303 std::vector<std::pair<unsigned int, unsigned int>>
result;
305 for (
unsigned int i = 0; i < this->n_dofs_per_quad(
face_no); ++i)
306 result.emplace_back(i, i);
313template <
int dim,
int spacedim>
322template <
int dim,
int spacedim>
323std::unique_ptr<FiniteElement<dim, spacedim>>
326 return std::make_unique<FE_PyramidDGP<dim, spacedim>>(*this);
331template <
int dim,
int spacedim>
336 namebuf <<
"FE_PyramidDGP<" << dim <<
">(" << this->degree <<
")";
342#include "fe_pyramid_p.inst"
std::string get_name() const override
FE_PyramidDGP(const unsigned int degree)
std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
FE_PyramidP(const unsigned int degree)
std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other, const unsigned int face_no=0) const override
std::string get_name() const override
FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim) const override
FE_PyramidPoly(const unsigned int degree, const internal::GenericDoFsPerObject &dpos, const typename FiniteElementData< dim >::Conformity conformity)
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const override
const unsigned int degree
ReferenceCell reference_cell() const
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
std::vector< Point< dim > > unit_support_points
std_cxx20::ranges::iota_view< unsigned int, unsigned int > vertex_indices() const
unsigned int n_faces() const
ReferenceCell face_reference_cell(const unsigned int face_no) const
std_cxx20::ranges::iota_view< unsigned int, unsigned int > face_indices() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
#define AssertDimension(dim1, dim2)
#define AssertIndexRange(index, range)
@ either_element_can_dominate
@ other_element_dominates
@ neither_element_dominates
constexpr const ReferenceCell Pyramid
internal::GenericDoFsPerObject expand(const unsigned int dim, const std::vector< unsigned int > &dofs_per_object, const ReferenceCell reference_cell)