35template <
int dim,
int spacedim>
49 ExcMessage(
"FE_Trace can only be used for polynomial degrees "
50 "greater than zero"));
56 for (
unsigned int face_no = 0; face_no < this->
n_unique_faces(); ++face_no)
58 fe_q.get_unit_face_support_points(face_no);
73template <
int dim,
int spacedim>
74std::unique_ptr<FiniteElement<dim, spacedim>>
77 return std::make_unique<FE_TraceQ<dim, spacedim>>(this->degree);
82template <
int dim,
int spacedim>
90 std::ostringstream namebuf;
92 << this->degree <<
")";
99template <
int dim,
int spacedim>
102 const unsigned int shape_index,
103 const unsigned int face_index)
const
113 return fe_q.has_support_on_face(shape_index, face_index);
118template <
int dim,
int spacedim>
119std::pair<Table<2, bool>, std::vector<unsigned int>>
123 for (
unsigned int i = 0; i < this->n_dofs_per_cell(); ++i)
124 constant_modes(0, i) =
true;
125 return std::pair<Table<2, bool>, std::vector<unsigned int>>(
126 constant_modes, std::vector<unsigned int>(1, 0));
129template <
int dim,
int spacedim>
134 std::vector<double> &nodal_values)
const
137 this->get_unit_support_points().size());
141 for (
unsigned int i = 0; i < this->n_dofs_per_cell(); ++i)
145 nodal_values[i] = support_point_values[i](0);
150template <
int dim,
int spacedim>
151std::vector<unsigned int>
158 std::vector<unsigned int> dpo(dim + 1, 1U);
161 for (
unsigned int i = 1; i < dim; ++i)
162 dpo[i] = dpo[i - 1] * (deg - 1);
168template <
int dim,
int spacedim>
172 return fe_q.hp_constraints_are_implemented();
176template <
int dim,
int spacedim>
180 const unsigned int codim)
const
190 if (this->degree < fe_traceq_other->degree)
192 else if (this->degree == fe_traceq_other->degree)
200 if (fe_nothing->is_dominating())
215template <
int dim,
int spacedim>
220 const unsigned int face_no)
const
222 get_subface_interpolation_matrix(source_fe,
224 interpolation_matrix,
230template <
int dim,
int spacedim>
234 const unsigned int subface,
236 const unsigned int face_no)
const
239 Assert(interpolation_matrix.
n() == this->n_dofs_per_face(face_no),
241 this->n_dofs_per_face(face_no)));
250 fe_q.get_subface_interpolation_matrix(source_fe->fe_q,
252 interpolation_matrix,
255 else if (
dynamic_cast<const FE_Nothing<dim> *
>(&x_source_fe) !=
nullptr)
263 spacedim>::ExcInterpolationNotImplemented()));
268template <
int spacedim>
275template <
int spacedim>
282 std::ostringstream namebuf;
284 << this->degree <<
")";
286 return namebuf.str();
292#include "fe_trace.inst"
TensorProductPolynomials< dim - 1 > poly_space
FE_Q< dim, spacedim > fe_q
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
virtual bool hp_constraints_are_implemented() const override
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
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
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual std::string get_name() const override
static std::vector< unsigned int > get_dpo_vector(const unsigned int deg)
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
FE_TraceQ(unsigned int p)
const unsigned int degree
unsigned int n_dofs_per_cell() const
unsigned int n_dofs_per_face(unsigned int face_no=0, unsigned int child=0) const
unsigned int n_unique_faces() const
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
std::vector< Point< dim > > unit_support_points
FullMatrix< double > interface_constraints
void set_numbering(const std::vector< unsigned int > &renumber)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
#define AssertDimension(dim1, dim2)
#define AssertIndexRange(index, range)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
static ::ExceptionBase & ExcMessage(std::string arg1)
#define AssertThrow(cond, exc)
#define DEAL_II_NOT_IMPLEMENTED()
@ either_element_can_dominate
@ other_element_dominates
@ neither_element_dominates
std::string dim_string(const int dim, const int spacedim)
static const unsigned int invalid_unsigned_int