17 #include <deal.II/base/std_cxx14/memory.h> 19 #include <deal.II/fe/fe_enriched.h> 20 #include <deal.II/fe/fe_tools.h> 22 #include <deal.II/lac/sparsity_tools.h> 24 DEAL_II_NAMESPACE_OPEN
37 std::vector<unsigned int>
38 build_multiplicities(
const std::vector<std::vector<T>> &functions)
40 std::vector<unsigned int> multiplicities;
41 multiplicities.push_back(1);
42 for (
unsigned int i = 0; i < functions.size(); i++)
43 multiplicities.push_back(functions[i].size());
45 return multiplicities;
52 template <
int dim,
int spacedim>
53 std::vector<const FiniteElement<dim, spacedim> *>
58 std::vector<const FiniteElement<dim, spacedim> *> fes;
59 fes.push_back(fe_base);
60 for (
unsigned int i = 0; i < fe_enriched.size(); i++)
61 fes.push_back(fe_enriched[i]);
71 template <
int dim,
int spacedim>
75 const std::vector<unsigned int> & multiplicities,
77 const typename ::Triangulation<dim, spacedim>::cell_iterator
83 "FEs and multiplicities should have the same size"));
91 const unsigned int n_comp_base = fes[0]->n_components();
94 for (
unsigned int fe = 1; fe < fes.size(); fe++)
102 "Only dominating FE_Nothing can be used in FE_Enriched"));
107 "All elements must have the same number of components"));
117 template <
int dim,
int spacedim>
123 for (
unsigned int fe = 1; fe < fes.size(); fe++)
135 template <
int dim,
int spacedim>
145 template <
int dim,
int spacedim>
154 const typename
Triangulation<dim, spacedim>::cell_iterator &)>>>(
157 const typename
Triangulation<dim, spacedim>::cell_iterator &)>>(
159 [=](const typename
Triangulation<dim, spacedim>::cell_iterator &)
160 -> const
Function<spacedim> * {
return enrichment_function; })))
164 template <
int dim,
int spacedim>
177 template <
int dim,
int spacedim>
180 const std::vector<unsigned int> & multiplicities,
184 FETools::Compositing::multiply_dof_numbers(fes, multiplicities, false),
185 FETools::Compositing::compute_restriction_is_additive_flags(
188 FETools::Compositing::compute_nonzero_components(fes,
191 , enrichments(functions)
197 Assert(internal::FE_Enriched::consistency_check(fes,
207 for (
unsigned int fe = 1; fe < fes.size(); fe++)
215 for (
unsigned int system_index = 0; system_index < this->
dofs_per_cell;
218 const unsigned int base_no =
223 const unsigned int base_m =
228 "Size mismatch for base_no_mult_local_enriched_dofs: " 231 "; base_no = " + std::to_string(base_no) +
232 "; base_m = " + std::to_string(base_m) +
233 "; system_index = " + std::to_string(system_index)));
244 for (
unsigned int base_no = 1;
248 for (
unsigned int m = 0;
252 fes[base_no]->dofs_per_cell,
260 template <
int dim,
int spacedim>
261 const std::vector<std::vector<std::function<const Function<spacedim> *(
269 template <
int dim,
int spacedim>
277 "For enriched finite elements shape_value() can not be defined on the reference element."));
278 return fe_system->shape_value(i, p);
282 template <
int dim,
int spacedim>
283 std::unique_ptr<FiniteElement<dim, spacedim>>
286 std::vector<const FiniteElement<dim, spacedim> *> fes;
287 std::vector<unsigned int> multiplicities;
289 for (
unsigned int i = 0; i < this->n_base_elements(); i++)
291 fes.push_back(&base_element(i));
292 multiplicities.push_back(this->element_multiplicity(i));
295 return std::unique_ptr<FE_Enriched<dim, spacedim>>(
300 template <
int dim,
int spacedim>
304 UpdateFlags out = fe_system->requires_update_flags(flags);
323 template <
int dim,
int spacedim>
325 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
333 auto update_each_flags = fes_data->update_each;
334 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
335 data_ptr = std_cxx14::make_unique<InternalData>(std::move(fes_data));
342 data.enrichment.resize(this->n_base_elements());
344 const unsigned int n_q_points = quadrature.
size();
346 for (
unsigned int base = 0; base < this->n_base_elements(); ++base)
348 data.enrichment[base].resize(this->element_multiplicity(base));
349 for (
unsigned int m = 0; m < this->element_multiplicity(base); ++m)
352 data.enrichment[base][m].values.resize(n_q_points);
355 data.enrichment[base][m].gradients.resize(n_q_points);
358 data.enrichment[base][m].hessians.resize(n_q_points);
366 template <
int dim,
int spacedim>
367 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
376 fe_system->get_face_data(update_flags, mapping, quadrature, output_data);
385 template <
int dim,
int spacedim>
386 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
396 fe_system->get_subface_data(update_flags, mapping, quadrature, output_data);
405 template <
int dim,
int spacedim>
406 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
414 auto data = fe_system->get_data(flags, mapping, quadrature, output_data);
423 template <
int dim,
int spacedim>
427 const std::vector<unsigned int> & multiplicities)
429 Assert(fes.size() == multiplicities.size(),
434 this->base_to_block_indices.reinit(0, 0);
436 for (
unsigned int i = 0; i < fes.size(); i++)
437 if (multiplicities[i] > 0)
438 this->base_to_block_indices.push_back(multiplicities[i]);
443 this->system_to_component_table.resize(this->dofs_per_cell);
444 this->face_system_to_component_table.resize(this->dofs_per_face);
447 this->system_to_component_table,
448 this->component_to_base_table,
453 this->face_system_to_base_table,
454 this->face_system_to_component_table,
463 this->interface_constraints = fe_system->interface_constraints;
472 this->unit_support_points = fe_system->unit_support_points;
473 this->unit_face_support_points = fe_system->unit_face_support_points;
478 this->adjust_line_dof_index_for_line_orientation_table =
479 fe_system->adjust_line_dof_index_for_line_orientation_table;
484 template <
int dim,
int spacedim>
488 std::ostringstream namebuf;
491 for (
unsigned int i = 0; i < this->n_base_elements(); ++i)
493 namebuf << base_element(i).get_name();
494 if (this->element_multiplicity(i) != 1)
495 namebuf <<
'^' << this->element_multiplicity(i);
496 if (i != this->n_base_elements() - 1)
501 return namebuf.str();
505 template <
int dim,
int spacedim>
509 return fe_system->base_element(index);
513 template <
int dim,
int spacedim>
521 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
528 Assert(dynamic_cast<const InternalData *>(&fe_internal) !=
nullptr,
530 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
533 fe_system->fill_fe_values(cell,
539 *fe_data.fesystem_data,
543 multiply_by_enrichment(
544 quadrature, fe_data, mapping_data, cell, output_data);
548 template <
int dim,
int spacedim>
552 const unsigned int face_no,
556 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
563 Assert(dynamic_cast<const InternalData *>(&fe_internal) !=
nullptr,
565 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
568 fe_system->fill_fe_face_values(cell,
574 *fe_data.fesystem_data,
578 multiply_by_enrichment(
579 quadrature, fe_data, mapping_data, cell, output_data);
583 template <
int dim,
int spacedim>
587 const unsigned int face_no,
588 const unsigned int sub_no,
592 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
599 Assert(dynamic_cast<const InternalData *>(&fe_internal) !=
nullptr,
601 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
604 fe_system->fill_fe_subface_values(cell,
611 *fe_data.fesystem_data,
615 multiply_by_enrichment(
616 quadrature, fe_data, mapping_data, cell, output_data);
620 template <
int dim,
int spacedim>
642 const unsigned int n_q_points = quadrature.
size();
652 for (
unsigned int base_no = 1; base_no < this->n_base_elements(); base_no++)
663 for (
unsigned int system_index = 0; system_index < this->dofs_per_cell;
665 if (this->system_to_base_table[system_index].first.first == base_no)
667 const unsigned int base_index =
668 this->system_to_base_table[system_index].second;
677 unsigned int out_index = 0;
678 for (
unsigned int i = 0; i < system_index; ++i)
679 out_index += this->n_nonzero_components(i);
680 unsigned int in_index = 0;
681 for (
unsigned int i = 0; i < base_index; ++i)
685 Assert(this->n_nonzero_components(system_index) ==
688 for (
unsigned int s = 0;
689 s < this->n_nonzero_components(system_index);
693 for (
unsigned int q = 0; q < n_q_points; ++q)
695 base_data.shape_values(in_index + s, q);
698 for (
unsigned int q = 0; q < n_q_points; ++q)
700 base_data.shape_gradients[in_index + s][q];
703 for (
unsigned int q = 0; q < n_q_points; ++q)
705 base_data.shape_hessians[in_index + s][q];
710 Assert(base_no_mult_local_enriched_dofs.size() == fe_data.
enrichment.size(),
714 for (
unsigned int base_no = 1; base_no < this->n_base_elements(); base_no++)
717 base_no_mult_local_enriched_dofs[base_no].size() ==
721 for (
unsigned int m = 0;
722 m < base_no_mult_local_enriched_dofs[base_no].size();
728 if (base_no_mult_local_enriched_dofs[base_no][m].size() == 0)
731 Assert(enrichments[base_no - 1][m](cell) !=
nullptr,
733 "The pointer to the enrichment function is not set"));
737 "Only scalar-valued enrichment functions are allowed"));
744 fe_data.
enrichment[base_no][m].hessians.size(),
746 for (
unsigned int q = 0; q < n_q_points; q++)
748 enrichments[base_no - 1][m](cell)->hessian(
757 fe_data.
enrichment[base_no][m].gradients.size(),
759 for (
unsigned int q = 0; q < n_q_points; q++)
761 enrichments[base_no - 1][m](cell)->gradient(
771 for (
unsigned int q = 0; q < n_q_points; q++)
773 enrichments[base_no - 1][m](cell)->value(
787 for (
unsigned int base_no = 1; base_no < this->n_base_elements();
790 for (
unsigned int m = 0;
791 m < base_no_mult_local_enriched_dofs[base_no].size();
793 for (
unsigned int i = 0;
794 i < base_no_mult_local_enriched_dofs[base_no][m].size();
797 const unsigned int enriched_dof =
798 base_no_mult_local_enriched_dofs[base_no][m][i];
799 for (
unsigned int q = 0; q < n_q_points; ++q)
819 for (
unsigned int base_no = 1; base_no < this->n_base_elements(); base_no++)
821 for (
unsigned int m = 0;
822 m < base_no_mult_local_enriched_dofs[base_no].size();
824 for (
unsigned int i = 0;
825 i < base_no_mult_local_enriched_dofs[base_no][m].size();
828 const unsigned int enriched_dof =
829 base_no_mult_local_enriched_dofs[base_no][m][i];
830 for (
unsigned int q = 0; q < n_q_points; ++q)
842 for (
unsigned int base_no = 1; base_no < this->n_base_elements(); base_no++)
844 for (
unsigned int m = 0;
845 m < base_no_mult_local_enriched_dofs[base_no].size();
847 for (
unsigned int i = 0;
848 i < base_no_mult_local_enriched_dofs[base_no][m].size();
851 const unsigned int enriched_dof =
852 base_no_mult_local_enriched_dofs[base_no][m][i];
853 for (
unsigned int q = 0; q < n_q_points; ++q)
863 template <
int dim,
int spacedim>
871 template <
int dim,
int spacedim>
879 template <
int dim,
int spacedim>
888 fe_system->get_face_interpolation_matrix(fe_enr_other->get_fe_system(),
896 spacedim>::ExcInterpolationNotImplemented()));
901 template <
int dim,
int spacedim>
905 const unsigned int subface,
911 fe_system->get_subface_interpolation_matrix(fe_enr_other->get_fe_system(),
920 spacedim>::ExcInterpolationNotImplemented()));
925 template <
int dim,
int spacedim>
926 std::vector<std::pair<unsigned int, unsigned int>>
933 return fe_system->hp_vertex_dof_identities(fe_enr_other->get_fe_system());
938 return std::vector<std::pair<unsigned int, unsigned int>>();
943 template <
int dim,
int spacedim>
944 std::vector<std::pair<unsigned int, unsigned int>>
951 return fe_system->hp_line_dof_identities(fe_enr_other->get_fe_system());
956 return std::vector<std::pair<unsigned int, unsigned int>>();
961 template <
int dim,
int spacedim>
962 std::vector<std::pair<unsigned int, unsigned int>>
969 return fe_system->hp_quad_dof_identities(fe_enr_other->get_fe_system());
974 return std::vector<std::pair<unsigned int, unsigned int>>();
979 template <
int dim,
int spacedim>
983 const unsigned int codim)
const 1002 return fe_system->compare_for_domination(fe_enr_other->get_fe_system(),
1013 template <
int dim,
int spacedim>
1016 const unsigned int child,
1019 return fe_system->get_prolongation_matrix(child, refinement_case);
1023 template <
int dim,
int spacedim>
1026 const unsigned int child,
1029 return fe_system->get_restriction_matrix(child, refinement_case);
1036 template <
int dim,
int spacedim>
1039 : fesystem_data(
std::move(fesystem_data))
1043 template <
int dim,
int spacedim>
1046 const unsigned int base_no)
const 1048 return fesystem_data->get_fe_data(base_no);
1052 template <
int dim,
int spacedim>
1055 const unsigned int base_no)
const 1057 return fesystem_data->get_fe_output_object(base_no);
1065 template <
int dim,
int spacedim>
1067 find_connection_between_subdomains(
1069 const predicate_function<dim, spacedim> &predicate_1,
1070 const predicate_function<dim, spacedim> &predicate_2)
1073 std::vector<bool> vertices_subdomain_1(
1078 if (predicate_1(cell))
1079 for (
unsigned int v = 0; v < GeometryInfo<dim>::vertices_per_cell;
1081 vertices_subdomain_1[cell->vertex_index(v)] =
true;
1085 if (predicate_2(cell))
1086 for (
unsigned int v = 0; v < GeometryInfo<dim>::vertices_per_cell;
1088 if (vertices_subdomain_1[cell->vertex_index(v)] ==
true)
1097 template <
int dim,
int spacedim>
1101 const std::vector<predicate_function<dim, spacedim>> &predicates,
1102 std::vector<unsigned int> & predicate_colors)
1104 const unsigned int num_indices = predicates.size();
1109 dsp.
reinit(num_indices, num_indices);
1116 for (
unsigned int i = 0; i < num_indices; ++i)
1117 for (
unsigned int j = i + 1; j < num_indices; ++j)
1118 if (internal::find_connection_between_subdomains(mesh,
1129 predicate_colors.resize(num_indices);
1137 template <
int dim,
int spacedim>
1139 set_cellwise_color_set_and_fe_index(
1141 const std::vector<predicate_function<dim, spacedim>> &predicates,
1142 const std::vector<unsigned int> & predicate_colors,
1143 std::map<
unsigned int, std::map<unsigned int, unsigned int>>
1144 & cellwise_color_predicate_map,
1145 std::vector<std::set<unsigned int>> &fe_sets)
1149 cellwise_color_predicate_map.clear();
1177 unsigned int map_index = 0;
1181 cell->set_active_fe_index(0);
1190 cell->set_material_id(map_index);
1191 std::set<unsigned int> color_list;
1199 std::map<unsigned int, unsigned int> &cell_map =
1200 cellwise_color_predicate_map[map_index];
1201 for (
unsigned int i = 0; i < predicates.size(); ++i)
1203 if (predicates[i](cell))
1209 auto ret = cell_map.insert(
1210 std::pair<unsigned int, unsigned int>(predicate_colors[i],
1215 "Only one enrichment function per color"));
1217 color_list.insert(predicate_colors[i]);
1234 if (!color_list.empty())
1237 std::find(fe_sets.begin(), fe_sets.end(), color_list);
1239 if (it == fe_sets.end())
1241 fe_sets.push_back(color_list);
1242 cell->set_active_fe_index(fe_sets.size() - 1);
1247 cell->set_active_fe_index(std::distance(fe_sets.begin(), it));
1294 const unsigned int fe_index = cell->active_fe_index();
1295 const std::set<unsigned int> fe_set = fe_sets.at(fe_index);
1296 for (
unsigned int face = 0; face < GeometryInfo<dim>::faces_per_cell;
1303 if (!cell->at_boundary(face) &&
1304 cell->material_id() < cell->neighbor(face)->material_id())
1306 const auto nbr_fe_index =
1307 cell->neighbor(face)->active_fe_index();
1310 const auto nbr_fe_set = fe_sets.at(nbr_fe_index);
1313 std::set<unsigned int> intersection_set;
1314 std::set_intersection(
1319 std::inserter(intersection_set, intersection_set.begin()));
1322 if (!intersection_set.empty())
1324 const auto it = std::find(fe_sets.begin(),
1328 if (it == fe_sets.end())
1330 fe_sets.push_back(intersection_set);
1340 template <
int dim,
int spacedim>
1342 make_colorwise_enrichment_functions(
1343 const unsigned int n_colors,
1345 const std::map<
unsigned int, std::map<unsigned int, unsigned int>>
1346 &cellwise_color_predicate_map,
1351 color_enrichments.clear();
1367 color_enrichments.resize(n_colors);
1368 for (
unsigned int i = 0; i < n_colors; ++i)
1370 color_enrichments[i] =
1373 const unsigned int id = cell->material_id();
1380 return enrichments[cellwise_color_predicate_map.at(
id).at(i + 1)]
1388 template <
int dim,
int spacedim>
1390 make_fe_collection_from_colored_enrichments(
1391 const unsigned int n_colors,
1392 const std::vector<std::set<unsigned int>> &fe_sets,
1395 & color_enrichments,
1402 const std::function<const Function<spacedim> *(
1408 ExcMessage(
"Called enrichment function for FE_Nothing"));
1416 for (
const auto &fe_set : fe_sets)
1418 std::vector<const FiniteElement<dim, spacedim> *> vec_fe_enriched(
1419 n_colors, &fe_nothing);
1420 std::vector<std::vector<std::function<const Function<spacedim> *(
1422 functions(n_colors, {dummy_function});
1424 for (
const unsigned int color_id : fe_set)
1429 const unsigned int ind = color_id - 1;
1439 vec_fe_enriched[ind] = &fe_enriched;
1443 functions[ind][0] = color_enrichments[ind];
1458 template <
int dim,
int spacedim>
1465 , fe_enriched(fe_enriched)
1467 , predicates(predicates)
1469 , n_colors(
numbers::invalid_unsigned_int)
1474 ExcMessage(
"Number of predicates should be positive"));
1479 template <
int dim,
int spacedim>
1487 internal::color_predicates(dof_handler, predicates, predicate_colors);
1490 internal::set_cellwise_color_set_and_fe_index(dof_handler,
1493 cellwise_color_predicate_map,
1497 internal::make_colorwise_enrichment_functions<dim, spacedim>(
1498 n_colors, enrichments, cellwise_color_predicate_map, color_enrichments);
1501 internal::make_fe_collection_from_colored_enrichments(n_colors,
1509 return fe_collection;
1515 #include "fe_enriched.inst" 1517 DEAL_II_NAMESPACE_CLOSE
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
bool is_dominating() const
virtual const FiniteElement< dim, spacedim > & base_element(const unsigned int index) const override
#define AssertDimension(dim1, dim2)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
InternalData(std::unique_ptr< typename FESystem< dim, spacedim >::InternalData > fesystem_data)
unsigned int n_nonzero_components(const unsigned int i) const
FE_Enriched(const FiniteElement< dim, spacedim > &fe_base, const FiniteElement< dim, spacedim > &fe_enriched, const Function< spacedim > *enrichment_function)
void initialize(const std::vector< const FiniteElement< dim, spacedim > *> &fes, const std::vector< unsigned int > &multiplicities)
SymmetricTensor< 2, dim, Number > symmetrize(const Tensor< 2, dim, Number > &t)
const FiniteElement< dim, spacedim > & fe_enriched
void add(const size_type i, const size_type j)
internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > & get_fe_output_object(const unsigned int base_no) const
#define AssertIndexRange(index, range)
const hp::FECollection< dim, spacedim > & build_fe_collection(hp::DoFHandler< dim, spacedim > &dof_handler)
std::vector< std::vector< EnrichmentValues > > enrichment
std::function< bool(const typename Triangulation< dim, spacedim >::cell_iterator &)> predicate_function
Transformed quadrature points.
#define AssertThrow(cond, exc)
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
std::unique_ptr< To > dynamic_unique_cast(std::unique_ptr< From > &&p)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
virtual std::string get_name() const override
const std::vector< std::vector< std::function< const Function< spacedim > *(const typename Triangulation< dim, spacedim >::cell_iterator &)> > > enrichments
const FESystem< dim, spacedim > & get_fe_system() const
static ::ExceptionBase & ExcMessage(std::string arg1)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
void push_back(const FiniteElement< dim, spacedim > &new_fe)
Third derivatives of shape functions.
#define Assert(cond, exc)
IteratorRange< active_cell_iterator > active_cell_iterators() const
FiniteElement< dim, spacedim >::InternalDataBase & get_fe_data(const unsigned int base_no) const
void reinit(const size_type m, const size_type n, const IndexSet &rowset=IndexSet())
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
Abstract base class for mapping classes.
SymmetricTensor< 4, dim, Number > outer_product(const SymmetricTensor< 2, dim, Number > &t1, const SymmetricTensor< 2, dim, Number > &t2)
void copy_from(const size_type n_rows, const size_type n_cols, const ForwardIterator begin, const ForwardIterator end)
Second derivatives of shape functions.
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
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
std::string dim_string(const int dim, const int spacedim)
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
unsigned int size() const
const unsigned int dofs_per_cell
const FiniteElement< dim, spacedim > & fe_base
const std::vector< predicate_function< dim, spacedim > > predicates
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
unsigned int n_components() const
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
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
Shape function gradients.
std::vector< std::vector< std::vector< unsigned int > > > base_no_mult_local_enriched_dofs
const Triangulation< dim, spacedim > & get_triangulation() const
std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > system_to_base_table
static ::ExceptionBase & ExcNotImplemented()
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
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
unsigned int n_components(const DoFHandler< dim, spacedim > &dh)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
const std::vector< std::shared_ptr< Function< spacedim > > > enrichments
unsigned int n_base_elements() const
virtual bool hp_constraints_are_implemented() const override
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
static ::ExceptionBase & ExcInternalError()