Reference documentation for deal.II version GIT relicensing-233-g802318d791 2024-03-28 20:20:02+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: 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// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15
16#ifndef dealii_fe_q_dg0_h
17#define dealii_fe_q_dg0_h
18
19#include <deal.II/base/config.h>
20
22
24
26
27
236template <int dim, int spacedim = dim>
237class FE_Q_DG0 : public FE_Q_Base<dim, spacedim>
238{
239public:
244 FE_Q_DG0(const unsigned int p);
245
252 FE_Q_DG0(const Quadrature<1> &points);
253
259 virtual std::string
260 get_name() const override;
261
262 // documentation inherited from the base class
263 virtual void
265 const std::vector<Vector<double>> &support_point_values,
266 std::vector<double> &nodal_values) const override;
267
277 virtual void
279 FullMatrix<double> &matrix) const override;
280
281
286 virtual bool
287 has_support_on_face(const unsigned int shape_index,
288 const unsigned int face_index) const override;
289
296 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
297 get_constant_modes() const override;
298
299 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
300 clone() const override;
301
307 const unsigned int codim = 0) const override final;
308
309private:
314 static std::vector<bool>
315 get_riaf_vector(const unsigned int degree);
316
323 static std::vector<unsigned int>
324 get_dpo_vector(const unsigned int degree);
325};
326
327
328
333
334#endif
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition fe_q_dg0.cc:208
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition fe_q_dg0.cc:171
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition fe_q_dg0.cc:276
virtual std::string get_name() const override
Definition fe_q_dg0.cc:92
static std::vector< bool > get_riaf_vector(const unsigned int degree)
Definition fe_q_dg0.cc:235
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition fe_q_dg0.cc:260
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:180
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:295
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition fe_q_dg0.cc:246
const unsigned int degree
Definition fe_data.h:452
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503