15#ifndef dealii_dof_tools_h
16#define dealii_dof_tools_h
43template <
int dim,
typename RangeNumberType>
45template <
int dim,
int spacedim>
49 template <
int dim,
int spacedim>
50 class MappingCollection;
51 template <
int dim,
int spacedim>
54template <
typename MeshType>
57template <
int dim,
int spacedim>
59template <
int dim,
class T>
61template <
typename Number>
66 template <
typename CellIterator>
67 struct PeriodicFacePair;
80 template <
int dim,
int spacedim>
82 always_couple_on_faces(
270 template <
int dim,
int spacedim>
281 template <
int dim,
int spacedim>
294 template <
int dim,
int spacedim>
295 std::vector<Table<2, Coupling>>
422 template <
int dim,
int spacedim,
typename number =
double>
428 const bool keep_constrained_dofs =
true,
496 template <
int dim,
int spacedim,
typename number =
double>
503 const bool keep_constrained_dofs =
true,
526 template <
int dim,
int spacedim>
577 template <
int dim,
int spacedim>
590 template <
int dim,
int spacedim,
typename number>
596 const bool keep_constrained_dofs =
true,
619 template <
int dim,
int spacedim>
655 template <
int dim,
int spacedim,
typename number>
661 const bool keep_constrained_dofs,
667 const unsigned int)> &face_has_flux_coupling =
668 &internal::always_couple_on_faces<dim, spacedim>);
679 template <
int dim,
int spacedim>
683 const std::vector<types::global_dof_index> &dof_to_boundary_mapping,
703 template <
int dim,
int spacedim,
typename number>
709 const std::vector<types::global_dof_index> &dof_to_boundary_mapping,
759 template <
int dim,
int spacedim,
typename number>
831 template <
int dim,
int spacedim>
835 const unsigned int coarse_component,
837 const unsigned int fine_component,
858 template <
int dim,
int spacedim>
862 const unsigned int coarse_component,
864 const unsigned int fine_component,
866 std::vector<std::map<types::global_dof_index, float>>
867 &transfer_representation);
955 template <
typename FaceIterator,
typename number>
958 const FaceIterator &face_1,
962 const unsigned char combined_orientation =
965 const std::vector<unsigned int> &first_vector_components =
966 std::vector<unsigned int>(),
967 const number periodicity_factor = 1.);
989 template <
int dim,
int spacedim,
typename number>
996 const std::vector<unsigned int> &first_vector_components =
997 std::vector<unsigned int>(),
998 const number periodicity_factor = 1.);
1031 template <
int dim,
int spacedim,
typename number>
1036 const unsigned int direction,
1039 const number periodicity_factor = 1.);
1068 template <
int dim,
int spacedim,
typename number>
1072 const unsigned int direction,
1075 const number periodicity_factor = 1.);
1105 template <
typename FaceIterator,
typename number>
1108 const FaceIterator &face_1,
1113 const unsigned char combined_orientation,
1114 const number periodicity_factor,
1135 template <
int dim,
int spacedim>
1171 template <
int dim,
int spacedim>
1199 template <
int dim,
int spacedim>
1208 template <
int dim,
int spacedim>
1213 std::vector<bool> &selected_dofs);
1219 template <
int dim,
int spacedim>
1224 std::vector<bool> &selected_dofs);
1268 template <
int dim,
int spacedim>
1272 const std::set<types::boundary_id> &boundary_ids = {});
1290 template <
int dim,
int spacedim>
1295 std::vector<bool> &selected_dofs,
1296 const std::set<types::boundary_id> &boundary_ids =
1297 std::set<types::boundary_id>());
1326 template <
int dim,
int spacedim,
typename number =
double>
1330 const std::function<
1370 template <
int dim,
int spacedim>
1374 std::vector<std::vector<bool>> &constant_modes);
1379 template <
int dim,
int spacedim>
1384 std::vector<std::vector<bool>> &constant_modes);
1471 template <
int dim,
int spacedim>
1472 std::map<
typename DoFHandler<dim - 1, spacedim>::active_cell_iterator,
1473 std::pair<typename DoFHandler<dim, spacedim>::active_cell_iterator,
1499 template <
int dim,
int spacedim>
1503 std::vector<bool> &selected_dofs);
1519 template <
int dim,
int spacedim>
1539 template <
int dim,
int spacedim>
1540 DEAL_II_DEPRECATED_EARLY
void
1550 template <
int dim,
int spacedim>
1554 const unsigned int level);
1564 template <
int dim,
int spacedim>
1565 DEAL_II_DEPRECATED_EARLY
void
1569 const unsigned int level);
1580 template <
int dim,
int spacedim>
1594 template <
int dim,
int spacedim>
1595 DEAL_II_DEPRECATED_EARLY
void
1608 template <
int dim,
int spacedim>
1609 std::vector<IndexSet>
1626 template <
int dim,
int spacedim>
1627 std::vector<IndexSet>
1645 template <
int dim,
int spacedim>
1646 std::vector<IndexSet>
1654 template <
int dim,
int spacedim>
1658 const unsigned int level);
1666 template <
int dim,
int spacedim>
1667 DEAL_II_DEPRECATED_EARLY
void
1670 const unsigned int level,
1704 template <
int dim,
int spacedim>
1707 std::vector<types::subdomain_id> &subdomain);
1734 template <
int dim,
int spacedim>
1759 template <
int dim,
int spacedim>
1764 std::vector<unsigned int> &n_dofs_on_subdomain);
1787 template <
int dim,
int spacedim>
1848 template <
int dim,
int spacedim>
1849 std::vector<types::global_dof_index>
1874 template <
int dim,
int spacedim>
1878 const unsigned int level,
1879 const std::vector<bool> &selected_dofs = {},
1933 template <
int dim,
int spacedim>
1934 std::vector<unsigned int>
1937 const unsigned int level,
1938 const bool interior_dofs_only,
1939 const bool boundary_patches =
false,
1940 const bool level_boundary_patches =
false,
1941 const bool single_cell_patches =
false,
1942 const bool invert_vertex_mapping =
false);
1958 template <
int dim,
int spacedim>
1959 std::vector<unsigned int>
1962 const unsigned int level,
1964 const bool boundary_patches =
false,
1965 const bool level_boundary_patches =
false,
1966 const bool single_cell_patches =
false,
1967 const bool invert_vertex_mapping =
false);
2006 template <
int dim,
int spacedim>
2010 const unsigned int level,
2011 const bool interior_dofs_only,
2012 const bool boundary_dofs =
false);
2033 template <
int dim,
int spacedim>
2037 const unsigned int level,
2038 const bool interior_dofs_only =
false);
2082 template <
int dim,
int spacedim>
2083 std::vector<types::global_dof_index>
2086 const bool vector_valued_once =
false,
2087 const std::vector<unsigned int> &target_component = {});
2105 template <
int dim,
int spacedim>
2106 std::vector<types::global_dof_index>
2108 const std::vector<unsigned int> &target_block =
2109 std::vector<unsigned int>());
2126 template <
int dim,
int spacedim>
2129 std::vector<unsigned int> &active_fe_indices);
2158 template <
int dim,
int spacedim>
2186 template <
int dim,
int spacedim>
2189 std::vector<types::global_dof_index> &mapping);
2201 template <
int dim,
int spacedim>
2204 const std::set<types::boundary_id> &boundary_ids,
2205 std::vector<types::global_dof_index> &mapping);
2235 template <
int dim,
int spacedim>
2245 template <
int dim,
int spacedim>
2282 template <
int dim,
int spacedim>
2283 std::map<types::global_dof_index, Point<spacedim>>
2291 template <
int dim,
int spacedim>
2292 std::map<types::global_dof_index, Point<spacedim>>
2303 template <
int dim,
int spacedim>
2316 template <
int dim,
int spacedim>
2345 template <
int dim,
int spacedim,
class Comp>
2351 &point_to_index_map);
2389 template <
int dim,
int spacedim,
typename Number>
2394 const unsigned int component = 0);
2474 template <
int spacedim>
2521 template <
int dim,
int spacedim,
typename number>
2539 template <
int dim,
int spacedim,
typename number>
2634 template <
int dim,
int spacedim,
class Comp>
2640 &point_to_index_map)
2645 std::vector<Point<spacedim>> support_points(dof_handler.
n_dofs());
2650 point_to_index_map.clear();
2652 point_to_index_map[support_points[i]] = i;
types::global_dof_index n_dofs() const
Abstract base class for mapping classes.
static constexpr unsigned char default_combined_face_orientation()
#define DEAL_II_DEPRECATED
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
static ::ExceptionBase & ExcGridNotCoarser()
static ::ExceptionBase & ExcInvalidBoundaryIndicator()
static ::ExceptionBase & ExcFiniteElementsDontMatch()
static ::ExceptionBase & ExcNoFESelected()
static ::ExceptionBase & ExcGridsDontMatch()
typename ActiveSelector::cell_iterator cell_iterator
typename ActiveSelector::active_cell_iterator active_cell_iterator
void compute_intergrid_transfer_representation(const DoFHandler< dim, spacedim > &coarse_grid, const unsigned int coarse_component, const DoFHandler< dim, spacedim > &fine_grid, const unsigned int fine_component, const InterGridMap< DoFHandler< dim, spacedim > > &coarse_to_fine_grid_map, std::vector< std::map< types::global_dof_index, float > > &transfer_representation)
void make_hanging_node_constraints(const DoFHandler< dim, spacedim > &dof_handler, AffineConstraints< number > &constraints)
void make_sparsity_pattern(const DoFHandler< dim, spacedim > &dof_handler, SparsityPatternBase &sparsity_pattern, const AffineConstraints< number > &constraints={}, const bool keep_constrained_dofs=true, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id)
void compute_intergrid_constraints(const DoFHandler< dim, spacedim > &coarse_grid, const unsigned int coarse_component, const DoFHandler< dim, spacedim > &fine_grid, const unsigned int fine_component, const InterGridMap< DoFHandler< dim, spacedim > > &coarse_to_fine_grid_map, AffineConstraints< double > &constraints)
void make_zero_boundary_constraints(const DoFHandler< dim, spacedim > &dof, const types::boundary_id boundary_id, AffineConstraints< number > &zero_boundary_constraints, const ComponentMask &component_mask={})
void make_flux_sparsity_pattern(const DoFHandler< dim, spacedim > &dof_handler, SparsityPatternBase &sparsity_pattern)
void make_boundary_sparsity_pattern(const DoFHandler< dim, spacedim > &dof, const std::vector< types::global_dof_index > &dof_to_boundary_mapping, SparsityPatternBase &sparsity_pattern)
UpdateFlags & operator|=(UpdateFlags &f1, const UpdateFlags f2)
InitializeLibrary operator|(const InitializeLibrary f1, const InitializeLibrary f2)
@ matrix
Contents is actually a matrix.
const types::subdomain_id invalid_subdomain_id
static const unsigned int invalid_unsigned_int
typename type_identity< T >::type type_identity_t
unsigned int subdomain_id
unsigned int global_dof_index