deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20: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\}}\)
Loading...
Searching...
No Matches
fe_q_dg0.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2012 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13
14#ifndef dealii_fe_q_dg0_h
15#define dealii_fe_q_dg0_h
16
17#include <deal.II/base/config.h>
18
20
22
24
25
234template <int dim, int spacedim = dim>
235class FE_Q_DG0 : public FE_Q_Base<dim, spacedim>
236{
237public:
242 FE_Q_DG0(const unsigned int p);
243
250 FE_Q_DG0(const Quadrature<1> &points);
251
257 virtual std::string
258 get_name() const override;
259
260 // documentation inherited from the base class
261 virtual void
263 const std::vector<Vector<double>> &support_point_values,
264 std::vector<double> &nodal_values) const override;
265
275 virtual void
277 FullMatrix<double> &matrix) const override;
278
279
284 virtual bool
285 has_support_on_face(const unsigned int shape_index,
286 const unsigned int face_index) const override;
287
294 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
295 get_constant_modes() const override;
296
297 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
298 clone() const override;
299
305 const unsigned int codim = 0) const override final;
306
307private:
312 static std::vector<bool>
313 get_riaf_vector(const unsigned int degree);
314
321 static std::vector<unsigned int>
322 get_dpo_vector(const unsigned int degree);
323};
324
325
326
331
332#endif
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition fe_q_dg0.cc:204
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition fe_q_dg0.cc:167
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition fe_q_dg0.cc:272
virtual std::string get_name() const override
Definition fe_q_dg0.cc:88
static std::vector< bool > get_riaf_vector(const unsigned int degree)
Definition fe_q_dg0.cc:231
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition fe_q_dg0.cc:256
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:176
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:291
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition fe_q_dg0.cc:242
const unsigned int degree
Definition fe_data.h:450
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39