Reference documentation for deal.II version GIT 5ac9d67d2d 2023-06-07 21:45:01+00:00
\(\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 - 2022 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 
237 template <int dim, int spacedim = dim>
238 class FE_Q_DG0 : public FE_Q_Base<dim, spacedim>
239 {
240 public:
245  FE_Q_DG0(const unsigned int p);
246 
253  FE_Q_DG0(const Quadrature<1> &points);
254 
260  virtual std::string
261  get_name() const override;
262 
263  // documentation inherited from the base class
264  virtual void
266  const std::vector<Vector<double>> &support_point_values,
267  std::vector<double> & nodal_values) const override;
268 
278  virtual void
280  FullMatrix<double> &matrix) const override;
281 
282 
287  virtual bool
288  has_support_on_face(const unsigned int shape_index,
289  const unsigned int face_index) const override;
290 
297  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
298  get_constant_modes() const override;
299 
300  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
301  clone() const override;
302 
308  const unsigned int codim = 0) const override final;
309 
310 private:
315  static std::vector<bool>
316  get_riaf_vector(const unsigned int degree);
317 
324  static std::vector<unsigned int>
325  get_dpo_vector(const unsigned int degree);
326 };
327 
328 
329 
334 
335 #endif
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_q_dg0.cc:209
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_q_dg0.cc:172
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_q_dg0.cc:277
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:181
FE_Q_DG0(const unsigned int p)
Definition: fe_q_dg0.cc:35
virtual std::string get_name() const override
Definition: fe_q_dg0.cc:93
static std::vector< bool > get_riaf_vector(const unsigned int degree)
Definition: fe_q_dg0.cc:236
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_q_dg0.cc:261
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:296
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_q_dg0.cc:247
const unsigned int degree
Definition: fe_data.h:449
Definition: vector.h:109
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:474
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:475
@ matrix
Contents is actually a matrix.