Reference documentation for deal.II version 9.1.0-pre
fe_q_bubbles.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2012 - 2017 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #ifndef dealii_fe_q_bubbles_h
18 #define dealii_fe_q_bubbles_h
19 
20 #include <deal.II/base/config.h>
21 
22 #include <deal.II/base/tensor_product_polynomials_bubbles.h>
23 
24 #include <deal.II/fe/fe_q_base.h>
25 
26 DEAL_II_NAMESPACE_OPEN
27 
28 
31 
83 template <int dim, int spacedim = dim>
85  : public FE_Q_Base<TensorProductPolynomialsBubbles<dim>, dim, spacedim>
86 {
87 public:
93  FE_Q_Bubbles(const unsigned int p);
94 
101  FE_Q_Bubbles(const Quadrature<1> &points);
102 
108  virtual std::string
109  get_name() const override;
110 
111  // documentation inherited from the base class
112  virtual void
114  const std::vector<Vector<double>> &support_point_values,
115  std::vector<double> & nodal_values) const override;
116 
126  virtual void
128  FullMatrix<double> &matrix) const override;
129 
130  virtual const FullMatrix<double> &
132  const unsigned int child,
133  const RefinementCase<dim> &refinement_case) const override;
134 
135  virtual const FullMatrix<double> &
137  const unsigned int child,
138  const RefinementCase<dim> &refinement_case) const override;
139 
148  virtual bool
149  has_support_on_face(const unsigned int shape_index,
150  const unsigned int face_index) const override;
151 
152  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
153  clone() const override;
154 
155 private:
160  static std::vector<bool>
161  get_riaf_vector(const unsigned int degree);
162 
169  static std::vector<unsigned int>
170  get_dpo_vector(const unsigned int degree);
171 
175  const unsigned int n_bubbles;
176 };
177 
178 
179 
183 DEAL_II_NAMESPACE_CLOSE
184 
185 #endif
const unsigned int n_bubbles
Definition: fe_q_bubbles.h:175
virtual std::string get_name() const override
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case) const override
const unsigned int degree
Definition: fe_base.h:313
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case) const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
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
static std::vector< bool > get_riaf_vector(const unsigned int degree)
FE_Q_Bubbles(const unsigned int p)
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override