Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
fe_nothing.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2009 - 2018 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 
23 DEAL_II_NAMESPACE_OPEN
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
122  fill_fe_values(
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
137  fill_fe_face_values(
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
152  fill_fe_subface_values(
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 FiniteElement<dim, spacedim> &fe_other) 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  const FiniteElement<dim, spacedim> &source_fe,
237  FullMatrix<double> & interpolation_matrix) const override;
238 
239 
249  virtual void
251  const FiniteElement<dim, spacedim> &source_fe,
252  const unsigned int index,
253  FullMatrix<double> & interpolation_matrix) const override;
254 
258  bool
259  is_dominating() const;
260 
268  virtual bool
269  operator==(const FiniteElement<dim, spacedim> &fe) const override;
270 
271 private:
278  const bool dominate;
279 };
280 
281 
284 DEAL_II_NAMESPACE_CLOSE
285 
286 #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 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 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: dof_tools.h:57
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_nothing.cc:46
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
const bool dominate
Definition: fe_nothing.h:278
FE_Nothing(const unsigned int n_components=1, const bool dominate=false)
Definition: fe_nothing.cc:25