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_dgp_nonparametric.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2002 - 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_dgp_nonparametric_h
17 #define dealii_fe_dgp_nonparametric_h
18 
19 #include <deal.II/base/config.h>
20 
23 
24 #include <deal.II/fe/fe.h>
25 #include <deal.II/fe/mapping.h>
26 
28 
31 
270 template <int dim, int spacedim = dim>
271 class FE_DGPNonparametric : public FiniteElement<dim, spacedim>
272 {
273 public:
277  FE_DGPNonparametric(const unsigned int k);
278 
284  virtual std::string
285  get_name() const override;
286 
287  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
288  clone() const override;
289 
290  // for documentation, see the FiniteElement base class
291  virtual UpdateFlags
292  requires_update_flags(const UpdateFlags update_flags) const override;
293 
304  virtual double
305  shape_value(const unsigned int i, const Point<dim> &p) const override;
306 
317  virtual double
318  shape_value_component(const unsigned int i,
319  const Point<dim> & p,
320  const unsigned int component) const override;
321 
332  virtual Tensor<1, dim>
333  shape_grad(const unsigned int i, const Point<dim> &p) const override;
334 
345  virtual Tensor<1, dim>
346  shape_grad_component(const unsigned int i,
347  const Point<dim> & p,
348  const unsigned int component) const override;
349 
360  virtual Tensor<2, dim>
361  shape_grad_grad(const unsigned int i, const Point<dim> &p) const override;
362 
373  virtual Tensor<2, dim>
374  shape_grad_grad_component(const unsigned int i,
375  const Point<dim> & p,
376  const unsigned int component) const override;
377 
382  unsigned int
383  get_degree() const;
384 
396  virtual void
398  FullMatrix<double> &matrix) const override;
399 
411  virtual void
413  const unsigned int subface,
414  FullMatrix<double> &matrix) const override;
415 
439  virtual std::vector<std::pair<unsigned int, unsigned int>>
441  const FiniteElement<dim, spacedim> &fe_other) const override;
442 
450  virtual std::vector<std::pair<unsigned int, unsigned int>>
452  const FiniteElement<dim, spacedim> &fe_other) const override;
453 
461  virtual std::vector<std::pair<unsigned int, unsigned int>>
463  const FiniteElement<dim, spacedim> &fe_other) const override;
464 
473  virtual bool
474  hp_constraints_are_implemented() const override;
475 
481  const unsigned int codim = 0) const override final;
482 
491  virtual bool
492  has_support_on_face(const unsigned int shape_index,
493  const unsigned int face_index) const override;
494 
503  virtual std::size_t
504  memory_consumption() const override;
505 
506 protected:
511  virtual std::unique_ptr<
513  get_data(
514  const UpdateFlags update_flags,
515  const Mapping<dim, spacedim> &mapping,
516  const Quadrature<dim> & quadrature,
518  spacedim>
519  &output_data) const override;
520 
521  virtual void
523  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
524  const CellSimilarity::Similarity cell_similarity,
525  const Quadrature<dim> & quadrature,
526  const Mapping<dim, spacedim> & mapping,
527  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
528  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
529  spacedim>
530  & mapping_data,
531  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
533  spacedim>
534  &output_data) const override;
535 
536  virtual void
538  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
539  const unsigned int face_no,
540  const Quadrature<dim - 1> & quadrature,
541  const Mapping<dim, spacedim> & mapping,
542  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
543  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
544  spacedim>
545  & mapping_data,
546  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
548  spacedim>
549  &output_data) const override;
550 
551  virtual void
553  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
554  const unsigned int face_no,
555  const unsigned int sub_no,
556  const Quadrature<dim - 1> & quadrature,
557  const Mapping<dim, spacedim> & mapping,
558  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
559  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
560  spacedim>
561  & mapping_data,
562  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
564  spacedim>
565  &output_data) const override;
566 
567 private:
574  static std::vector<unsigned int>
575  get_dpo_vector(const unsigned int degree);
576 
581 
582  // Allow access from other dimensions.
583  template <int, int>
584  friend class FE_DGPNonparametric;
585 };
586 
590 
591 #endif
FE_DGPNonparametric::has_support_on_face
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_dgp_nonparametric.cc:640
internal::FEValuesImplementation::FiniteElementRelatedData
Definition: fe_update_flags.h:524
FE_DGPNonparametric::polynomial_space
const PolynomialSpace< dim > polynomial_space
Definition: fe_dgp_nonparametric.h:580
FE_DGPNonparametric::shape_grad_grad
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const override
Definition: fe_dgp_nonparametric.cc:204
polynomial.h
FE_DGPNonparametric::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_dgp_nonparametric.cc:416
FE_DGPNonparametric::get_dpo_vector
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_dgp_nonparametric.cc:242
FE_DGPNonparametric::get_degree
unsigned int get_degree() const
Definition: fe_dgp_nonparametric.cc:661
CellSimilarity::Similarity
Similarity
Definition: fe_update_flags.h:378
FE_DGPNonparametric::shape_grad_component
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
Definition: fe_dgp_nonparametric.cc:185
PolynomialSpace< dim >
FE_DGPNonparametric::requires_update_flags
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
Definition: fe_dgp_nonparametric.cc:258
FiniteElementData::degree
const unsigned int degree
Definition: fe_base.h:298
FE_DGPNonparametric::shape_value
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
Definition: fe_dgp_nonparametric.cc:137
Mapping
Abstract base class for mapping classes.
Definition: mapping.h:302
FiniteElementDomination::Domination
Domination
Definition: fe_base.h:83
Tensor< 1, dim >
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
FE_DGPNonparametric::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_dgp_nonparametric.cc:537
LAPACKSupport::matrix
@ matrix
Contents is actually a matrix.
Definition: lapack_support.h:60
FE_DGPNonparametric::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_dgp_nonparametric.cc:556
fe.h
polynomial_space.h
FE_DGPNonparametric::clone
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_dgp_nonparametric.cc:128
FiniteElement
Definition: fe.h:648
UpdateFlags
UpdateFlags
Definition: fe_update_flags.h:66
FE_DGPNonparametric::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_dgp_nonparametric.cc:594
mapping.h
FE_DGPNonparametric::hp_constraints_are_implemented
virtual bool hp_constraints_are_implemented() const override
Definition: fe_dgp_nonparametric.cc:528
Mapping::InternalDataBase
Definition: mapping.h:597
FE_DGPNonparametric::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_dgp_nonparametric.cc:277
FE_DGPNonparametric::memory_consumption
virtual std::size_t memory_consumption() const override
Definition: fe_dgp_nonparametric.cc:651
FE_DGPNonparametric::FE_DGPNonparametric
friend class FE_DGPNonparametric
Definition: fe_dgp_nonparametric.h:584
FiniteElement::InternalDataBase
Definition: fe.h:682
FE_DGPNonparametric::shape_grad
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const override
Definition: fe_dgp_nonparametric.cc:171
Point< dim >
config.h
FullMatrix< double >
FE_DGPNonparametric::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_dgp_nonparametric.cc:304
FE_DGPNonparametric::shape_grad_grad_component
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
Definition: fe_dgp_nonparametric.cc:219
FE_DGPNonparametric::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_dgp_nonparametric.cc:360
FE_DGPNonparametric::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_dgp_nonparametric.cc:575
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
FE_DGPNonparametric::get_name
virtual std::string get_name() const override
Definition: fe_dgp_nonparametric.cc:108
FE_DGPNonparametric::get_subface_interpolation_matrix
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
Definition: fe_dgp_nonparametric.cc:500
Quadrature
Definition: quadrature.h:85
TriaIterator
Definition: tria_iterator.h:578
FE_DGPNonparametric::shape_value_component
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
Definition: fe_dgp_nonparametric.cc:152
FE_DGPNonparametric::get_face_interpolation_matrix
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_dgp_nonparametric.cc:473
FE_DGPNonparametric
Definition: fe_dgp_nonparametric.h:271