35 get_dpo_vector_fe_wedge_p(
const unsigned int degree)
44 dpo.
first_object_index_on_face = {{}, {3, 3, 4, 4, 4}, {3, 3, 4, 4, 4}};
50 dpo.
object_index = {{}, {6}, {15, 15, 15, 16, 17}, {18}};
51 dpo.
first_object_index_on_face = {{}, {3, 3, 4, 4, 4}, {6, 6, 8, 8, 8}};
65 get_dpo_vector_fe_wedge_dgp(
const unsigned int degree)
67 unsigned int n_dofs = 0;
82template <
int dim,
int spacedim>
86 const bool prolongation_is_additive,
103 prolongation_is_additive),
140template <
int dim,
int spacedim>
145 std::vector<double> &nodal_values)
const
148 this->get_unit_support_points().size());
156 nodal_values[i] = support_point_values[i](0);
162template <
int dim,
int spacedim>
165 get_dpo_vector_fe_wedge_p(
degree),
172template <
int dim,
int spacedim>
173std::unique_ptr<FiniteElement<dim, spacedim>>
176 return std::make_unique<FE_WedgeP<dim, spacedim>>(*this);
181template <
int dim,
int spacedim>
185 std::ostringstream namebuf;
187 << this->degree <<
")";
189 return namebuf.str();
194template <
int dim,
int spacedim>
198 const unsigned int codim)
const
220 if (this->degree < fe_wp_other->
degree)
222 else if (this->degree == fe_wp_other->degree)
230 if (this->degree < fe_p_other->
degree)
232 else if (this->degree == fe_p_other->degree)
240 if (this->degree < fe_q_other->
degree)
242 else if (this->degree == fe_q_other->degree)
250 if (this->degree < fe_p_other->
degree)
252 else if (this->degree == fe_p_other->degree)
260 if (fe_nothing->is_dominating())
275template <
int dim,
int spacedim>
276std::vector<std::pair<unsigned int, unsigned int>>
293template <
int dim,
int spacedim>
294std::vector<std::pair<unsigned int, unsigned int>>
304 std::vector<std::pair<unsigned int, unsigned int>> identities;
308 const auto &face_support_points_other =
316 const unsigned int offset =
319 const unsigned int offset_other =
320 fe_other.
reference_cell().face_reference_cell(0).is_hyper_cube() ?
328 if (face_support_points[i + offset].distance(
329 face_support_points_other[j + offset_other]) < 1e-14)
330 identities.emplace_back(i, j);
337template <
int dim,
int spacedim>
338std::vector<std::pair<unsigned int, unsigned int>>
341 const unsigned int face_no)
const
345 std::vector<std::pair<unsigned int, unsigned int>> result;
346 unsigned int face_no_neighbor;
356 face_no_neighbor = 1;
358 face_no_neighbor = 0;
368 face_no_neighbor = 2;
370 face_no_neighbor = 0;
375 const auto &face_support_points_other =
379 const auto face_reference_cell =
381 Assert(face_reference_cell ==
385 const auto offset = face_reference_cell.n_vertices() +
388 const auto offset_other =
389 face_reference_cell.n_vertices() +
394 for (
unsigned int j = 0; j < fe_other.
n_dofs_per_quad(face_no_neighbor);
396 if (face_support_points[i + offset].distance(
397 face_support_points_other[j + offset_other]) < 1e-14)
398 result.emplace_back(i, j);
404template <
int dim,
int spacedim>
407 get_dpo_vector_fe_wedge_dgp(
degree),
414template <
int dim,
int spacedim>
415std::unique_ptr<FiniteElement<dim, spacedim>>
418 return std::make_unique<FE_WedgeDGP<dim, spacedim>>(*this);
423template <
int dim,
int spacedim>
427 std::ostringstream namebuf;
429 << this->degree <<
")";
431 return namebuf.str();
435#include "fe/fe_wedge_p.inst"
FE_Poly(const ScalarPolynomialsBase< dim > &poly_space, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
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
const unsigned int dofs_per_cell
FiniteElementData(const std::vector< unsigned int > &dofs_per_object, const unsigned int n_components, const unsigned int degree, const Conformity conformity=unknown, const BlockIndices &block_indices=BlockIndices())
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
FiniteElement(const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
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< Point< dim > > get_wedge_support_points(const unsigned int degree)
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