|
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\}}\)
Go to the documentation of this file.
16 #ifndef dealii_fe_enriched_h
17 #define dealii_fe_enriched_h
215 template <
int dim,
int spacedim = dim>
305 const std::vector<unsigned int> & multiplicities,
311 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
312 clone()
const override;
356 const unsigned int child,
368 const unsigned int child,
418 const unsigned int subface,
436 virtual std::vector<std::pair<unsigned int, unsigned int>>
444 virtual std::vector<std::pair<unsigned int, unsigned int>>
452 virtual std::vector<std::pair<unsigned int, unsigned int>>
461 const unsigned int codim = 0)
const override final;
469 const std::vector<std::vector<std::function<const Function<spacedim> *(
496 std::vector<SymmetricTensor<2, spacedim>>
hessians;
531 std::unique_ptr<typename FESystem<dim, spacedim>::InternalData>
549 mutable std::vector<std::vector<EnrichmentValues>>
enrichment;
558 std::vector<std::vector<std::vector<unsigned int>>>
568 const std::vector<std::vector<std::function<const Function<spacedim> *(
594 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
606 virtual std::unique_ptr<
614 &output_data)
const override;
616 virtual std::unique_ptr<
624 &output_data)
const override;
626 virtual std::unique_ptr<
634 &output_data)
const override;
643 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
649 &output_data)
const override;
654 const unsigned int face_no,
658 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
664 &output_data)
const override;
669 const unsigned int face_no,
670 const unsigned int sub_no,
674 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
680 &output_data)
const override;
689 const std::vector<unsigned int> &multiplicities);
694 const std::unique_ptr<const FESystem<dim, spacedim>>
fe_system;
734 template <
int dim,
int spacedim = dim>
787 template <
int dim,
int spacedim>
806 template <
int dim,
int spacedim>
811 std::vector<unsigned int> & predicate_colors);
853 template <
int dim,
int spacedim>
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);
886 template <
int dim,
int spacedim>
889 const unsigned int n_colors,
891 const std::map<
unsigned int, std::map<unsigned int, unsigned int>>
892 &cellwise_color_predicate_map,
912 template <
int dim,
int spacedim>
915 const unsigned int n_colors,
916 const std::vector<std::set<unsigned int>>
1099 template <
int dim,
int spacedim = dim>
1209 std::map<unsigned int, std::map<unsigned int, unsigned int>>
1222 #endif // dealii_fe_enriched_h
std::vector< double > 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
FiniteElement< dim, spacedim >::InternalDataBase & get_fe_data(const unsigned int base_no) const
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::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
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
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)
std::vector< Tensor< 1, spacedim > > gradients
const FiniteElement< dim, spacedim > & fe_enriched
const std::vector< std::vector< std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)> > > enrichments
virtual bool hp_constraints_are_implemented() const override
const std::vector< std::shared_ptr< Function< spacedim > > > enrichments
const FE_Nothing< dim, spacedim > fe_nothing
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
friend class InternalDataBase
std::vector< cell_iterator_function > color_enrichments
virtual const FiniteElement< dim, spacedim > & base_element(const unsigned int index) const override
std::vector< SymmetricTensor< 2, spacedim > > hessians
unsigned int color_predicates(const hp::DoFHandler< dim, spacedim > &mesh, const std::vector< predicate_function< dim, spacedim >> &predicates, std::vector< unsigned int > &predicate_colors)
void initialize(const std::vector< const FiniteElement< dim, spacedim > * > &fes, const std::vector< unsigned int > &multiplicities)
std::vector< std::set< unsigned int > > fe_sets
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
const std::unique_ptr< const FESystem< dim, spacedim > > fe_system
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
int(&) functions(const void *v1, const void *v2)
Abstract base class for mapping classes.
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
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
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
InternalData(std::unique_ptr< typename FESystem< dim, spacedim >::InternalData > fesystem_data)
#define DEAL_II_NAMESPACE_OPEN
virtual std::string get_name() const override
std::function< bool(const typename Triangulation< dim, spacedim >::cell_iterator &)> predicate_function
@ matrix
Contents is actually a matrix.
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
std::vector< std::vector< std::vector< unsigned int > > > base_no_mult_local_enriched_dofs
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)
const FESystem< dim, spacedim > & get_fe_system() const
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
std::vector< std::vector< EnrichmentValues > > enrichment
const FiniteElement< dim, spacedim > & fe_base
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
std::map< unsigned int, std::map< unsigned int, unsigned int > > cellwise_color_predicate_map
hp::FECollection< dim, spacedim > fe_collection
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) 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
const hp::FECollection< dim, spacedim > & build_fe_collection(hp::DoFHandler< dim, spacedim > &dof_handler)
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)
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
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > & get_fe_output_object(const unsigned int base_no) const
std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)> cell_iterator_function
#define DEAL_II_NAMESPACE_CLOSE
std::vector< unsigned int > predicate_colors
std::unique_ptr< typename FESystem< dim, spacedim >::InternalData > fesystem_data
const std::vector< std::vector< std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)> > > get_enrichments() const
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
FE_Enriched(const FiniteElement< dim, spacedim > &fe_base, const FiniteElement< dim, spacedim > &fe_enriched, const Function< spacedim > *enrichment_function)
const std::vector< predicate_function< dim, spacedim > > predicates
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)
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)