36template <
int dim,
int spacedim>
50 ExcMessage(
"FE_Trace can only be used for polynomial degrees "
51 "greater than zero"));
53 FETools::hierarchic_to_lexicographic_numbering<dim - 1>(
degree));
57 for (
unsigned int face_no = 0; face_no < this->
n_unique_faces(); ++face_no)
59 fe_q.get_unit_face_support_points(face_no);
74template <
int dim,
int spacedim>
75std::unique_ptr<FiniteElement<dim, spacedim>>
78 return std::make_unique<FE_TraceQ<dim, spacedim>>(this->degree);
83template <
int dim,
int spacedim>
91 std::ostringstream namebuf;
93 << this->degree <<
")";
100template <
int dim,
int spacedim>
103 const unsigned int shape_index,
104 const unsigned int face_index)
const
114 return fe_q.has_support_on_face(shape_index, face_index);
119template <
int dim,
int spacedim>
120std::pair<Table<2, bool>, std::vector<unsigned int>>
124 for (
unsigned int i = 0; i < this->n_dofs_per_cell(); ++i)
125 constant_modes(0, i) =
true;
126 return std::pair<Table<2, bool>, std::vector<unsigned int>>(
127 constant_modes, std::vector<unsigned int>(1, 0));
130template <
int dim,
int spacedim>
135 std::vector<double> & nodal_values)
const
138 this->get_unit_support_points().size());
142 for (
unsigned int i = 0; i < this->n_dofs_per_cell(); ++i)
146 nodal_values[i] = support_point_values[i](0);
151template <
int dim,
int spacedim>
152std::vector<unsigned int>
159 std::vector<unsigned int> dpo(dim + 1, 1U);
162 for (
unsigned int i = 1; i < dim; ++i)
163 dpo[i] = dpo[i - 1] * (deg - 1);
169template <
int dim,
int spacedim>
173 return fe_q.hp_constraints_are_implemented();
177template <
int dim,
int spacedim>
181 const unsigned int codim)
const
191 if (this->degree < fe_traceq_other->degree)
193 else if (this->degree == fe_traceq_other->degree)
201 if (fe_nothing->is_dominating())
216template <
int dim,
int spacedim>
221 const unsigned int face_no)
const
223 get_subface_interpolation_matrix(source_fe,
225 interpolation_matrix,
231template <
int dim,
int spacedim>
235 const unsigned int subface,
237 const unsigned int face_no)
const
240 Assert(interpolation_matrix.
n() == this->n_dofs_per_face(face_no),
242 this->n_dofs_per_face(face_no)));
251 fe_q.get_subface_interpolation_matrix(source_fe->fe_q,
253 interpolation_matrix,
256 else if (
dynamic_cast<const FE_Nothing<dim> *
>(&x_source_fe) !=
nullptr)
264 spacedim>::ExcInterpolationNotImplemented()));
269template <
int spacedim>
276template <
int spacedim>
283 std::ostringstream namebuf;
285 << this->degree <<
")";
287 return namebuf.str();
293#include "fe_trace.inst"
PolynomialType 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
#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)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
static ::ExceptionBase & ExcMessage(std::string arg1)
#define AssertThrow(cond, exc)
@ 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