Reference documentation for deal.II version GIT b533f29dc3 2022-09-27 06:15: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\}}\)
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,
199  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
200  spacedim>
201  & mapping_data,
202  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
204  spacedim>
205  &output_data) const override;
206 
208 
209  virtual void
211  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
212  const unsigned int face_no,
213  const hp::QCollection<dim - 1> & quadrature,
214  const Mapping<dim, spacedim> & mapping,
215  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
216  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
217  spacedim>
218  & mapping_data,
219  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
221  spacedim>
222  &output_data) const override;
223 
224  virtual void
226  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
227  const unsigned int face_no,
228  const unsigned int sub_no,
229  const Quadrature<dim - 1> & quadrature,
230  const Mapping<dim, spacedim> & mapping,
231  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
232  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
233  spacedim>
234  & mapping_data,
235  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
237  spacedim>
238  &output_data) const override;
239 
249  virtual std::unique_ptr<
251  get_data(
252  const UpdateFlags update_flags,
253  const Mapping<dim, spacedim> &mapping,
254  const Quadrature<dim> & quadrature,
256  spacedim>
257  &output_data) const override;
258 
271  const unsigned int codim = 0) const override final;
272 
273 
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 FiniteElement<dim, spacedim> &fe_other) const override;
282 
283  virtual std::vector<std::pair<unsigned int, unsigned int>>
285  const unsigned int face_no = 0) const override;
286 
287  virtual bool
288  hp_constraints_are_implemented() const override;
289 
295  virtual void
297  const FiniteElement<dim, spacedim> &source_fe,
298  FullMatrix<double> & interpolation_matrix) const override;
299 
309  virtual void
311  FullMatrix<double> &interpolation_matrix,
312  const unsigned int face_no = 0) const override;
313 
314 
324  virtual void
326  const FiniteElement<dim, spacedim> &source_fe,
327  const unsigned int index,
328  FullMatrix<double> & interpolation_matrix,
329  const unsigned int face_no = 0) const override;
330 
337  virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
338  get_constant_modes() const override;
339 
343  bool
344  is_dominating() const;
345 
346 private:
353  const bool dominate;
354 };
355 
356 
360 
361 #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:353
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:457
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:458
UpdateFlags