deal.II version GIT relicensing-2167-g9622207b8f 2024-11-21 12:40:00+00:00
\(\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\}}\)
Loading...
Searching...
No Matches
fe_dgp_nonparametric.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2002 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_fe_dgp_nonparametric_h
16#define dealii_fe_dgp_nonparametric_h
17
18#include <deal.II/base/config.h>
19
22
23#include <deal.II/fe/fe.h>
24#include <deal.II/fe/mapping.h>
25
27
269template <int dim, int spacedim = dim>
270class FE_DGPNonparametric : public FiniteElement<dim, spacedim>
271{
272public:
276 FE_DGPNonparametric(const unsigned int k);
277
283 virtual std::string
284 get_name() const override;
285
286 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
287 clone() const override;
288
289 // for documentation, see the FiniteElement base class
290 virtual UpdateFlags
291 requires_update_flags(const UpdateFlags update_flags) const override;
292
303 virtual double
304 shape_value(const unsigned int i, const Point<dim> &p) const override;
305
316 virtual double
317 shape_value_component(const unsigned int i,
318 const Point<dim> &p,
319 const unsigned int component) const override;
320
331 virtual Tensor<1, dim>
332 shape_grad(const unsigned int i, const Point<dim> &p) const override;
333
344 virtual Tensor<1, dim>
345 shape_grad_component(const unsigned int i,
346 const Point<dim> &p,
347 const unsigned int component) const override;
348
359 virtual Tensor<2, dim>
360 shape_grad_grad(const unsigned int i, const Point<dim> &p) const override;
361
372 virtual Tensor<2, dim>
373 shape_grad_grad_component(const unsigned int i,
374 const Point<dim> &p,
375 const unsigned int component) const override;
376
381 unsigned int
382 get_degree() const;
383
395 virtual void
397 FullMatrix<double> &matrix,
398 const unsigned int face_no = 0) const override;
399
411 virtual void
413 const FiniteElement<dim, spacedim> &source,
414 const unsigned int subface,
415 FullMatrix<double> &matrix,
416 const unsigned int face_no = 0) const override;
417
441 virtual std::vector<std::pair<unsigned int, unsigned int>>
443 const FiniteElement<dim, spacedim> &fe_other) const override;
444
452 virtual std::vector<std::pair<unsigned int, unsigned int>>
454 const FiniteElement<dim, spacedim> &fe_other) const override;
455
463 virtual std::vector<std::pair<unsigned int, unsigned int>>
465 const unsigned int face_no = 0) const override;
466
475 virtual bool
476 hp_constraints_are_implemented() const override;
477
483 const unsigned int codim = 0) const override final;
484
493 virtual bool
494 has_support_on_face(const unsigned int shape_index,
495 const unsigned int face_index) const override;
496
505 virtual std::size_t
506 memory_consumption() const override;
507
508protected:
513 virtual std::unique_ptr<
515 get_data(
516 const UpdateFlags update_flags,
517 const Mapping<dim, spacedim> &mapping,
518 const Quadrature<dim> &quadrature,
520 spacedim>
521 &output_data) const override;
522
523 virtual void
526 const CellSimilarity::Similarity cell_similarity,
527 const Quadrature<dim> &quadrature,
528 const Mapping<dim, spacedim> &mapping,
529 const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
531 &mapping_data,
532 const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
534 spacedim>
535 &output_data) const override;
536
537 using FiniteElement<dim, spacedim>::fill_fe_face_values;
538
539 virtual void
542 const unsigned int face_no,
543 const hp::QCollection<dim - 1> &quadrature,
544 const Mapping<dim, spacedim> &mapping,
545 const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
547 &mapping_data,
548 const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
550 spacedim>
551 &output_data) const override;
552
553 virtual void
556 const unsigned int face_no,
557 const unsigned int sub_no,
558 const Quadrature<dim - 1> &quadrature,
559 const Mapping<dim, spacedim> &mapping,
560 const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
562 &mapping_data,
563 const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
565 spacedim>
566 &output_data) const override;
567
568private:
575 static std::vector<unsigned int>
576 get_dpo_vector(const unsigned int degree);
577
582
583 // Allow access from other dimensions.
584 template <int, int>
586};
587
591
592#endif
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
unsigned int get_degree() const
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
const PolynomialSpace< dim > polynomial_space
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
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const override
virtual void fill_fe_face_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const hp::QCollection< 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
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const override
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
virtual bool hp_constraints_are_implemented() const override
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
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual std::string get_name() const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
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
virtual std::size_t memory_consumption() const override
const unsigned int degree
Definition fe_data.h:452
Abstract base class for mapping classes.
Definition mapping.h:318
Definition point.h:111
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
UpdateFlags