Reference documentation for deal.II version Git 6eca4763ef 2021-01-16 21:10:54 -0500
\(\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 - 2019 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 
128 template <int dim, int spacedim = dim>
129 class FE_Nothing : public FiniteElement<dim, spacedim>
130 {
131 public:
148  FE_Nothing(const ReferenceCell::Type &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
192  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
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 
206 
207  virtual void
209  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
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
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,
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 
332  bool
333  is_dominating() const;
334 
335 private:
342  const bool dominate;
343 };
344 
345 
349 
350 #endif
bool is_dominating() const
Definition: fe_nothing.cc:204
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nothing.cc:213
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
Definition: fe_nothing.cc:110
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:140
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:248
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:235
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:161
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:284
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 UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
Definition: fe_nothing.cc:101
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:182
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:121
UpdateFlags
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nothing.cc:275
Abstract base class for mapping classes.
Definition: mapping.h:303
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_nothing.cc:63
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:380
virtual std::string get_name() const override
Definition: fe_nothing.cc:72
FE_Nothing(const ReferenceCell::Type &type, const unsigned int n_components=1, const bool dominate=false)
Definition: fe_nothing.cc:25
unsigned int n_components() const
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:261
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:302
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:379
const bool dominate
Definition: fe_nothing.h:342