Reference documentation for deal.II version 9.0.0
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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/base/tensor_product_polynomials_bubbles.h>
22 #include <deal.II/fe/fe_q_base.h>
23 
24 DEAL_II_NAMESPACE_OPEN
25 
26 
29 
81 template <int dim, int spacedim=dim>
82 class FE_Q_Bubbles : public FE_Q_Base<TensorProductPolynomialsBubbles<dim>,dim,spacedim>
83 {
84 public:
90  FE_Q_Bubbles (const unsigned int p);
91 
98  FE_Q_Bubbles (const Quadrature<1> &points);
99 
105  virtual std::string get_name () const;
106 
107  // documentation inherited from the base class
108  virtual
109  void
110  convert_generalized_support_point_values_to_dof_values (const std::vector<Vector<double> > &support_point_values,
111  std::vector<double> &nodal_values) const;
112 
122  virtual void
124  FullMatrix<double> &matrix) const;
125 
126  virtual const FullMatrix<double> &
127  get_prolongation_matrix (const unsigned int child,
128  const RefinementCase<dim> &refinement_case) const;
129 
130  virtual const FullMatrix<double> &
131  get_restriction_matrix (const unsigned int child,
132  const RefinementCase<dim> &refinement_case) const;
133 
142  virtual bool has_support_on_face (const unsigned int shape_index,
143  const unsigned int face_index) const;
144 
145  virtual
146  std::unique_ptr<FiniteElement<dim,spacedim> >
147  clone() const;
148 
149 private:
150 
155  static std::vector<bool> get_riaf_vector(const unsigned int degree);
156 
163  static std::vector<unsigned int> get_dpo_vector(const unsigned int degree);
164 
168  const unsigned int n_bubbles;
169 };
170 
171 
172 
176 DEAL_II_NAMESPACE_CLOSE
177 
178 #endif
const unsigned int n_bubbles
Definition: fe_q_bubbles.h:168
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const
const unsigned int degree
Definition: fe_base.h:311
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case) const
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case) const
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual std::string get_name() const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
static std::vector< bool > get_riaf_vector(const unsigned int degree)
FE_Q_Bubbles(const unsigned int p)