35 get_dpo_vector_fe_wedge_p(
const unsigned int degree)
41 const unsigned int n_dofs_total =
42 (degree + 1) * (degree + 1) * (degree + 2) / 2;
44 const unsigned int n_dofs_per_line = degree - 1;
46 const unsigned int n_dofs_per_tri =
47 degree > 1 ? (degree - 2) * (degree - 1) / 2 : 0;
49 const unsigned int n_dofs_per_quad = (degree - 1) * (degree - 1);
51 const unsigned int n_dof_per_volume =
52 n_dofs_total - 6 - 9 * n_dofs_per_line - 2 * n_dofs_per_tri -
55 const unsigned int n_dof_per_tri_inclusive =
56 (degree + 1) * (degree + 2) / 2;
58 const unsigned int n_dofs_per_quad_inclusive = (degree + 1) * (degree + 1);
70 {n_dofs_per_line + 2},
71 {n_dof_per_tri_inclusive,
72 n_dof_per_tri_inclusive,
73 n_dofs_per_quad_inclusive,
74 n_dofs_per_quad_inclusive,
75 n_dofs_per_quad_inclusive},
81 {6 + 9 * n_dofs_per_line,
82 6 + 9 * n_dofs_per_line + n_dofs_per_tri,
83 6 + 9 * n_dofs_per_line + 2 * n_dofs_per_tri,
84 6 + 9 * n_dofs_per_line + 2 * n_dofs_per_tri + n_dofs_per_quad,
85 6 + 9 * n_dofs_per_line + 2 * n_dofs_per_tri + 2 * n_dofs_per_quad},
86 {6 + 9 * n_dofs_per_line + 2 * n_dofs_per_tri + 3 * n_dofs_per_quad}};
90 {3 + 3 * n_dofs_per_line,
91 3 + 3 * n_dofs_per_line,
92 4 + 4 * n_dofs_per_line,
93 4 + 4 * n_dofs_per_line,
94 4 + 4 * n_dofs_per_line}};
103 get_dpo_vector_fe_wedge_dgp(
const unsigned int degree)
107 const unsigned int n_dofs = (degree + 1) * (degree + 1) * (degree + 2) / 2;
115template <
int dim,
int spacedim>
117 const unsigned int degree,
119 const bool prolongation_is_additive,
136 prolongation_is_additive),
173template <
int dim,
int spacedim>
178 std::vector<double> &nodal_values)
const
181 this->get_unit_support_points().size());
185 for (
unsigned int i = 0; i < this->dofs_per_cell; ++i)
189 nodal_values[i] = support_point_values[i](0);
195template <
int dim,
int spacedim>
198 get_dpo_vector_fe_wedge_p(degree),
205template <
int dim,
int spacedim>
206std::unique_ptr<FiniteElement<dim, spacedim>>
209 return std::make_unique<FE_WedgeP<dim, spacedim>>(*this);
214template <
int dim,
int spacedim>
218 std::ostringstream namebuf;
220 << this->degree <<
")";
222 return namebuf.str();
227template <
int dim,
int spacedim>
231 const unsigned int codim)
const
253 if (this->degree < fe_wp_other->degree)
255 else if (this->degree == fe_wp_other->degree)
263 if (this->degree < fe_p_other->degree)
265 else if (this->degree == fe_p_other->degree)
273 if (this->degree < fe_q_other->degree)
275 else if (this->degree == fe_q_other->degree)
283 if (this->degree < fe_p_other->degree)
285 else if (this->degree == fe_p_other->degree)
293 if (fe_nothing->is_dominating())
308template <
int dim,
int spacedim>
309std::vector<std::pair<unsigned int, unsigned int>>
326template <
int dim,
int spacedim>
327std::vector<std::pair<unsigned int, unsigned int>>
337 std::vector<std::pair<unsigned int, unsigned int>> identities;
340 const auto &face_support_points = this->get_unit_face_support_points(0);
341 const auto &face_support_points_other =
349 const unsigned int offset =
350 this->reference_cell().face_reference_cell(0).n_vertices();
352 const unsigned int offset_other =
353 fe_other.
reference_cell().face_reference_cell(0).is_hyper_cube() ?
359 for (
unsigned int i = 0; i < this->n_dofs_per_line(); ++i)
361 if (face_support_points[i + offset].distance(
362 face_support_points_other[j + offset_other]) < 1e-14)
363 identities.emplace_back(i, j);
370template <
int dim,
int spacedim>
371std::vector<std::pair<unsigned int, unsigned int>>
374 const unsigned int face_no)
const
378 std::vector<std::pair<unsigned int, unsigned int>> result;
379 unsigned int face_no_neighbor;
389 face_no_neighbor = 1;
391 face_no_neighbor = 0;
401 face_no_neighbor = 2;
403 face_no_neighbor = 0;
407 const auto &face_support_points = this->get_unit_face_support_points(face_no);
408 const auto &face_support_points_other =
412 const auto face_reference_cell =
413 this->reference_cell().face_reference_cell(face_no);
414 Assert(face_reference_cell ==
418 const auto offset = face_reference_cell.n_vertices() +
419 face_reference_cell.n_lines() * this->n_dofs_per_line();
421 const auto offset_other =
422 face_reference_cell.n_vertices() +
426 for (
unsigned int i = 0; i < this->n_dofs_per_quad(face_no); ++i)
427 for (
unsigned int j = 0; j < fe_other.
n_dofs_per_quad(face_no_neighbor);
429 if (face_support_points[i + offset].distance(
430 face_support_points_other[j + offset_other]) < 1e-14)
431 result.emplace_back(i, j);
437template <
int dim,
int spacedim>
440 get_dpo_vector_fe_wedge_dgp(degree),
447template <
int dim,
int spacedim>
448std::unique_ptr<FiniteElement<dim, spacedim>>
451 return std::make_unique<FE_WedgeDGP<dim, spacedim>>(*this);
456template <
int dim,
int spacedim>
460 std::ostringstream namebuf;
462 << this->degree <<
")";
464 return namebuf.str();
468#include "fe/fe_wedge_p.inst"
std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
std::string get_name() const override
FE_WedgeDGP(const unsigned int degree)
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
FE_WedgeP(const unsigned int degree)
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_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim) const override
std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
std::string get_name() const override
FE_WedgePoly(const unsigned int degree, const internal::GenericDoFsPerObject &dpos, const bool prolongation_is_additive, 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
unsigned int n_dofs_per_line() const
unsigned int n_dofs_per_quad(unsigned int face_no=0) const
ReferenceCell< dim > reference_cell() const
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
const std::vector< Point< dim > > & get_unit_support_points() const
const std::vector< Point< dim - 1 > > & get_unit_face_support_points(const unsigned int face_no=0) const
std::vector< Point< dim > > unit_support_points
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_ASSERT_UNREACHABLE()
#define DEAL_II_NOT_IMPLEMENTED()
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
#define AssertDimension(dim1, dim2)
#define AssertIndexRange(index, range)
static ::ExceptionBase & ExcInternalError()
@ either_element_can_dominate
@ other_element_dominates
@ neither_element_dominates
constexpr ReferenceCell< 2 > Quadrilateral
constexpr ReferenceCell< 2 > Triangle
constexpr ReferenceCell< 3 > Wedge
std::string dim_string(const int dim, const int spacedim)
template internal::GenericDoFsPerObject expand< 3 >(const std::vector< unsigned int > &dofs_per_object, const ReferenceCell< 3 > cell_type)
std::vector< std::vector< unsigned int > > object_index
std::vector< std::vector< unsigned int > > first_object_index_on_face
std::vector< std::vector< unsigned int > > dofs_per_object_inclusive
std::vector< std::vector< unsigned int > > dofs_per_object_exclusive