Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
fe_q_dg0.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2012 - 2018 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_dg0_h
18 #define dealii_fe_q_dg0_h
19 
20 #include <deal.II/base/config.h>
21 
23 
24 #include <deal.II/fe/fe_q_base.h>
25 
27 
28 
31 
238 template <int dim, int spacedim = dim>
239 class FE_Q_DG0
240  : public FE_Q_Base<TensorProductPolynomialsConst<dim>, dim, spacedim>
241 {
242 public:
247  FE_Q_DG0(const unsigned int p);
248 
255  FE_Q_DG0(const Quadrature<1> &points);
256 
262  virtual std::string
263  get_name() const override;
264 
265  // documentation inherited from the base class
266  virtual void
268  const std::vector<Vector<double>> &support_point_values,
269  std::vector<double> & nodal_values) const override;
270 
280  virtual void
282  FullMatrix<double> &matrix) const override;
283 
284 
289  virtual bool
290  has_support_on_face(const unsigned int shape_index,
291  const unsigned int face_index) const override;
292 
299  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
300  get_constant_modes() const override;
301 
302  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
303  clone() const override;
304 
310  const unsigned int codim = 0) const override final;
311 
312 private:
317  static std::vector<bool>
318  get_riaf_vector(const unsigned int degree);
319 
326  static std::vector<unsigned int>
327  get_dpo_vector(const unsigned int degree);
328 };
329 
330 
331 
336 
337 #endif
FE_Q_DG0::FE_Q_DG0
FE_Q_DG0(const unsigned int p)
Definition: fe_q_dg0.cc:36
fe_q_base.h
FE_Q_DG0
Definition: fe_q_dg0.h:239
FE_Q_Base
Definition: fe_q_base.h:44
FE_Q_DG0::get_riaf_vector
static std::vector< bool > get_riaf_vector(const unsigned int degree)
Definition: fe_q_dg0.cc:237
FE_Q_DG0::clone
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_q_dg0.cc:174
FE_Q_DG0::has_support_on_face
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_q_dg0.cc:262
FE_Q_DG0::get_name
virtual std::string get_name() const override
Definition: fe_q_dg0.cc:95
FiniteElementData::degree
const unsigned int degree
Definition: fe_base.h:298
FE_Q_DG0::get_interpolation_matrix
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_q_dg0.cc:211
FE_Q_DG0::get_dpo_vector
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_q_dg0.cc:248
FiniteElementDomination::Domination
Domination
Definition: fe_base.h:83
FE_Q_DG0::convert_generalized_support_point_values_to_dof_values
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
Definition: fe_q_dg0.cc:183
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
LAPACKSupport::matrix
@ matrix
Contents is actually a matrix.
Definition: lapack_support.h:60
FiniteElement
Definition: fe.h:648
FE_Q_DG0::get_constant_modes
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_q_dg0.cc:278
tensor_product_polynomials_const.h
config.h
FullMatrix< double >
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Quadrature< 1 >
Vector< double >
FE_Q_DG0::compare_for_domination
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_q_dg0.cc:297