Reference documentation for deal.II version Git 6d63218887 2020-10-30 17:17:53 -0400
\(\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 
77 template <int dim, int spacedim = dim>
78 class FE_Nothing : public FiniteElement<dim, spacedim>
79 {
80 public:
92  FE_Nothing(const unsigned int n_components = 1, const bool dominate = false);
93 
94  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
95  clone() const override;
96 
101  virtual std::string
102  get_name() const override;
103 
104  // for documentation, see the FiniteElement base class
105  virtual UpdateFlags
106  requires_update_flags(const UpdateFlags update_flags) const override;
107 
115  virtual double
116  shape_value(const unsigned int i, const Point<dim> &p) const override;
117 
118  virtual void
120  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
121  const CellSimilarity::Similarity cell_similarity,
122  const Quadrature<dim> & quadrature,
123  const Mapping<dim, spacedim> & mapping,
124  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
125  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
126  spacedim>
127  & mapping_data,
128  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
130  spacedim>
131  &output_data) const override;
132 
133  virtual void
135  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
136  const unsigned int face_no,
137  const Quadrature<dim - 1> & quadrature,
138  const Mapping<dim, spacedim> & mapping,
139  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
140  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
141  spacedim>
142  & mapping_data,
143  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
145  spacedim>
146  &output_data) const override;
147 
148  virtual void
150  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
151  const unsigned int face_no,
152  const unsigned int sub_no,
153  const Quadrature<dim - 1> & quadrature,
154  const Mapping<dim, spacedim> & mapping,
155  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
156  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
157  spacedim>
158  & mapping_data,
159  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
161  spacedim>
162  &output_data) const override;
163 
173  virtual std::unique_ptr<
175  get_data(
176  const UpdateFlags update_flags,
177  const Mapping<dim, spacedim> &mapping,
178  const Quadrature<dim> & quadrature,
180  spacedim>
181  &output_data) const override;
182 
193  const unsigned int codim = 0) const override final;
194 
195 
196 
197  virtual std::vector<std::pair<unsigned int, unsigned int>>
199  const FiniteElement<dim, spacedim> &fe_other) const override;
200 
201  virtual std::vector<std::pair<unsigned int, unsigned int>>
203  const FiniteElement<dim, spacedim> &fe_other) const override;
204 
205  virtual std::vector<std::pair<unsigned int, unsigned int>>
207  const unsigned int face_no = 0) const override;
208 
209  virtual bool
210  hp_constraints_are_implemented() const override;
211 
217  virtual void
219  const FiniteElement<dim, spacedim> &source_fe,
220  FullMatrix<double> & interpolation_matrix) const override;
221 
231  virtual void
233  FullMatrix<double> &interpolation_matrix,
234  const unsigned int face_no = 0) const override;
235 
236 
246  virtual void
248  const FiniteElement<dim, spacedim> &source_fe,
249  const unsigned int index,
250  FullMatrix<double> & interpolation_matrix,
251  const unsigned int face_no = 0) const override;
252 
256  bool
257  is_dominating() const;
258 
266  virtual bool
267  operator==(const FiniteElement<dim, spacedim> &fe) const override;
268 
269 private:
276  const bool dominate;
277 };
278 
279 
283 
284 #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:369
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:368
const bool dominate
Definition: fe_nothing.h:276
FE_Nothing(const unsigned int n_components=1, const bool dominate=false)
Definition: fe_nothing.cc:25