Reference documentation for deal.II version 8.5.1
fe_q_dg0.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_dg0_h
18 #define dealii__fe_q_dg0_h
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/tensor_product_polynomials_const.h>
22 #include <deal.II/fe/fe_q_base.h>
23 
24 DEAL_II_NAMESPACE_OPEN
25 
26 
29 
236 template <int dim, int spacedim=dim>
237 class FE_Q_DG0 : public FE_Q_Base<TensorProductPolynomialsConst<dim>,dim,spacedim>
238 {
239 public:
244  FE_Q_DG0 (const unsigned int p);
245 
252  FE_Q_DG0 (const Quadrature<1> &points);
253 
259  virtual std::string get_name () const;
260 
261  // documentation inherited from the base class
262  virtual
263  void
264  convert_generalized_support_point_values_to_nodal_values (const std::vector<Vector<double> > &support_point_values,
265  std::vector<double> &nodal_values) const;
266 
267  virtual void interpolate(std::vector<double> &local_dofs,
268  const std::vector<double> &values) const DEAL_II_DEPRECATED;
269 
270  virtual void interpolate(std::vector<double> &local_dofs,
271  const std::vector<Vector<double> > &values,
272  const unsigned int offset = 0) const DEAL_II_DEPRECATED;
273 
274  virtual void interpolate(std::vector<double> &local_dofs,
275  const VectorSlice<const std::vector<std::vector<double> > > &values) const DEAL_II_DEPRECATED;
276 
286  virtual void
288  FullMatrix<double> &matrix) const;
289 
290 
295  virtual bool has_support_on_face (const unsigned int shape_index,
296  const unsigned int face_index) const;
297 
304  virtual std::pair<Table<2,bool>, std::vector<unsigned int> >
305  get_constant_modes () const;
306 
307 protected:
313  virtual FiniteElement<dim,spacedim> *clone() const;
314 
315 private:
316 
321  static std::vector<bool> get_riaf_vector(const unsigned int degree);
322 
329  static std::vector<unsigned int> get_dpo_vector(const unsigned int degree);
330 };
331 
332 
333 
337 DEAL_II_NAMESPACE_CLOSE
338 
339 #endif
const unsigned int degree
Definition: fe_base.h:311
virtual std::string get_name() const
Definition: fe_q_dg0.cc:89
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const 1
Definition: fe_q_dg0.cc:206
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
Definition: fe_q_dg0.cc:335
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
Definition: fe_q_dg0.cc:349
static std::vector< bool > get_riaf_vector(const unsigned int degree)
Definition: fe_q_dg0.cc:310
FE_Q_DG0(const unsigned int p)
Definition: fe_q_dg0.cc:33
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
Definition: fe_q_dg0.cc:282
virtual void convert_generalized_support_point_values_to_nodal_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
Definition: fe_q_dg0.cc:180
virtual FiniteElement< dim, spacedim > * clone() const
Definition: fe_q_dg0.cc:170
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_q_dg0.cc:321