Reference documentation for deal.II version GIT d77e5ebb0a 2023-01-27 22:35: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\}}\)
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 
130 template <int dim, int spacedim = dim>
131 class FE_Nothing : public FiniteElement<dim, spacedim>
132 {
133 public:
150  FE_Nothing(const ReferenceCell &type,
151  const unsigned int n_components = 1,
152  const bool dominate = false);
153 
157  FE_Nothing(const unsigned int n_components = 1, const bool dominate = false);
158 
159  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
160  clone() const override;
161 
175  virtual std::string
176  get_name() const override;
177 
178  // for documentation, see the FiniteElement base class
179  virtual UpdateFlags
180  requires_update_flags(const UpdateFlags update_flags) const override;
181 
189  virtual double
190  shape_value(const unsigned int i, const Point<dim> &p) const override;
191 
192  virtual void
194  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
195  const CellSimilarity::Similarity cell_similarity,
196  const Quadrature<dim> & quadrature,
197  const Mapping<dim, spacedim> & mapping,
198  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
200  & mapping_data,
201  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
203  spacedim>
204  &output_data) const override;
205 
207 
208  virtual void
210  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
211  const unsigned int face_no,
212  const hp::QCollection<dim - 1> & quadrature,
213  const Mapping<dim, spacedim> & mapping,
214  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
216  & mapping_data,
217  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
219  spacedim>
220  &output_data) const override;
221 
222  virtual void
224  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
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,
231  & mapping_data,
232  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
234  spacedim>
235  &output_data) const override;
236 
246  virtual std::unique_ptr<
248  get_data(
249  const UpdateFlags update_flags,
250  const Mapping<dim, spacedim> &mapping,
251  const Quadrature<dim> & quadrature,
253  spacedim>
254  &output_data) const override;
255 
268  const unsigned int codim = 0) const override final;
269 
270 
271 
272  virtual std::vector<std::pair<unsigned int, unsigned int>>
274  const FiniteElement<dim, spacedim> &fe_other) const override;
275 
276  virtual std::vector<std::pair<unsigned int, unsigned int>>
278  const FiniteElement<dim, spacedim> &fe_other) const override;
279 
280  virtual std::vector<std::pair<unsigned int, unsigned int>>
282  const unsigned int face_no = 0) const override;
283 
284  virtual bool
285  hp_constraints_are_implemented() const override;
286 
292  virtual void
294  const FiniteElement<dim, spacedim> &source_fe,
295  FullMatrix<double> & interpolation_matrix) const override;
296 
306  virtual void
308  FullMatrix<double> &interpolation_matrix,
309  const unsigned int face_no = 0) const override;
310 
311 
321  virtual void
323  const FiniteElement<dim, spacedim> &source_fe,
324  const unsigned int index,
325  FullMatrix<double> & interpolation_matrix,
326  const unsigned int face_no = 0) const override;
327 
334  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
335  get_constant_modes() const override;
336 
340  bool
341  is_dominating() const;
342 
343 private:
350  const bool dominate;
351 };
352 
353 
357 
358 #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:241
const bool dominate
Definition: fe_nothing.h:350
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:314
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:295
FE_Nothing(const ReferenceCell &type, const unsigned int n_components=1, const bool dominate=false)
Definition: fe_nothing.cc:25
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:177
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:228
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
Definition: fe_nothing.cc:109
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:158
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:277
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nothing.cc:206
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
bool is_dominating() const
Definition: fe_nothing.cc:197
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:268
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Definition: fe_nothing.cc:334
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:254
unsigned int n_components() const
Definition: point.h:111
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:461
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:462
UpdateFlags