Reference documentation for deal.II version Git 689de043d4 2020-08-10 16:46:15 +0200
\(\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 
80 template <int dim, int spacedim = dim>
81 class FE_Nothing : public FiniteElement<dim, spacedim>
82 {
83 public:
95  FE_Nothing(const unsigned int n_components = 1, const bool dominate = false);
96 
97  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
98  clone() const override;
99 
104  virtual std::string
105  get_name() const override;
106 
107  // for documentation, see the FiniteElement base class
108  virtual UpdateFlags
109  requires_update_flags(const UpdateFlags update_flags) const override;
110 
118  virtual double
119  shape_value(const unsigned int i, const Point<dim> &p) const override;
120 
121  virtual void
123  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
124  const CellSimilarity::Similarity cell_similarity,
125  const Quadrature<dim> & quadrature,
126  const Mapping<dim, spacedim> & mapping,
127  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
128  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
129  spacedim>
130  & mapping_data,
131  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
133  spacedim>
134  &output_data) const override;
135 
136  virtual void
138  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
139  const unsigned int face_no,
140  const Quadrature<dim - 1> & quadrature,
141  const Mapping<dim, spacedim> & mapping,
142  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
143  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
144  spacedim>
145  & mapping_data,
146  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
148  spacedim>
149  &output_data) const override;
150 
151  virtual void
153  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
154  const unsigned int face_no,
155  const unsigned int sub_no,
156  const Quadrature<dim - 1> & quadrature,
157  const Mapping<dim, spacedim> & mapping,
158  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
159  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
160  spacedim>
161  & mapping_data,
162  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
164  spacedim>
165  &output_data) const override;
166 
176  virtual std::unique_ptr<
178  get_data(
179  const UpdateFlags update_flags,
180  const Mapping<dim, spacedim> &mapping,
181  const Quadrature<dim> & quadrature,
183  spacedim>
184  &output_data) const override;
185 
196  const unsigned int codim = 0) const override final;
197 
198 
199 
200  virtual std::vector<std::pair<unsigned int, unsigned int>>
202  const FiniteElement<dim, spacedim> &fe_other) const override;
203 
204  virtual std::vector<std::pair<unsigned int, unsigned int>>
206  const FiniteElement<dim, spacedim> &fe_other) const override;
207 
208  virtual std::vector<std::pair<unsigned int, unsigned int>>
210  const unsigned int face_no = 0) const override;
211 
212  virtual bool
213  hp_constraints_are_implemented() const override;
214 
220  virtual void
222  const FiniteElement<dim, spacedim> &source_fe,
223  FullMatrix<double> & interpolation_matrix) const override;
224 
234  virtual void
236  FullMatrix<double> &interpolation_matrix,
237  const unsigned int face_no = 0) const override;
238 
239 
249  virtual void
251  const FiniteElement<dim, spacedim> &source_fe,
252  const unsigned int index,
253  FullMatrix<double> & interpolation_matrix,
254  const unsigned int face_no = 0) const override;
255 
259  bool
260  is_dominating() const;
261 
269  virtual bool
270  operator==(const FiniteElement<dim, spacedim> &fe) const override;
271 
272 private:
279  const bool dominate;
280 };
281 
282 
286 
287 #endif
bool is_dominating() const
Definition: fe_nothing.cc:178
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
Definition: fe_nothing.cc:209
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
Definition: fe_nothing.cc:84
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:114
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:243
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:230
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:279
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:315
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
Definition: fe_nothing.cc:75
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:156
virtual void fill_fe_face_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_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:135
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:95
UpdateFlags
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nothing.cc:270
Abstract base class for mapping classes.
Definition: mapping.h:301
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_nothing.cc:46
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:363
virtual std::string get_name() const override
Definition: fe_nothing.cc:55
virtual bool operator==(const FiniteElement< dim, spacedim > &fe) const override
Definition: fe_nothing.cc:188
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:256
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:297
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:362
const bool dominate
Definition: fe_nothing.h:279
FE_Nothing(const unsigned int n_components=1, const bool dominate=false)
Definition: fe_nothing.cc:25