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
FE_Nothing::hp_quad_dof_identities
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
FE_Nothing
Definition: fe_nothing.h:83
internal::FEValuesImplementation::FiniteElementRelatedData
Definition: fe_update_flags.h:524
FE_Nothing::get_subface_interpolation_matrix
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
FE_Nothing::get_data
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
CellSimilarity::Similarity
Similarity
Definition: fe_update_flags.h:378
FE_Nothing::get_interpolation_matrix
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:278
FE_Nothing::get_face_interpolation_matrix
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source_fe, FullMatrix< double > &interpolation_matrix) const override
Definition: fe_nothing.cc:296
FE_Nothing::requires_update_flags
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
Definition: fe_nothing.cc:75
FE_Nothing::fill_fe_face_values
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
FE_Nothing::hp_constraints_are_implemented
virtual bool hp_constraints_are_implemented() const override
Definition: fe_nothing.cc:269
FE_Nothing::fill_fe_subface_values
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
Mapping
Abstract base class for mapping classes.
Definition: mapping.h:302
FiniteElementDomination::Domination
Domination
Definition: fe_base.h:83
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
fe.h
FE_Nothing::get_name
virtual std::string get_name() const override
Definition: fe_nothing.cc:55
FE_Nothing::operator==
virtual bool operator==(const FiniteElement< dim, spacedim > &fe) const override
Definition: fe_nothing.cc:188
FiniteElement
Definition: fe.h:648
UpdateFlags
UpdateFlags
Definition: fe_update_flags.h:66
FE_Nothing::clone
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_nothing.cc:46
Mapping::InternalDataBase
Definition: mapping.h:597
FiniteElement::InternalDataBase
Definition: fe.h:682
Point< dim >
FiniteElementData::n_components
unsigned int n_components() const
config.h
FE_Nothing::dominate
const bool dominate
Definition: fe_nothing.h:280
FullMatrix< double >
FE_Nothing::shape_value
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
Definition: fe_nothing.cc:84
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
FE_Nothing::fill_fe_values
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
Quadrature
Definition: quadrature.h:85
FE_Nothing::FE_Nothing
FE_Nothing(const unsigned int n_components=1, const bool dominate=false)
Definition: fe_nothing.cc:25
FE_Nothing::hp_line_dof_identities
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
TriaIterator
Definition: tria_iterator.h:578
FE_Nothing::is_dominating
bool is_dominating() const
Definition: fe_nothing.cc:178
FE_Nothing::compare_for_domination
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
FE_Nothing::hp_vertex_dof_identities
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