38 count_nonzeros(
const std::vector<unsigned int> &vec)
40 return std::count_if(vec.begin(), vec.end(), [](
const unsigned int i) {
48template <
int dim,
int spacedim>
50 const unsigned int n_base_elements)
51 : base_fe_datas(n_base_elements)
52 , base_fe_output_objects(n_base_elements)
57template <
int dim,
int spacedim>
61 for (
unsigned int i = 0; i < base_fe_datas.size(); ++i)
62 base_fe_datas[i].reset();
66template <
int dim,
int spacedim>
69 const unsigned int base_no)
const
72 return *base_fe_datas[base_no];
77template <
int dim,
int spacedim>
80 const unsigned int base_no,
84 base_fe_datas[base_no] = std::move(ptr);
89template <
int dim,
int spacedim>
92 const unsigned int base_no)
const
95 return base_fe_output_objects[base_no];
103template <
int dim,
int spacedim>
107template <
int dim,
int spacedim>
109 const unsigned int n_elements)
115 , base_elements((n_elements > 0))
117 std::vector<const FiniteElement<dim, spacedim> *> fes;
119 std::vector<unsigned int> multiplicities;
120 multiplicities.push_back(n_elements);
121 initialize(fes, multiplicities);
126template <
int dim,
int spacedim>
128 const unsigned int n1,
130 const unsigned int n2)
138 , base_elements((n1 > 0) + (n2 > 0))
140 std::vector<const FiniteElement<dim, spacedim> *> fes;
143 std::vector<unsigned int> multiplicities;
144 multiplicities.push_back(n1);
145 multiplicities.push_back(n2);
146 initialize(fes, multiplicities);
151template <
int dim,
int spacedim>
153 const unsigned int n1,
155 const unsigned int n2,
157 const unsigned int n3)
172 , base_elements((n1 > 0) + (n2 > 0) + (n3 > 0))
174 std::vector<const FiniteElement<dim, spacedim> *> fes;
178 std::vector<unsigned int> multiplicities;
179 multiplicities.push_back(n1);
180 multiplicities.push_back(n2);
181 multiplicities.push_back(n3);
182 initialize(fes, multiplicities);
187template <
int dim,
int spacedim>
189 const unsigned int n1,
191 const unsigned int n2,
193 const unsigned int n3,
195 const unsigned int n4)
221 , base_elements((n1 > 0) + (n2 > 0) + (n3 > 0) + (n4 > 0))
223 std::vector<const FiniteElement<dim, spacedim> *> fes;
228 std::vector<unsigned int> multiplicities;
229 multiplicities.push_back(n1);
230 multiplicities.push_back(n2);
231 multiplicities.push_back(n3);
232 multiplicities.push_back(n4);
233 initialize(fes, multiplicities);
238template <
int dim,
int spacedim>
240 const unsigned int n1,
242 const unsigned int n2,
244 const unsigned int n3,
246 const unsigned int n4,
248 const unsigned int n5)
251 multiply_dof_numbers(&fe1, n1, &fe2, n2, &fe3, n3, &fe4, n4, &fe5, n5),
272 , base_elements((n1 > 0) + (n2 > 0) + (n3 > 0) + (n4 > 0) + (n5 > 0))
274 std::vector<const FiniteElement<dim, spacedim> *> fes;
280 std::vector<unsigned int> multiplicities;
281 multiplicities.push_back(n1);
282 multiplicities.push_back(n2);
283 multiplicities.push_back(n3);
284 multiplicities.push_back(n4);
285 multiplicities.push_back(n5);
286 initialize(fes, multiplicities);
291template <
int dim,
int spacedim>
294 const std::vector<unsigned int> & multiplicities)
301 , base_elements(count_nonzeros(multiplicities))
303 initialize(fes, multiplicities);
308template <
int dim,
int spacedim>
319 std::ostringstream namebuf;
332 return namebuf.str();
337template <
int dim,
int spacedim>
338std::unique_ptr<FiniteElement<dim, spacedim>>
341 std::vector<const FiniteElement<dim, spacedim> *> fes;
342 std::vector<unsigned int> multiplicities;
349 return std::make_unique<FESystem<dim, spacedim>>(fes, multiplicities);
354template <
int dim,
int spacedim>
357 const unsigned int first_component,
358 const unsigned int n_selected_components)
const
361 ExcMessage(
"Invalid arguments (not a part of this FiniteElement)."));
363 const unsigned int base_index =
365 const unsigned int component_in_base =
367 const unsigned int base_components =
372 if (n_selected_components <= base_components)
374 .
get_sub_fe(component_in_base, n_selected_components);
377 ExcMessage(
"You can not select a part of a FiniteElement."));
383template <
int dim,
int spacedim>
394 .
shape_value(this->system_to_base_table[i].second, p));
399template <
int dim,
int spacedim>
402 const unsigned int i,
404 const unsigned int component)
const
420 const unsigned int component_in_base =
435template <
int dim,
int spacedim>
446 .
shape_grad(this->system_to_base_table[i].second, p));
451template <
int dim,
int spacedim>
454 const unsigned int i,
456 const unsigned int component)
const
468 const unsigned int component_in_base =
480template <
int dim,
int spacedim>
496template <
int dim,
int spacedim>
499 const unsigned int i,
501 const unsigned int component)
const
513 const unsigned int component_in_base =
525template <
int dim,
int spacedim>
541template <
int dim,
int spacedim>
544 const unsigned int i,
546 const unsigned int component)
const
558 const unsigned int component_in_base =
570template <
int dim,
int spacedim>
586template <
int dim,
int spacedim>
589 const unsigned int i,
591 const unsigned int component)
const
603 const unsigned int component_in_base =
615template <
int dim,
int spacedim>
625 Assert((interpolation_matrix.
m() == this->n_dofs_per_cell()) ||
628 this->n_dofs_per_cell()));
630 (this->n_dofs_per_cell() == 0),
640 (x_source_fe.
get_name().find(
"FESystem<") == 0) ||
667 std::vector<FullMatrix<double>> base_matrices(this->
n_base_elements());
679 interpolation_matrix = 0;
684 interpolation_matrix(i, j) =
692template <
int dim,
int spacedim>
695 const unsigned int child,
702 "Restriction matrices are only available for refined cells!"));
706 if (this->
restriction[refinement_case - 1][child].n() == 0)
708 std::lock_guard<std::mutex> lock(this->
mutex);
711 if (this->
restriction[refinement_case - 1][child].n() ==
713 return this->
restriction[refinement_case - 1][child];
716 bool do_restriction =
true;
719 std::vector<const FullMatrix<double> *> base_matrices(
727 do_restriction =
false;
759 const unsigned int base =
762 const unsigned int base_index_i =
770 (*base_matrices[base])(base_index_i, base_index_j);
778 return this->
restriction[refinement_case - 1][child];
783template <
int dim,
int spacedim>
786 const unsigned int child,
793 "Restriction matrices are only available for refined cells!"));
798 if (this->
prolongation[refinement_case - 1][child].n() == 0)
800 std::lock_guard<std::mutex> lock(this->
mutex);
802 if (this->
prolongation[refinement_case - 1][child].n() ==
806 bool do_prolongation =
true;
807 std::vector<const FullMatrix<double> *> base_matrices(
814 do_prolongation =
false;
830 const unsigned int base =
833 const unsigned int base_index_i =
838 (*base_matrices[base])(base_index_i, base_index_j);
849template <
int dim,
int spacedim>
852 const unsigned int face,
853 const bool face_orientation,
854 const bool face_flip,
855 const bool face_rotation)
const
860 const std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
863 const unsigned int base_face_to_cell_index =
876 const std::pair<std::pair<unsigned int, unsigned int>,
unsigned int> target =
877 std::make_pair(face_base_index.first, base_face_to_cell_index);
894template <
int dim,
int spacedim>
901 for (
unsigned int base_no = 0; base_no < this->
n_base_elements(); ++base_no)
908template <
int dim,
int spacedim>
909std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
925 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
927 auto &data =
dynamic_cast<InternalData &
>(*data_ptr);
942 for (
unsigned int base_no = 0; base_no < this->
n_base_elements(); ++base_no)
945 &base_fe_output_object = data.get_fe_output_object(base_no);
960 base_fe_output_object);
962 data.set_fe_data(base_no, std::move(base_fe_data));
971template <
int dim,
int spacedim>
972std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
988 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
990 auto &data =
dynamic_cast<InternalData &
>(*data_ptr);
1005 for (
unsigned int base_no = 0; base_no < this->
n_base_elements(); ++base_no)
1008 &base_fe_output_object = data.get_fe_output_object(base_no);
1021 flags, mapping, quadrature, base_fe_output_object);
1023 data.set_fe_data(base_no, std::move(base_fe_data));
1034template <
int dim,
int spacedim>
1035std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
1051 std::unique_ptr<typename FiniteElement<dim, spacedim>::InternalDataBase>
1053 auto &data =
dynamic_cast<InternalData &
>(*data_ptr);
1069 for (
unsigned int base_no = 0; base_no < this->
n_base_elements(); ++base_no)
1072 &base_fe_output_object = data.get_fe_output_object(base_no);
1085 flags, mapping, quadrature, base_fe_output_object);
1087 data.set_fe_data(base_no, std::move(base_fe_data));
1095template <
int dim,
int spacedim>
1103 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
1125template <
int dim,
int spacedim>
1129 const unsigned int face_no,
1133 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
1155template <
int dim,
int spacedim>
1159 const unsigned int face_no,
1160 const unsigned int sub_no,
1164 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
1186template <
int dim,
int spacedim>
1192 const unsigned int face_no,
1193 const unsigned int sub_no,
1207 Assert(
dynamic_cast<const InternalData *
>(&fe_internal) !=
nullptr,
1209 const InternalData &fe_data =
static_cast<const InternalData &
>(fe_internal);
1230 for (
unsigned int base_no = 0; base_no < this->
n_base_elements(); ++base_no)
1234 fe_data.get_fe_data(base_no);
1237 &base_data = fe_data.get_fe_output_object(base_no);
1243 const Quadrature<dim - 1> * sub_face_quadrature =
nullptr;
1244 const unsigned int n_q_points = quadrature.
size() == 1 ?
1245 quadrature[0].
size() :
1246 quadrature[face_no].
size();
1253 const Subscriptor *quadrature_base_pointer = &quadrature[0];
1256 quadrature_base_pointer) !=
nullptr,
1264 const Subscriptor *quadrature_base_pointer = &quadrature;
1267 quadrature_base_pointer) !=
nullptr,
1271 quadrature_base_pointer);
1275 const Subscriptor *quadrature_base_pointer = &quadrature[0];
1278 quadrature_base_pointer) !=
nullptr,
1281 sub_face_quadrature =
1282 static_cast<const Quadrature<dim - 1
> *>(quadrature_base_pointer);
1315 *sub_face_quadrature,
1335 const UpdateFlags base_flags = base_fe_data.update_each;
1342 for (
unsigned int system_index = 0;
1347 const unsigned int base_index =
1358 unsigned int out_index = 0;
1359 for (
unsigned int i = 0; i < system_index; ++i)
1361 unsigned int in_index = 0;
1362 for (
unsigned int i = 0; i < base_index; ++i)
1371 for (
unsigned int s = 0;
1374 for (
unsigned int q = 0; q < n_q_points; ++q)
1376 base_data.shape_values(in_index + s, q);
1379 for (
unsigned int s = 0;
1382 for (
unsigned int q = 0; q < n_q_points; ++q)
1384 base_data.shape_gradients[in_index + s][q];
1387 for (
unsigned int s = 0;
1390 for (
unsigned int q = 0; q < n_q_points; ++q)
1392 base_data.shape_hessians[in_index + s][q];
1395 for (
unsigned int s = 0;
1398 for (
unsigned int q = 0; q < n_q_points; ++q)
1400 base_data.shape_3rd_derivatives[in_index + s][q];
1406template <
int dim,
int spacedim>
1413 const unsigned int face_no = 0;
1444 const std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
1449 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int> m_index;
1471 const unsigned int index_in_line =
1473 const unsigned int sub_line =
1481 const unsigned int tmp1 =
1500 const unsigned int tmp2 =
1530 const unsigned int index_in_line =
1533 const unsigned int sub_line =
1538 const unsigned int tmp1 =
1548 const unsigned int tmp2 =
1565 const unsigned int index_in_quad =
1571 const unsigned int sub_quad =
1593 const unsigned int tmp2 =
1621 if (n_index.first == m_index.first)
1630template <
int dim,
int spacedim>
1634 const std::vector<unsigned int> & multiplicities)
1636 Assert(fes.size() == multiplicities.size(),
1639 ExcMessage(
"Need to pass at least one finite element."));
1640 Assert(count_nonzeros(multiplicities) > 0,
1641 ExcMessage(
"You only passed FiniteElements with multiplicity 0."));
1648 for (
unsigned int i = 0; i < fes.size(); i++)
1649 if (multiplicities[i] > 0)
1655 unsigned int ind = 0;
1656 for (
unsigned int i = 0; i < fes.size(); i++)
1657 if (multiplicities[i] > 0)
1683 for (
unsigned int face_no = 0; face_no < this->
n_unique_faces(); ++face_no)
1711 for (
unsigned int base_el = 0; base_el < this->
n_base_elements(); ++base_el)
1750 bool flag_has_no_support_points =
false;
1758 flag_has_no_support_points =
true;
1763 if (flag_has_no_support_points)
1773 const unsigned int base_i =
1775 const unsigned int index_in_base =
1814 for (
const auto &
point :
1846 const auto &points =
1848 for (
unsigned int j = 0; j < points.size(); ++j)
1872 unsigned int index = 0;
1880 for (
unsigned int i = 0; i < temp.size(0); ++i)
1881 for (
unsigned int j = 0; j < 8; ++j)
1883 [face_no](index + i, j) = temp(i, j);
1884 index += temp.size(0);
1892 this->n_dofs_per_line(),
1894 unsigned int index = 0;
1897 const std::vector<int> &temp2 =
1905 this->adjust_line_dof_index_for_line_orientation_table.begin() +
1907 index += temp2.size();
1914 init_tasks.join_all();
1919template <
int dim,
int spacedim>
1932template <
int dim,
int spacedim>
1937 const unsigned int face_no)
const
1939 Assert(interpolation_matrix.
n() == this->n_dofs_per_face(face_no),
1941 this->n_dofs_per_face(face_no)));
1956 if (
const auto *fe_other_system =
1960 interpolation_matrix = 0;
1964 unsigned int base_index = 0, base_index_other = 0;
1965 unsigned int multiplicity = 0, multiplicity_other = 0;
1980 base_to_base_interpolation.reinit(base_other.n_dofs_per_face(face_no),
1983 base_to_base_interpolation,
1991 std::make_pair(base_index, multiplicity))
1992 for (
unsigned int j = 0;
1993 j < fe_other_system->n_dofs_per_face(face_no);
1995 if (fe_other_system->face_system_to_base_index(j, face_no)
1997 std::make_pair(base_index_other, multiplicity_other))
1998 interpolation_matrix(j, i) = base_to_base_interpolation(
1999 fe_other_system->face_system_to_base_index(j, face_no)
2001 this->face_system_to_base_index(i, face_no).second);
2012 ++multiplicity_other;
2013 if (multiplicity_other ==
2014 fe_other_system->element_multiplicity(base_index_other))
2016 multiplicity_other = 0;
2024 Assert(base_index_other == fe_other_system->n_base_elements(),
2031 Assert(base_index_other != fe_other_system->n_base_elements(),
2048template <
int dim,
int spacedim>
2052 const unsigned int subface,
2054 const unsigned int face_no)
const
2057 (x_source_fe.
get_name().find(
"FESystem<") == 0) ||
2061 Assert(interpolation_matrix.
n() == this->n_dofs_per_face(face_no),
2063 this->n_dofs_per_face(face_no)));
2080 if (fe_other_system !=
nullptr)
2083 interpolation_matrix = 0;
2087 unsigned int base_index = 0, base_index_other = 0;
2088 unsigned int multiplicity = 0, multiplicity_other = 0;
2103 base_to_base_interpolation.reinit(base_other.n_dofs_per_face(face_no),
2107 base_to_base_interpolation,
2115 std::make_pair(base_index, multiplicity))
2116 for (
unsigned int j = 0;
2121 std::make_pair(base_index_other, multiplicity_other))
2122 interpolation_matrix(j, i) = base_to_base_interpolation(
2125 this->face_system_to_base_index(i, face_no).second);
2136 ++multiplicity_other;
2137 if (multiplicity_other ==
2140 multiplicity_other = 0;
2163 fe_other_system !=
nullptr,
2171template <
int dim,
int spacedim>
2172template <
int structdim>
2173std::vector<std::pair<unsigned int, unsigned int>>
2176 const unsigned int face_no)
const
2195 unsigned int base_index = 0, base_index_other = 0;
2196 unsigned int multiplicity = 0, multiplicity_other = 0;
2200 unsigned int dof_offset = 0, dof_offset_other = 0;
2202 std::vector<std::pair<unsigned int, unsigned int>> identities;
2216 std::vector<std::pair<unsigned int, unsigned int>> base_identities;
2233 for (
const auto &base_identity : base_identities)
2234 identities.emplace_back(base_identity.first + dof_offset,
2235 base_identity.second + dof_offset_other);
2238 dof_offset += base.template n_dofs_per_object<structdim>();
2240 base_other.template n_dofs_per_object<structdim>();
2251 ++multiplicity_other;
2252 if (multiplicity_other ==
2255 multiplicity_other = 0;
2279 return std::vector<std::pair<unsigned int, unsigned int>>();
2285template <
int dim,
int spacedim>
2286std::vector<std::pair<unsigned int, unsigned int>>
2290 return hp_object_dof_identities<0>(fe_other);
2293template <
int dim,
int spacedim>
2294std::vector<std::pair<unsigned int, unsigned int>>
2298 return hp_object_dof_identities<1>(fe_other);
2303template <
int dim,
int spacedim>
2304std::vector<std::pair<unsigned int, unsigned int>>
2307 const unsigned int face_no)
const
2309 return hp_object_dof_identities<2>(fe_other, face_no);
2314template <
int dim,
int spacedim>
2318 const unsigned int codim)
const
2341 fe_sys_other->base_element(
b).n_components(),
2344 fe_sys_other->element_multiplicity(
b),
2351 fe_sys_other->base_element(
b), codim));
2352 domination = domination & base_domination;
2364template <
int dim,
int spacedim>
2374template <
int dim,
int spacedim>
2377 const unsigned int shape_index,
2378 const unsigned int face_index)
const
2387template <
int dim,
int spacedim>
2393 (this->unit_support_points.size() == 0),
2408template <
int dim,
int spacedim>
2411 const unsigned int index,
2412 const unsigned int face_no)
const
2426 ->unit_face_support_points[this->
n_unique_faces() == 1 ? 0 : face_no]
2434 this->face_system_to_base_index(index, face_no).second, face_no));
2439template <
int dim,
int spacedim>
2440std::pair<Table<2, bool>, std::vector<unsigned int>>
2450 const std::pair<Table<2, bool>, std::vector<unsigned int>> base_table =
2459 if (constant_modes.n_rows() <
2462 Table<2, bool> new_constant_modes(comp + base_table.first.n_rows() *
2464 constant_modes.n_cols());
2465 for (
unsigned int r = 0; r < comp; ++r)
2467 new_constant_modes(r, c) = constant_modes(r, c);
2468 constant_modes.swap(new_constant_modes);
2475 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int> ind =
2477 if (ind.first.first == i)
2478 for (
unsigned int c = 0; c < base_table.first.n_rows(); ++c)
2479 constant_modes(comp +
2480 ind.first.second * base_table.first.n_rows() + c,
2481 k) = base_table.first(c, ind.second);
2484 for (
const unsigned int c : base_table.second)
2489 return std::pair<Table<2, bool>, std::vector<unsigned int>>(constant_modes,
2495template <
int dim,
int spacedim>
2499 std::vector<double> & dof_values)
const
2502 ExcMessage(
"The FESystem does not have generalized support points"));
2505 this->get_generalized_support_points().size());
2508 std::vector<double> base_dof_values;
2509 std::vector<Vector<double>> base_point_values;
2514 unsigned int current_vector_component = 0;
2515 for (
unsigned int base = 0; base <
base_elements.size(); ++base)
2528 if (n_base_dofs == 0)
2530 current_vector_component += multiplicity * n_base_components;
2536 const unsigned int n_base_points =
2539 base_dof_values.resize(n_base_dofs);
2540 base_point_values.resize(n_base_points);
2542 for (
unsigned int m = 0; m < multiplicity;
2543 ++m, current_vector_component += n_base_components)
2547 for (
unsigned int j = 0; j < base_point_values.size(); ++j)
2549 base_point_values[j].reinit(n_base_components,
false);
2558 const auto end =
begin + n_base_components;
2564 base_point_values, base_dof_values);
2575 std::make_pair(base, m))
2589 for (
unsigned int m = 0; m < multiplicity; ++m)
2592 std::make_pair(base, m))
2593 dof_values[i] = std::numeric_limits<double>::signaling_NaN();
2595 current_vector_component += multiplicity * n_base_components;
2602template <
int dim,
int spacedim>
2619#include "fe_system.inst"
void push_back(const size_type size)
void reinit(const unsigned int n_blocks, const size_type n_elements_per_block)
void set_fe_data(const unsigned int base_no, std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase >)
InternalData(const unsigned int n_base_elements)
FiniteElement< dim, spacedim >::InternalDataBase & get_fe_data(const unsigned int base_no) const
internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > & get_fe_output_object(const unsigned int base_no) const
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
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const override
virtual const FiniteElement< dim, spacedim > & base_element(const unsigned int index) const override
void compute_fill(const Mapping< dim, spacedim > &mapping, const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const unsigned int sub_no, const hp::QCollection< dim_1 > &quadrature, const CellSimilarity::Similarity cell_similarity, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const typename FiniteElement< dim, spacedim >::InternalDataBase &fe_data, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
virtual Point< dim > unit_support_point(const unsigned int index) const override
virtual unsigned int face_to_cell_index(const unsigned int face_dof_index, const unsigned int face, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false) const override
std::vector< std::pair< std::unique_ptr< const FiniteElement< dim, spacedim > >, unsigned int > > base_elements
virtual Tensor< 3, dim > shape_3rd_derivative(const unsigned int i, const Point< dim > &p) 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::string get_name() const override
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
virtual const FiniteElement< dim, spacedim > & get_sub_fe(const unsigned int first_component, const unsigned int n_selected_components) const override
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const override
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
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 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 Tensor< 3, dim > shape_3rd_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const override
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
virtual std::unique_ptr< typename FiniteElement< dim, spacedim >::InternalDataBase > get_face_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const hp::QCollection< dim - 1 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const override
static const unsigned int invalid_face_number
virtual bool hp_constraints_are_implemented() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
void build_interface_constraints()
virtual Tensor< 4, dim > shape_4th_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual Point< dim - 1 > unit_face_support_point(const unsigned int index, const unsigned int face_no=0) 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
void initialize(const std::vector< const FiniteElement< dim, spacedim > * > &fes, const std::vector< unsigned int > &multiplicities)
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &dof_values) const override
std::vector< std::pair< unsigned int, unsigned int > > hp_object_dof_identities(const FiniteElement< dim, spacedim > &fe_other, const unsigned int face_no=0) const
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual double shape_value(const unsigned int i, const Point< dim > &p) const override
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 Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
std::vector< std::vector< std::size_t > > generalized_support_points_index_table
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
virtual std::size_t memory_consumption() const override
virtual Tensor< 4, dim > shape_4th_derivative(const unsigned int i, const Point< dim > &p) const override
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
unsigned int n_dofs_per_vertex() const
const unsigned int components
unsigned int n_dofs_per_cell() const
unsigned int n_dofs_per_line() const
unsigned int n_dofs_per_face(unsigned int face_no=0, unsigned int child=0) const
unsigned int n_components() const
unsigned int n_unique_faces() const
unsigned int n_dofs_per_quad(unsigned int face_no=0) const
bool constraints_are_implemented(const ::internal::SubfaceCase< dim > &subface_case=::internal::SubfaceCase< dim >::case_isotropic) const
virtual std::string get_name() const =0
virtual Point< dim > unit_support_point(const unsigned int index) const
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const
virtual std::unique_ptr< InternalDataBase > get_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const =0
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
virtual const FiniteElement< dim, spacedim > & base_element(const unsigned int index) const
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const
virtual std::unique_ptr< InternalDataBase > get_face_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const hp::QCollection< dim - 1 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
std::pair< unsigned int, unsigned int > component_to_base_index(const unsigned int component) const
virtual Point< dim - 1 > unit_face_support_point(const unsigned int index, const unsigned int face_no=0) const
virtual std::unique_ptr< 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
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
bool has_support_points() const
std::vector< std::vector< FullMatrix< double > > > restriction
bool has_generalized_support_points() const
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const
std::vector< Table< 2, int > > adjust_quad_dof_index_for_face_orientation_table
BlockIndices base_to_block_indices
bool is_primitive() const
std::vector< int > adjust_line_dof_index_for_line_orientation_table
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
virtual unsigned int face_to_cell_index(const unsigned int face_dof_index, const unsigned int face, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false) const
const FiniteElement< dim, spacedim > & get_sub_fe(const ComponentMask &mask) 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 InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const =0
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
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 InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const =0
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual Tensor< 3, dim > shape_3rd_derivative(const unsigned int i, const Point< dim > &p) const
std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > system_to_base_table
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > system_to_base_index(const unsigned int index) const
std::vector< std::pair< unsigned int, unsigned int > > system_to_component_table
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > face_system_to_base_index(const unsigned int index, const unsigned int face_no=0) const
const FullMatrix< double > & constraints(const ::internal::SubfaceCase< dim > &subface_case=::internal::SubfaceCase< dim >::case_isotropic) const
unsigned int element_multiplicity(const unsigned int index) const
std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > component_to_base_table
TableIndices< 2 > interface_constraints_size() const
std::vector< std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > > face_system_to_base_table
std::vector< Point< dim > > unit_support_points
std::vector< std::vector< std::pair< unsigned int, unsigned int > > > face_system_to_component_table
unsigned int n_nonzero_components(const unsigned int i) const
FullMatrix< double > interface_constraints
const std::vector< Point< dim > > & get_generalized_support_points() const
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 InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const =0
unsigned int n_base_elements() const
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
virtual double shape_value(const unsigned int i, const Point< dim > &p) const
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const
virtual std::size_t memory_consumption() const
virtual Tensor< 4, dim > shape_4th_derivative(const unsigned int i, const Point< dim > &p) const
std::vector< Point< dim > > generalized_support_points
const std::vector< ComponentMask > nonzero_components
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual bool hp_constraints_are_implemented() const
std::vector< std::vector< FullMatrix< double > > > prolongation
unsigned int size() const
unsigned int size() const
unsigned int max_n_quadrature_points() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
@ update_hessians
Second derivatives of shape functions.
@ update_values
Shape function values.
@ update_3rd_derivatives
Third derivatives of shape functions.
@ update_gradients
Shape function gradients.
@ update_default
No update.
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
#define AssertDimension(dim1, dim2)
#define AssertIndexRange(index, range)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
static ::ExceptionBase & ExcInterpolationNotImplemented()
static ::ExceptionBase & ExcMessage(std::string arg1)
#define AssertThrow(cond, exc)
Task< RT > new_task(const std::function< RT()> &function)
@ neither_element_dominates
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
Point< spacedim > point(const gp_Pnt &p, const double tolerance=1e-10)
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
VectorType::value_type * end(VectorType &V)
VectorType::value_type * begin(VectorType &V)
std::string dim_string(const int dim, const int spacedim)
void copy(const T *begin, const T *end, U *dest)
static const unsigned int invalid_unsigned_int