16 #include <deal.II/base/config.h> 17 #include <deal.II/base/tensor_product_polynomials.h> 18 #include <deal.II/base/quadrature_lib.h> 19 #include <deal.II/base/qprojector.h> 20 #include <deal.II/fe/fe_poly_face.h> 21 #include <deal.II/fe/fe_q.h> 22 #include <deal.II/fe/fe_nothing.h> 23 #include <deal.II/fe/fe_tools.h> 24 #include <deal.II/fe/fe_trace.h> 30 DEAL_II_NAMESPACE_OPEN
34 template <
int dim,
int spacedim>
40 std::vector<bool>(1,true)),
44 ExcMessage (
"FE_Trace can only be used for polynomial degrees " 45 "greater than zero"));
66 template <
int dim,
int spacedim>
75 template <
int dim,
int spacedim>
83 std::ostringstream namebuf;
84 namebuf <<
"FE_TraceQ<" 86 <<
">(" << this->degree <<
")";
93 template <
int dim,
int spacedim>
96 const unsigned int face_index)
const 98 Assert (shape_index < this->dofs_per_cell,
108 return fe_q.has_support_on_face (shape_index, face_index);
113 template <
int dim,
int spacedim>
114 std::pair<Table<2,bool>, std::vector<unsigned int> >
118 for (
unsigned int i=0; i<this->dofs_per_cell; ++i)
119 constant_modes(0,i) =
true;
120 return std::pair<Table<2,bool>, std::vector<unsigned int> >
121 (constant_modes, std::vector<unsigned int>(1, 0));
126 template <
int dim,
int spacedim>
127 std::vector<unsigned int>
134 std::vector<unsigned int> dpo(dim+1, 1U);
137 for (
unsigned int i=1; i<dim; ++i)
138 dpo[i] = dpo[i-1]*(deg-1);
144 template <
int dim,
int spacedim>
148 return fe_q.hp_constraints_are_implemented ();
152 template <
int dim,
int spacedim>
160 if (this->degree < fe_q_other->degree)
162 else if (this->degree == fe_q_other->degree)
169 if (fe_nothing->is_dominating())
187 template <
int dim,
int spacedim>
194 interpolation_matrix);
199 template <
int dim,
int spacedim>
203 const unsigned int subface,
207 Assert (interpolation_matrix.
n() == this->dofs_per_face,
209 this->dofs_per_face));
218 fe_q.get_subface_interpolation_matrix (source_fe->fe_q, subface, interpolation_matrix);
226 ExcInterpolationNotImplemented()));
231 template <
int spacedim>
239 template <
int spacedim>
246 std::ostringstream namebuf;
247 namebuf <<
"FE_TraceQ<" 249 <<
">(" << this->
degree <<
")";
251 return namebuf.str();
257 #include "fe_trace.inst" 260 DEAL_II_NAMESPACE_CLOSE
static const unsigned int invalid_unsigned_int
FullMatrix< double > interface_constraints
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
FE_TraceQ(unsigned int p)
const unsigned int degree
void set_numbering(const std::vector< unsigned int > &renumber)
#define AssertThrow(cond, exc)
static ::ExceptionBase & ExcIndexRange(int arg1, int arg2, int arg3)
std::vector< Point< dim > > unit_support_points
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
static ::ExceptionBase & ExcMessage(std::string arg1)
#define Assert(cond, exc)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
std::vector< Point< dim-1 > > unit_face_support_points
FE_Q< dim, spacedim > fe_q
virtual bool hp_constraints_are_implemented() const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
std::string dim_string(const int dim, const int spacedim)
TensorProductPolynomials< dim-1 > poly_space
const unsigned int dofs_per_cell
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
virtual FiniteElement< dim, spacedim > * clone() const
const unsigned int dofs_per_face
static ::ExceptionBase & ExcNotImplemented()
static std::vector< unsigned int > get_dpo_vector(const unsigned int deg)
virtual std::string get_name() const