deal.II version GIT relicensing-2165-gc91f007519 2024-11-20 01:40:00+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_nothing.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2009 - 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#ifndef dealii_fe_nothing_h
16#define dealii_fe_nothing_h
17
18#include <deal.II/base/config.h>
19
20#include <deal.II/fe/fe.h>
21
23
24
129template <int dim, int spacedim = dim>
130class FE_Nothing : public FiniteElement<dim, spacedim>
131{
132public:
149 FE_Nothing(const ReferenceCell &type,
150 const unsigned int n_components = 1,
151 const bool dominate = false);
152
156 FE_Nothing(const unsigned int n_components = 1, const bool dominate = false);
157
158 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
159 clone() const override;
160
174 virtual std::string
175 get_name() const override;
176
177 // for documentation, see the FiniteElement base class
178 virtual UpdateFlags
179 requires_update_flags(const UpdateFlags update_flags) const override;
180
188 virtual double
189 shape_value(const unsigned int i, const Point<dim> &p) const override;
190
191 virtual void
194 const CellSimilarity::Similarity cell_similarity,
195 const Quadrature<dim> &quadrature,
196 const Mapping<dim, spacedim> &mapping,
197 const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
199 &mapping_data,
200 const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
202 spacedim>
203 &output_data) const override;
204
205 using FiniteElement<dim, spacedim>::fill_fe_face_values;
206
207 virtual void
210 const unsigned int face_no,
211 const hp::QCollection<dim - 1> &quadrature,
212 const Mapping<dim, spacedim> &mapping,
213 const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
215 &mapping_data,
216 const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
218 spacedim>
219 &output_data) const override;
220
221 virtual void
224 const unsigned int face_no,
225 const unsigned int sub_no,
226 const Quadrature<dim - 1> &quadrature,
227 const Mapping<dim, spacedim> &mapping,
228 const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
230 &mapping_data,
231 const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
233 spacedim>
234 &output_data) const override;
235
245 virtual std::unique_ptr<
247 get_data(
248 const UpdateFlags update_flags,
249 const Mapping<dim, spacedim> &mapping,
250 const Quadrature<dim> &quadrature,
252 spacedim>
253 &output_data) const override;
254
267 const unsigned int codim = 0) const override final;
268
269
270
271 virtual std::vector<std::pair<unsigned int, unsigned int>>
273 const FiniteElement<dim, spacedim> &fe_other) const override;
274
275 virtual std::vector<std::pair<unsigned int, unsigned int>>
277 const FiniteElement<dim, spacedim> &fe_other) const override;
278
279 virtual std::vector<std::pair<unsigned int, unsigned int>>
281 const unsigned int face_no = 0) const override;
282
283 virtual bool
284 hp_constraints_are_implemented() const override;
285
291 virtual void
293 const FiniteElement<dim, spacedim> &source_fe,
294 FullMatrix<double> &interpolation_matrix) const override;
295
305 virtual void
307 FullMatrix<double> &interpolation_matrix,
308 const unsigned int face_no = 0) const override;
309
310
320 virtual void
322 const FiniteElement<dim, spacedim> &source_fe,
323 const unsigned int index,
324 FullMatrix<double> &interpolation_matrix,
325 const unsigned int face_no = 0) const override;
326
333 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
334 get_constant_modes() const override;
335
339 bool
340 is_dominating() const;
341
342private:
349 const bool dominate;
350};
351
352
356
357#endif
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
const bool dominate
Definition fe_nothing.h:349
virtual std::string get_name() const override
Definition fe_nothing.cc:71
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, const unsigned int index, FullMatrix< double > &interpolation_matrix, const unsigned int face_no=0) const override
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition fe_nothing.cc:62
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix, const unsigned int face_no=0) const override
virtual void fill_fe_subface_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const unsigned int sub_no, const Quadrature< dim - 1 > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
Definition fe_nothing.cc:99
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
virtual void fill_fe_face_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const hp::QCollection< dim - 1 > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
virtual void fill_fe_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const CellSimilarity::Similarity cell_similarity, const Quadrature< dim > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
bool is_dominating() const
virtual std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
virtual bool hp_constraints_are_implemented() const override
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other, const unsigned int face_no=0) const override
unsigned int n_components() const
Abstract base class for mapping classes.
Definition mapping.h:318
Definition point.h:111
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
UpdateFlags