Reference documentation for deal.II version 9.2.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 - 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 
82 template <int dim, int spacedim = dim>
83 class FE_Nothing : public FiniteElement<dim, spacedim>
84 {
85 public:
97  FE_Nothing(const unsigned int n_components = 1, const bool dominate = false);
98 
99  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
100  clone() const override;
101 
106  virtual std::string
107  get_name() const override;
108 
109  // for documentation, see the FiniteElement base class
110  virtual UpdateFlags
111  requires_update_flags(const UpdateFlags update_flags) const override;
112 
120  virtual double
121  shape_value(const unsigned int i, const Point<dim> &p) const override;
122 
123  virtual void
125  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
126  const CellSimilarity::Similarity cell_similarity,
127  const Quadrature<dim> & quadrature,
128  const Mapping<dim, spacedim> & mapping,
129  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
130  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
131  spacedim>
132  & mapping_data,
133  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
135  spacedim>
136  &output_data) const override;
137 
138  virtual void
140  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
141  const unsigned int face_no,
142  const Quadrature<dim - 1> & quadrature,
143  const Mapping<dim, spacedim> & mapping,
144  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
145  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
146  spacedim>
147  & mapping_data,
148  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
150  spacedim>
151  &output_data) const override;
152 
153  virtual void
155  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
156  const unsigned int face_no,
157  const unsigned int sub_no,
158  const Quadrature<dim - 1> & quadrature,
159  const Mapping<dim, spacedim> & mapping,
160  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
161  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
162  spacedim>
163  & mapping_data,
164  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
166  spacedim>
167  &output_data) const override;
168 
178  virtual std::unique_ptr<
180  get_data(
181  const UpdateFlags update_flags,
182  const Mapping<dim, spacedim> &mapping,
183  const Quadrature<dim> & quadrature,
185  spacedim>
186  &output_data) const override;
187 
198  const unsigned int codim = 0) const override final;
199 
200 
201 
202  virtual std::vector<std::pair<unsigned int, unsigned int>>
204  const FiniteElement<dim, spacedim> &fe_other) const override;
205 
206  virtual std::vector<std::pair<unsigned int, unsigned int>>
208  const FiniteElement<dim, spacedim> &fe_other) const override;
209 
210  virtual std::vector<std::pair<unsigned int, unsigned int>>
212  const FiniteElement<dim, spacedim> &fe_other) const override;
213 
214  virtual bool
215  hp_constraints_are_implemented() const override;
216 
222  virtual void
224  const FiniteElement<dim, spacedim> &source_fe,
225  FullMatrix<double> & interpolation_matrix) const override;
226 
236  virtual void
238  const FiniteElement<dim, spacedim> &source_fe,
239  FullMatrix<double> & interpolation_matrix) const override;
240 
241 
251  virtual void
253  const FiniteElement<dim, spacedim> &source_fe,
254  const unsigned int index,
255  FullMatrix<double> & interpolation_matrix) const override;
256 
260  bool
261  is_dominating() const;
262 
270  virtual bool
271  operator==(const FiniteElement<dim, spacedim> &fe) const override;
272 
273 private:
280  const bool dominate;
281 };
282 
283 
287 
288 #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 std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
Definition: fe_nothing.cc:256
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:296
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:278
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 void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, const unsigned int index, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:313
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:269
Abstract base class for mapping classes.
Definition: mapping.h:302
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_nothing.cc:46
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
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
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
const bool dominate
Definition: fe_nothing.h:280
FE_Nothing(const unsigned int n_components=1, const bool dominate=false)
Definition: fe_nothing.cc:25