Reference documentation for deal.II version 8.5.1
fe_trace.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2016 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii__fe_trace_h
17 #define dealii__fe_trace_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/tensor_product_polynomials.h>
21 #include <deal.II/fe/fe_poly_face.h>
22 #include <deal.II/fe/fe_q.h>
23 #include <deal.II/fe/fe_face.h>
24 
25 DEAL_II_NAMESPACE_OPEN
26 
43 template <int dim, int spacedim=dim>
44 class FE_TraceQ : public FE_PolyFace<TensorProductPolynomials<dim-1>, dim, spacedim>
45 {
46 public:
52  FE_TraceQ(unsigned int p);
53 
59  virtual FiniteElement<dim,spacedim> *clone() const;
60 
66  virtual std::string get_name () const;
67 
72  virtual bool has_support_on_face (const unsigned int shape_index,
73  const unsigned int face_index) const;
74 
79  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
80  get_constant_modes () const;
81 
86  virtual bool hp_constraints_are_implemented () const;
87 
96  virtual void
98  FullMatrix<double> &matrix) const;
99 
108  virtual void
110  const unsigned int subface,
111  FullMatrix<double> &matrix) const;
112 
122  virtual
125 
126 private:
131 
135  static std::vector<unsigned int> get_dpo_vector (const unsigned int deg);
136 };
137 
138 
139 
143 template <int spacedim>
144 class FE_TraceQ<1,spacedim> : public FE_FaceQ<1,spacedim>
145 {
146 public:
150  FE_TraceQ (const unsigned int p);
151 
155  std::string get_name() const;
156 };
157 
158 
159 DEAL_II_NAMESPACE_CLOSE
160 
161 #endif
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
Definition: fe_trace.cc:202
FE_TraceQ(unsigned int p)
Definition: fe_trace.cc:35
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
Definition: fe_trace.cc:190
Definition: fe_q.h:552
FE_Q< dim, spacedim > fe_q
Definition: fe_trace.h:130
virtual bool hp_constraints_are_implemented() const
Definition: fe_trace.cc:146
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
Definition: fe_trace.cc:95
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
Definition: fe_trace.cc:155
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
Definition: fe_trace.cc:115
virtual FiniteElement< dim, spacedim > * clone() const
Definition: fe_trace.cc:68
static std::vector< unsigned int > get_dpo_vector(const unsigned int deg)
Definition: fe_trace.cc:128
virtual std::string get_name() const
Definition: fe_trace.cc:77