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_enriched.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2016 - 2020 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_enriched_h
17 #define dealii_fe_enriched_h
18 
19 #include <deal.II/base/config.h>
20 
21 #include <deal.II/base/function.h>
24 
25 #include <deal.II/fe/fe.h>
26 #include <deal.II/fe/fe_nothing.h>
27 #include <deal.II/fe/fe_q.h>
28 #include <deal.II/fe/fe_system.h>
30 
31 #include <deal.II/hp/dof_handler.h>
33 
34 #include <map>
35 #include <numeric>
36 #include <utility>
37 #include <vector>
38 
40 
215 template <int dim, int spacedim = dim>
216 class FE_Enriched : public FiniteElement<dim, spacedim>
217 {
218 public:
227  const FiniteElement<dim, spacedim> &fe_enriched,
228  const Function<spacedim> * enrichment_function);
229 
241 
289  FE_Enriched(
290  const FiniteElement<dim, spacedim> * fe_base,
291  const std::vector<const FiniteElement<dim, spacedim> *> &fe_enriched,
292  const std::vector<std::vector<std::function<const Function<spacedim> *(
294  &functions);
295 
296 private:
303  FE_Enriched(
304  const std::vector<const FiniteElement<dim, spacedim> *> &fes,
305  const std::vector<unsigned int> & multiplicities,
306  const std::vector<std::vector<std::function<const Function<spacedim> *(
308  &functions);
309 
310 public:
311  virtual std::unique_ptr<FiniteElement<dim, spacedim>>
312  clone() const override;
313 
314  virtual UpdateFlags
315  requires_update_flags(const UpdateFlags update_flags) const override;
316 
320  virtual std::string
321  get_name() const override;
322 
329  virtual const FiniteElement<dim, spacedim> &
330  base_element(const unsigned int index) const override;
331 
340  virtual double
341  shape_value(const unsigned int i, const Point<dim> &p) const override;
342 
354  virtual const FullMatrix<double> &
356  const unsigned int child,
357  const RefinementCase<dim> &refinement_case =
359 
366  virtual const FullMatrix<double> &
368  const unsigned int child,
369  const RefinementCase<dim> &refinement_case =
371 
373 
385  virtual bool
386  hp_constraints_are_implemented() const override;
387 
400  virtual void
402  FullMatrix<double> &matrix) const override;
403 
416  virtual void
418  const unsigned int subface,
419  FullMatrix<double> &matrix) const override;
420 
436  virtual std::vector<std::pair<unsigned int, unsigned int>>
438  const FiniteElement<dim, spacedim> &fe_other) const override;
439 
444  virtual std::vector<std::pair<unsigned int, unsigned int>>
446  const FiniteElement<dim, spacedim> &fe_other) const override;
447 
452  virtual std::vector<std::pair<unsigned int, unsigned int>>
454  const FiniteElement<dim, spacedim> &fe_other) const override;
455 
461  const unsigned int codim = 0) const override final;
462 
464 
465 
469  const std::vector<std::vector<std::function<const Function<spacedim> *(
471  get_enrichments() const;
472 
477  get_fe_system() const;
478 
479 protected:
484  class InternalData : public FiniteElement<dim, spacedim>::InternalDataBase
485  {
486  public:
493  {
494  std::vector<double> values;
495  std::vector<Tensor<1, spacedim>> gradients;
496  std::vector<SymmetricTensor<2, spacedim>> hessians;
497  };
498 
509  InternalData(std::unique_ptr<typename FESystem<dim, spacedim>::InternalData>
510  fesystem_data);
511 
517  get_fe_data(const unsigned int base_no) const;
518 
525  get_fe_output_object(const unsigned int base_no) const;
526 
531  std::unique_ptr<typename FESystem<dim, spacedim>::InternalData>
533 
549  mutable std::vector<std::vector<EnrichmentValues>> enrichment;
550  };
551 
558  std::vector<std::vector<std::vector<unsigned int>>>
560 
568  const std::vector<std::vector<std::function<const Function<spacedim> *(
571 
581  const bool is_enriched;
582 
593  template <int dim_1>
594  std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
595  setup_data(
596  std::unique_ptr<typename FESystem<dim, spacedim>::InternalData> fes_data,
597  const UpdateFlags flags,
598  const Quadrature<dim_1> &quadrature) const;
599 
606  virtual std::unique_ptr<
608  get_data(
609  const UpdateFlags flags,
610  const Mapping<dim, spacedim> &mapping,
611  const Quadrature<dim> & quadrature,
613  spacedim>
614  &output_data) const override;
615 
616  virtual std::unique_ptr<
619  const UpdateFlags update_flags,
620  const Mapping<dim, spacedim> &mapping,
621  const Quadrature<dim - 1> & quadrature,
623  spacedim>
624  &output_data) const override;
625 
626  virtual std::unique_ptr<
629  const UpdateFlags update_flags,
630  const Mapping<dim, spacedim> &mapping,
631  const Quadrature<dim - 1> & quadrature,
633  spacedim>
634  &output_data) const override;
635 
636  virtual void
638  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
639  const CellSimilarity::Similarity cell_similarity,
640  const Quadrature<dim> & quadrature,
641  const Mapping<dim, spacedim> & mapping,
642  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
643  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
644  spacedim>
645  & mapping_data,
646  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
648  spacedim>
649  &output_data) const override;
650 
651  virtual void
653  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
654  const unsigned int face_no,
655  const Quadrature<dim - 1> & quadrature,
656  const Mapping<dim, spacedim> & mapping,
657  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
658  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
659  spacedim>
660  & mapping_data,
661  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
663  spacedim>
664  &output_data) const override;
665 
666  virtual void
668  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
669  const unsigned int face_no,
670  const unsigned int sub_no,
671  const Quadrature<dim - 1> & quadrature,
672  const Mapping<dim, spacedim> & mapping,
673  const typename Mapping<dim, spacedim>::InternalDataBase &mapping_internal,
674  const ::internal::FEValuesImplementation::MappingRelatedData<dim,
675  spacedim>
676  & mapping_data,
677  const typename FiniteElement<dim, spacedim>::InternalDataBase &fe_internal,
679  spacedim>
680  &output_data) const override;
681 
682 private:
687  void
688  initialize(const std::vector<const FiniteElement<dim, spacedim> *> &fes,
689  const std::vector<unsigned int> &multiplicities);
690 
694  const std::unique_ptr<const FESystem<dim, spacedim>> fe_system;
695 
701  template <int dim_1>
702  void
704  const Quadrature<dim_1> &quadrature,
705  const InternalData & fe_data,
707  & mapping_data,
708  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
710  &output_data) const;
711 };
712 
713 
714 
725 namespace ColorEnriched
726 {
734  template <int dim, int spacedim = dim>
735  using predicate_function = std::function<bool(
737 
738 #ifndef DOXYGEN
739  namespace internal
740  {
787  template <int dim, int spacedim>
788  bool
790  const hp::DoFHandler<dim, spacedim> & dof_handler,
791  const predicate_function<dim, spacedim> &predicate_1,
792  const predicate_function<dim, spacedim> &predicate_2);
793 
806  template <int dim, int spacedim>
807  unsigned int
809  const hp::DoFHandler<dim, spacedim> & dof_handler,
810  const std::vector<predicate_function<dim, spacedim>> &predicates,
811  std::vector<unsigned int> & predicate_colors);
812 
853  template <int dim, int spacedim>
854  void
856  hp::DoFHandler<dim, spacedim> & dof_handler,
857  const std::vector<predicate_function<dim, spacedim>> &predicates,
858  const std::vector<unsigned int> & predicate_colors,
859  std::map<unsigned int, std::map<unsigned int, unsigned int>>
860  & cellwise_color_predicate_map,
861  std::vector<std::set<unsigned int>> &fe_sets);
862 
886  template <int dim, int spacedim>
887  void
889  const unsigned int n_colors,
890  const std::vector<std::shared_ptr<Function<spacedim>>> &enrichments,
891  const std::map<unsigned int, std::map<unsigned int, unsigned int>>
892  &cellwise_color_predicate_map,
893  std::vector<std::function<const Function<spacedim> *(
895  &color_enrichments);
896 
897 
912  template <int dim, int spacedim>
913  void
915  const unsigned int n_colors,
916  const std::vector<std::set<unsigned int>>
917  &fe_sets, // total list of color sets possible
918  const std::vector<std::function<const Function<spacedim> *(
920  &color_enrichments, // color wise enrichment functions
921  const FiniteElement<dim, spacedim> &fe_base, // basic FE element
923  &fe_enriched, // FE multiplied by enrichment function
924  const FE_Nothing<dim, spacedim> &fe_nothing,
925  hp::FECollection<dim, spacedim> &fe_collection);
926  } // namespace internal
927 #endif // DOXYGEN
928 
929 
930 
1099  template <int dim, int spacedim = dim>
1100  struct Helper
1101  {
1114  const std::vector<predicate_function<dim, spacedim>> & predicates,
1115  const std::vector<std::shared_ptr<Function<spacedim>>> &enrichments);
1116 
1128 
1129  private:
1135 
1141 
1147 
1154 
1160  const std::vector<predicate_function<dim, spacedim>> predicates;
1161 
1167  const std::vector<std::shared_ptr<Function<spacedim>>> enrichments;
1168 
1178  using cell_iterator_function = std::function<const Function<spacedim> *(
1180 
1190  std::vector<cell_iterator_function> color_enrichments;
1191 
1197  std::vector<unsigned int> predicate_colors;
1198 
1202  unsigned int n_colors;
1203 
1209  std::map<unsigned int, std::map<unsigned int, unsigned int>>
1211 
1216  std::vector<std::set<unsigned int>> fe_sets;
1217  };
1218 } // namespace ColorEnriched
1219 
1221 
1222 #endif // dealii_fe_enriched_h
FE_Enriched::InternalData::EnrichmentValues::values
std::vector< double > values
Definition: fe_enriched.h:494
FE_Nothing
Definition: fe_nothing.h:83
fe_update_flags.h
internal::FEValuesImplementation::FiniteElementRelatedData
Definition: fe_update_flags.h:524
FE_Enriched::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_enriched.cc:550
FE_Enriched::is_enriched
const bool is_enriched
Definition: fe_enriched.h:581
FE_Enriched::InternalData::get_fe_data
FiniteElement< dim, spacedim >::InternalDataBase & get_fe_data(const unsigned int base_no) const
Definition: fe_enriched.cc:1045
FE_Enriched::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_enriched.cc:515
FE_Enriched::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_enriched.cc:927
FE_Enriched::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_enriched.cc:585
internal::FEValuesImplementation::MappingRelatedData
Definition: fe_update_flags.h:418
ColorEnriched::internal::find_connection_between_subdomains
bool find_connection_between_subdomains(const hp::DoFHandler< dim, spacedim > &dof_handler, const predicate_function< dim, spacedim > &predicate_1, const predicate_function< dim, spacedim > &predicate_2)
Definition: fe_enriched.cc:1067
FE_Enriched::InternalData::EnrichmentValues::gradients
std::vector< Tensor< 1, spacedim > > gradients
Definition: fe_enriched.h:495
ColorEnriched::Helper::fe_enriched
const FiniteElement< dim, spacedim > & fe_enriched
Definition: fe_enriched.h:1146
FE_Enriched::enrichments
const std::vector< std::vector< std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)> > > enrichments
Definition: fe_enriched.h:570
FE_Enriched::hp_constraints_are_implemented
virtual bool hp_constraints_are_implemented() const override
Definition: fe_enriched.cc:873
ColorEnriched::Helper::enrichments
const std::vector< std::shared_ptr< Function< spacedim > > > enrichments
Definition: fe_enriched.h:1167
ColorEnriched::Helper::fe_nothing
const FE_Nothing< dim, spacedim > fe_nothing
Definition: fe_enriched.h:1153
FE_Enriched::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_enriched.cc:981
FiniteElement< dim, dim >::InternalDataBase
friend class InternalDataBase
Definition: fe.h:3048
ColorEnriched::Helper::color_enrichments
std::vector< cell_iterator_function > color_enrichments
Definition: fe_enriched.h:1190
FE_Enriched::base_element
virtual const FiniteElement< dim, spacedim > & base_element(const unsigned int index) const override
Definition: fe_enriched.cc:507
FE_Enriched::InternalData::EnrichmentValues::hessians
std::vector< SymmetricTensor< 2, spacedim > > hessians
Definition: fe_enriched.h:496
CellSimilarity::Similarity
Similarity
Definition: fe_update_flags.h:378
ColorEnriched::internal::color_predicates
unsigned int color_predicates(const hp::DoFHandler< dim, spacedim > &mesh, const std::vector< predicate_function< dim, spacedim >> &predicates, std::vector< unsigned int > &predicate_colors)
Definition: fe_enriched.cc:1097
FE_Enriched::initialize
void initialize(const std::vector< const FiniteElement< dim, spacedim > * > &fes, const std::vector< unsigned int > &multiplicities)
Definition: fe_enriched.cc:425
ColorEnriched::Helper::fe_sets
std::vector< std::set< unsigned int > > fe_sets
Definition: fe_enriched.h:1216
FE_Enriched::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_enriched.cc:945
hp::DoFHandler
Definition: dof_handler.h:203
FE_Enriched::fe_system
const std::unique_ptr< const FESystem< dim, spacedim > > fe_system
Definition: fe_enriched.h:694
FE_Enriched::get_face_interpolation_matrix
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
Definition: fe_enriched.cc:881
internal::p4est::functions
int(&) functions(const void *v1, const void *v2)
Definition: p4est_wrappers.cc:339
fe_nothing.h
bool
Mapping
Abstract base class for mapping classes.
Definition: mapping.h:302
FE_Enriched::requires_update_flags
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
Definition: fe_enriched.cc:302
FiniteElementDomination::Domination
Domination
Definition: fe_base.h:83
FE_Enriched::multiply_by_enrichment
void multiply_by_enrichment(const Quadrature< dim_1 > &quadrature, const InternalData &fe_data, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const typename Triangulation< dim, spacedim >::cell_iterator &cell, internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
Definition: fe_enriched.cc:623
FE_Enriched
Definition: fe_enriched.h:216
FE_Enriched::get_subface_data
virtual std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase > get_subface_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim - 1 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
Definition: fe_enriched.cc:387
FE_Enriched::InternalData::InternalData
InternalData(std::unique_ptr< typename FESystem< dim, spacedim >::InternalData > fesystem_data)
Definition: fe_enriched.cc:1037
fe_collection.h
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
FE_Enriched::get_name
virtual std::string get_name() const override
Definition: fe_enriched.cc:486
RefinementCase
Definition: geometry_info.h:795
ColorEnriched::predicate_function
std::function< bool(const typename Triangulation< dim, spacedim >::cell_iterator &)> predicate_function
Definition: fe_enriched.h:736
LAPACKSupport::matrix
@ matrix
Contents is actually a matrix.
Definition: lapack_support.h:60
FE_Enriched::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_enriched.cc:903
fe.h
ColorEnriched::Helper::n_colors
unsigned int n_colors
Definition: fe_enriched.h:1202
FE_Enriched::base_no_mult_local_enriched_dofs
std::vector< std::vector< std::vector< unsigned int > > > base_no_mult_local_enriched_dofs
Definition: fe_enriched.h:559
ColorEnriched::Helper::Helper
Helper(const FiniteElement< dim, spacedim > &fe_base, const FiniteElement< dim, spacedim > &fe_enriched, const std::vector< predicate_function< dim, spacedim >> &predicates, const std::vector< std::shared_ptr< Function< spacedim >>> &enrichments)
Definition: fe_enriched.cc:1456
fe_q.h
FE_Enriched::get_fe_system
const FESystem< dim, spacedim > & get_fe_system() const
Definition: fe_enriched.cc:865
FE_Enriched::get_data
virtual std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase > get_data(const UpdateFlags flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
Definition: fe_enriched.cc:407
FE_Enriched::InternalData::enrichment
std::vector< std::vector< EnrichmentValues > > enrichment
Definition: fe_enriched.h:549
ColorEnriched::Helper::fe_base
const FiniteElement< dim, spacedim > & fe_base
Definition: fe_enriched.h:1140
FiniteElement
Definition: fe.h:648
UpdateFlags
UpdateFlags
Definition: fe_update_flags.h:66
FE_Enriched::setup_data
std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase > setup_data(std::unique_ptr< typename FESystem< dim, spacedim >::InternalData > fes_data, const UpdateFlags flags, const Quadrature< dim_1 > &quadrature) const
Definition: fe_enriched.cc:326
ColorEnriched::Helper::cellwise_color_predicate_map
std::map< unsigned int, std::map< unsigned int, unsigned int > > cellwise_color_predicate_map
Definition: fe_enriched.h:1210
function.h
ColorEnriched::Helper::fe_collection
hp::FECollection< dim, spacedim > fe_collection
Definition: fe_enriched.h:1134
FE_Enriched::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_enriched.cc:963
symmetric_tensor.h
Mapping::InternalDataBase
Definition: mapping.h:597
FE_Enriched::clone
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
Definition: fe_enriched.cc:284
FE_Enriched::shape_value
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
Definition: fe_enriched.cc:271
FE_Enriched::InternalData
Definition: fe_enriched.h:484
FiniteElement::InternalDataBase
Definition: fe.h:682
Point< dim >
quadrature.h
ColorEnriched::Helper::build_fe_collection
const hp::FECollection< dim, spacedim > & build_fe_collection(hp::DoFHandler< dim, spacedim > &dof_handler)
Definition: fe_enriched.cc:1478
ColorEnriched::Helper
Definition: fe_enriched.h:1100
ColorEnriched::internal::set_cellwise_color_set_and_fe_index
void set_cellwise_color_set_and_fe_index(hp::DoFHandler< dim, spacedim > &dof_handler, const std::vector< predicate_function< dim, spacedim >> &predicates, const std::vector< unsigned int > &predicate_colors, std::map< unsigned int, std::map< unsigned int, unsigned int >> &cellwise_color_predicate_map, std::vector< std::set< unsigned int >> &fe_sets)
Definition: fe_enriched.cc:1137
FE_Enriched::get_face_data
virtual std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase > get_face_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim - 1 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
Definition: fe_enriched.cc:368
config.h
FullMatrix< double >
FE_Enriched::get_prolongation_matrix
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
Definition: fe_enriched.cc:1015
FE_Enriched::InternalData::get_fe_output_object
internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > & get_fe_output_object(const unsigned int base_no) const
Definition: fe_enriched.cc:1054
Function
Definition: function.h:151
internal
Definition: aligned_vector.h:369
ColorEnriched::Helper::cell_iterator_function
std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)> cell_iterator_function
Definition: fe_enriched.h:1179
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
ColorEnriched::Helper::predicate_colors
std::vector< unsigned int > predicate_colors
Definition: fe_enriched.h:1197
FE_Enriched::InternalData::fesystem_data
std::unique_ptr< typename FESystem< dim, spacedim >::InternalData > fesystem_data
Definition: fe_enriched.h:532
Quadrature
Definition: quadrature.h:85
FE_Enriched::InternalData::EnrichmentValues
Definition: fe_enriched.h:492
ColorEnriched
Definition: fe_enriched.h:725
FE_Enriched::get_enrichments
const std::vector< std::vector< std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)> > > get_enrichments() const
Definition: fe_enriched.cc:263
TriaIterator
Definition: tria_iterator.h:578
FESystem
Definition: fe.h:44
FE_Enriched::get_restriction_matrix
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
Definition: fe_enriched.cc:1025
fe_system.h
hp::FECollection
Definition: fe_collection.h:54
FE_Enriched::FE_Enriched
FE_Enriched(const FiniteElement< dim, spacedim > &fe_base, const FiniteElement< dim, spacedim > &fe_enriched, const Function< spacedim > *enrichment_function)
Definition: fe_enriched.cc:146
ColorEnriched::Helper::predicates
const std::vector< predicate_function< dim, spacedim > > predicates
Definition: fe_enriched.h:1160
ColorEnriched::internal::make_fe_collection_from_colored_enrichments
void make_fe_collection_from_colored_enrichments(const unsigned int n_colors, const std::vector< std::set< unsigned int >> &fe_sets, const std::vector< std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)>> &color_enrichments, const FiniteElement< dim, spacedim > &fe_base, const FiniteElement< dim, spacedim > &fe_enriched, const FE_Nothing< dim, spacedim > &fe_nothing, hp::FECollection< dim, spacedim > &fe_collection)
Definition: fe_enriched.cc:1387
FESystem::InternalData
Definition: fe_system.h:1170
ColorEnriched::internal::make_colorwise_enrichment_functions
void make_colorwise_enrichment_functions(const unsigned int n_colors, const std::vector< std::shared_ptr< Function< spacedim >>> &enrichments, const std::map< unsigned int, std::map< unsigned int, unsigned int >> &cellwise_color_predicate_map, std::vector< std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)>> &color_enrichments)
Definition: fe_enriched.cc:1339
dof_handler.h