Reference documentation for deal.II version 9.4.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_nothing.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2009 - 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#ifndef dealii_fe_nothing_h
17#define dealii_fe_nothing_h
18
19#include <deal.II/base/config.h>
20
21#include <deal.II/fe/fe.h>
22
24
25
28
128template <int dim, int spacedim = dim>
129class FE_Nothing : public FiniteElement<dim, spacedim>
130{
131public:
148 FE_Nothing(const ReferenceCell &type,
149 const unsigned int n_components = 1,
150 const bool dominate = false);
151
155 FE_Nothing(const unsigned int n_components = 1, const bool dominate = false);
156
157 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
158 clone() const override;
159
173 virtual std::string
174 get_name() const override;
175
176 // for documentation, see the FiniteElement base class
177 virtual UpdateFlags
178 requires_update_flags(const UpdateFlags update_flags) const override;
179
187 virtual double
188 shape_value(const unsigned int i, const Point<dim> &p) const override;
189
190 virtual void
193 const CellSimilarity::Similarity cell_similarity,
194 const Quadrature<dim> & quadrature,
195 const Mapping<dim, spacedim> & mapping,
196 const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
197 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
198 spacedim>
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,
214 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
215 spacedim>
216 & mapping_data,
217 const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
219 spacedim>
220 &output_data) const override;
221
222 virtual void
225 const unsigned int face_no,
226 const unsigned int sub_no,
227 const Quadrature<dim - 1> & quadrature,
228 const Mapping<dim, spacedim> & mapping,
229 const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
230 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
231 spacedim>
232 & mapping_data,
233 const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
235 spacedim>
236 &output_data) const override;
237
247 virtual std::unique_ptr<
249 get_data(
250 const UpdateFlags update_flags,
251 const Mapping<dim, spacedim> &mapping,
252 const Quadrature<dim> & quadrature,
254 spacedim>
255 &output_data) const override;
256
269 const unsigned int codim = 0) const override final;
270
271
272
273 virtual std::vector<std::pair<unsigned int, unsigned int>>
275 const FiniteElement<dim, spacedim> &fe_other) const override;
276
277 virtual std::vector<std::pair<unsigned int, unsigned int>>
279 const FiniteElement<dim, spacedim> &fe_other) const override;
280
281 virtual std::vector<std::pair<unsigned int, unsigned int>>
283 const unsigned int face_no = 0) const override;
284
285 virtual bool
286 hp_constraints_are_implemented() const override;
287
293 virtual void
295 const FiniteElement<dim, spacedim> &source_fe,
296 FullMatrix<double> & interpolation_matrix) const override;
297
307 virtual void
309 FullMatrix<double> &interpolation_matrix,
310 const unsigned int face_no = 0) const override;
311
312
322 virtual void
324 const FiniteElement<dim, spacedim> &source_fe,
325 const unsigned int index,
326 FullMatrix<double> & interpolation_matrix,
327 const unsigned int face_no = 0) const override;
328
335 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
336 get_constant_modes() const override;
337
341 bool
342 is_dominating() const;
343
344private:
351 const bool dominate;
352};
353
354
358
359#endif
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
Definition: fe_nothing.cc:247
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
Definition: fe_nothing.cc:160
const bool dominate
Definition: fe_nothing.h:351
virtual std::string get_name() const override
Definition: fe_nothing.cc:72
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
Definition: fe_nothing.cc:320
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_nothing.cc:63
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix, const unsigned int face_no=0) const override
Definition: fe_nothing.cc:301
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
Definition: fe_nothing.cc:181
FE_Nothing(const ReferenceCell &type, const unsigned int n_components=1, const bool dominate=false)
Definition: fe_nothing.cc:25
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
Definition: fe_nothing.cc:100
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
Definition: fe_nothing.cc:234
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
Definition: fe_nothing.cc:109
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:283
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nothing.cc:212
bool is_dominating() const
Definition: fe_nothing.cc:203
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
Definition: fe_nothing.cc:120
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nothing.cc:274
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
Definition: fe_nothing.cc:139
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_nothing.cc:340
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
Definition: fe_nothing.cc:260
unsigned int n_components() const
Definition: point.h:111
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443
UpdateFlags