
Public Types | |
| typedef IteratorSelector::CellAccessor | cell_accessor |
| typedef IteratorSelector::FaceAccessor | face_accessor |
| typedef IteratorSelector::raw_line_iterator | raw_line_iterator |
| typedef IteratorSelector::line_iterator | line_iterator |
| typedef IteratorSelector::active_line_iterator | active_line_iterator |
| typedef IteratorSelector::raw_quad_iterator | raw_quad_iterator |
| typedef IteratorSelector::quad_iterator | quad_iterator |
| typedef IteratorSelector::active_quad_iterator | active_quad_iterator |
| typedef IteratorSelector::raw_hex_iterator | raw_hex_iterator |
| typedef IteratorSelector::hex_iterator | hex_iterator |
| typedef IteratorSelector::active_hex_iterator | active_hex_iterator |
| typedef IteratorSelector::raw_cell_iterator | raw_cell_iterator |
| typedef IteratorSelector::cell_iterator | cell_iterator |
| typedef IteratorSelector::active_cell_iterator | active_cell_iterator |
| typedef IteratorSelector::raw_face_iterator | raw_face_iterator |
| typedef IteratorSelector::face_iterator | face_iterator |
| typedef IteratorSelector::active_face_iterator | active_face_iterator |
| typedef FunctionMap< spacedim > ::type | FunctionMap |
Public Member Functions | |
| DoFHandler (const Triangulation< dim, spacedim > &tria) | |
| virtual | ~DoFHandler () |
| virtual void | distribute_dofs (const hp::FECollection< dim, spacedim > &fe) |
| void | set_active_fe_indices (const std::vector< unsigned int > &active_fe_indices) |
| void | get_active_fe_indices (std::vector< unsigned int > &active_fe_indices) const |
| virtual void | clear () |
| void | renumber_dofs (const std::vector< unsigned int > &new_numbers) |
| unsigned int | max_couplings_between_dofs () const |
| unsigned int | max_couplings_between_boundary_dofs () const |
| unsigned int | n_dofs () const |
| unsigned int | n_boundary_dofs () const |
| unsigned int | n_boundary_dofs (const FunctionMap &boundary_indicators) const |
| unsigned int | n_boundary_dofs (const std::set< unsigned char > &boundary_indicators) const |
| unsigned int | n_locally_owned_dofs () const |
| const IndexSet & | locally_owned_dofs () const |
| const std::vector< IndexSet > & | locally_owned_dofs_per_processor () const |
| const std::vector< unsigned int > & | n_locally_owned_dofs_per_processor () const |
| const hp::FECollection< dim, spacedim > & | get_fe () const |
| const Triangulation< dim, spacedim > & | get_tria () const |
| virtual std::size_t | memory_consumption () const |
Cell iterator functions | |
| raw_cell_iterator | begin_raw (const unsigned int level=0) const |
| cell_iterator | begin (const unsigned int level=0) const |
| active_cell_iterator | begin_active (const unsigned int level=0) const |
| raw_cell_iterator | end () const |
| cell_iterator | end (const unsigned int level) const |
| raw_cell_iterator | end_raw (const unsigned int level) const |
| active_cell_iterator | end_active (const unsigned int level) const |
| raw_cell_iterator | last_raw () const |
| raw_cell_iterator | last_raw (const unsigned int level) const |
| cell_iterator | last () const |
| cell_iterator | last (const unsigned int level) const |
| active_cell_iterator | last_active () const |
| active_cell_iterator | last_active (const unsigned int level) const |
Face iterator functions | |
| raw_face_iterator | begin_raw_face () const |
| face_iterator | begin_face () const |
| active_face_iterator | begin_active_face () const |
| raw_face_iterator | end_face () const |
| raw_face_iterator | end_raw_face () const |
| active_face_iterator | end_active_face () const |
| raw_face_iterator | last_raw_face () const |
| face_iterator | last_face () const |
| active_face_iterator | last_active_face () const |
Line iterator functions | |
| raw_line_iterator | begin_raw_line (const unsigned int level=0) const |
| line_iterator | begin_line (const unsigned int level=0) const |
| active_line_iterator | begin_active_line (const unsigned int level=0) const |
| raw_line_iterator | end_line () const |
| line_iterator | end_line (const unsigned int level) const |
| raw_line_iterator | end_raw_line (const unsigned int level) const |
| active_line_iterator | end_active_line (const unsigned int level) const |
| raw_line_iterator | last_raw_line () const |
| raw_line_iterator | last_raw_line (const unsigned int level) const |
| line_iterator | last_line () const |
| line_iterator | last_line (const unsigned int level) const |
| active_line_iterator | last_active_line () const |
| active_line_iterator | last_active_line (const unsigned int level) const |
Quad iterator functions | |
| raw_quad_iterator | begin_raw_quad (const unsigned int level=0) const |
| quad_iterator | begin_quad (const unsigned int level=0) const |
| active_quad_iterator | begin_active_quad (const unsigned int level=0) const |
| raw_quad_iterator | end_quad () const |
| quad_iterator | end_quad (const unsigned int level) const |
| raw_quad_iterator | end_raw_quad (const unsigned int level) const |
| active_quad_iterator | end_active_quad (const unsigned int level) const |
| raw_quad_iterator | last_raw_quad () const |
| raw_quad_iterator | last_raw_quad (const unsigned int level) const |
| quad_iterator | last_quad () const |
| quad_iterator | last_quad (const unsigned int level) const |
| active_quad_iterator | last_active_quad () const |
| active_quad_iterator | last_active_quad (const unsigned int level) const |
Hex iterator functions | |
| raw_hex_iterator | begin_raw_hex (const unsigned int level=0) const |
| hex_iterator | begin_hex (const unsigned int level=0) const |
| active_hex_iterator | begin_active_hex (const unsigned int level=0) const |
| raw_hex_iterator | end_hex () const |
| hex_iterator | end_hex (const unsigned int level) const |
| raw_hex_iterator | end_raw_hex (const unsigned int level) const |
| active_hex_iterator | end_active_hex (const unsigned int level) const |
| raw_hex_iterator | last_raw_hex () const |
| raw_hex_iterator | last_raw_hex (const unsigned int level) const |
| hex_iterator | last_hex () const |
| hex_iterator | last_hex (const unsigned int level) const |
| active_hex_iterator | last_active_hex () const |
| active_hex_iterator | last_active_hex (const unsigned int level) const |
Static Public Member Functions | |
| ::ExceptionBase & | ExcInvalidTriangulation () |
| ::ExceptionBase & | ExcNoFESelected () |
| ::ExceptionBase & | ExcRenumberingIncomplete () |
| ::ExceptionBase & | ExcGridsDoNotMatch () |
| ::ExceptionBase & | ExcInvalidBoundaryIndicator () |
| ::ExceptionBase & | ExcMatrixHasWrongSize (int arg1) throw (errortext << "The matrix has the wrong dimension " << arg1 ) |
| ::ExceptionBase & | ExcFunctionNotUseful () |
| ::ExceptionBase & | ExcNewNumbersNotConsecutive (int arg1) throw (errortext << "The given list of new dof indices is not consecutive: " << "the index " << arg1 << " does not exist." ) |
| ::ExceptionBase & | ExcInvalidFEIndex (int arg1, int arg2) throw (errortext << "The mesh contains a cell with an active_fe_index of " << arg1 << ", but the finite element collection only has " << arg2 << " elements" ) |
| ::ExceptionBase & | ExcInvalidLevel (int arg1) throw (errortext << "The given level " << arg1 << " is not in the valid range!" ) |
| ::ExceptionBase & | ExcFacesHaveNoLevel () |
| ::ExceptionBase & | ExcEmptyLevel (int arg1) throw (errortext << "You tried to do something on level " << arg1 << ", but this level is empty." ) |
Static Public Attributes | |
| static const unsigned int | dimension = dim |
| static const unsigned int | space_dimension = spacedim |
| static const unsigned int | invalid_dof_index = numbers::invalid_unsigned_int |
| static const unsigned int | default_fe_index = numbers::invalid_unsigned_int |
Protected Attributes | |
| SmartPointer< const Triangulation< dim, spacedim > , DoFHandler< dim, spacedim > > | tria |
| SmartPointer< const hp::FECollection< dim, spacedim >, hp::DoFHandler < dim, spacedim > > | finite_elements |
Private Types | |
| typedef internal::DoFHandler::Iterators < DoFHandler< dim, spacedim > > | IteratorSelector |
Private Member Functions | |
| DoFHandler (const DoFHandler &) | |
| DoFHandler & | operator= (const DoFHandler &) |
| void | clear_space () |
| void | create_active_fe_table () |
| void | pre_refinement_action () |
| void | post_refinement_action () |
| void | compute_vertex_dof_identities (std::vector< unsigned int > &new_dof_indices) const |
| void | compute_line_dof_identities (std::vector< unsigned int > &new_dof_indices) const |
| void | compute_quad_dof_identities (std::vector< unsigned int > &new_dof_indices) const |
| void | renumber_dofs_internal (const std::vector< unsigned int > &new_numbers, internal::int2type< 0 >) |
| void | renumber_dofs_internal (const std::vector< unsigned int > &new_numbers, internal::int2type< 1 >) |
| void | renumber_dofs_internal (const std::vector< unsigned int > &new_numbers, internal::int2type< 2 >) |
| void | renumber_dofs_internal (const std::vector< unsigned int > &new_numbers, internal::int2type< 3 >) |
Private Attributes | |
| std::vector < internal::hp::DoFLevel< dim > * > | levels |
| internal::hp::DoFFaces< dim > * | faces |
| internal::DoFHandler::NumberCache | number_cache |
| std::vector< unsigned int > | vertex_dofs |
| std::vector< unsigned int > | vertex_dofs_offsets |
| std::vector< std::vector< bool > * > | has_children |
| std::vector < boost::signals2::connection > | tria_listeners |
Friends | |
| class | ::DoFAccessor |
| class | ::DoFCellAccessor |
| struct | internal::DoFAccessor::Implementation |
| struct | internal::DoFCellAccessor::Implementation |
| class | internal::hp::DoFLevel |
| class | internal::hp::DoFObjects |
| struct | internal::hp::DoFHandler::Implementation |
Related Functions | |
(Note that these are not member functions.) | |
Auxiliary functions | |
| template<int dim, int spacedim> | |
| unsigned int | max_dofs_per_cell (const hp::DoFHandler< dim, spacedim > &dh) |
| template<int dim, int spacedim> | |
| unsigned int | max_dofs_per_face (const hp::DoFHandler< dim, spacedim > &dh) |
| template<int dim, int spacedim> | |
| unsigned int | max_dofs_per_vertex (const hp::DoFHandler< dim, spacedim > &dh) |
| template<int dim, int spacedim> | |
| unsigned int | n_components (const hp::DoFHandler< dim, spacedim > &dh) |
| template<int dim, int spacedim> | |
| bool | fe_is_primitive (const hp::DoFHandler< dim, spacedim > &dh) |
Manage the distribution and numbering of the degrees of freedom for hp-FEM algorithms.
This class has not yet been implemented for the use in the codimension one case (spacedim != dim ).
Definition at line 76 of file dof_handler.h.
typedef internal::DoFHandler::Iterators<DoFHandler<dim,spacedim> > hp::DoFHandler< dim, spacedim >::IteratorSelector [private] |
Definition at line 78 of file dof_handler.h.
| typedef IteratorSelector::CellAccessor hp::DoFHandler< dim, spacedim >::cell_accessor |
Definition at line 80 of file dof_handler.h.
| typedef IteratorSelector::FaceAccessor hp::DoFHandler< dim, spacedim >::face_accessor |
Definition at line 81 of file dof_handler.h.
| typedef IteratorSelector::raw_line_iterator hp::DoFHandler< dim, spacedim >::raw_line_iterator |
Definition at line 83 of file dof_handler.h.
| typedef IteratorSelector::line_iterator hp::DoFHandler< dim, spacedim >::line_iterator |
Definition at line 84 of file dof_handler.h.
| typedef IteratorSelector::active_line_iterator hp::DoFHandler< dim, spacedim >::active_line_iterator |
Definition at line 85 of file dof_handler.h.
| typedef IteratorSelector::raw_quad_iterator hp::DoFHandler< dim, spacedim >::raw_quad_iterator |
Definition at line 87 of file dof_handler.h.
| typedef IteratorSelector::quad_iterator hp::DoFHandler< dim, spacedim >::quad_iterator |
Definition at line 88 of file dof_handler.h.
| typedef IteratorSelector::active_quad_iterator hp::DoFHandler< dim, spacedim >::active_quad_iterator |
Definition at line 89 of file dof_handler.h.
| typedef IteratorSelector::raw_hex_iterator hp::DoFHandler< dim, spacedim >::raw_hex_iterator |
Definition at line 91 of file dof_handler.h.
| typedef IteratorSelector::hex_iterator hp::DoFHandler< dim, spacedim >::hex_iterator |
Definition at line 92 of file dof_handler.h.
| typedef IteratorSelector::active_hex_iterator hp::DoFHandler< dim, spacedim >::active_hex_iterator |
Definition at line 93 of file dof_handler.h.
| typedef IteratorSelector::raw_cell_iterator hp::DoFHandler< dim, spacedim >::raw_cell_iterator |
Definition at line 95 of file dof_handler.h.
| typedef IteratorSelector::cell_iterator hp::DoFHandler< dim, spacedim >::cell_iterator |
Definition at line 96 of file dof_handler.h.
| typedef IteratorSelector::active_cell_iterator hp::DoFHandler< dim, spacedim >::active_cell_iterator |
Definition at line 97 of file dof_handler.h.
| typedef IteratorSelector::raw_face_iterator hp::DoFHandler< dim, spacedim >::raw_face_iterator |
Definition at line 99 of file dof_handler.h.
| typedef IteratorSelector::face_iterator hp::DoFHandler< dim, spacedim >::face_iterator |
Definition at line 100 of file dof_handler.h.
| typedef IteratorSelector::active_face_iterator hp::DoFHandler< dim, spacedim >::active_face_iterator |
Definition at line 101 of file dof_handler.h.
| typedef FunctionMap<spacedim>::type hp::DoFHandler< dim, spacedim >::FunctionMap |
Alias the FunctionMap type declared elsewhere.
Definition at line 107 of file dof_handler.h.
| hp::DoFHandler< dim, spacedim >::DoFHandler | ( | const Triangulation< dim, spacedim > & | tria ) |
Constructor. Take tria as the triangulation to work on.
| virtual hp::DoFHandler< dim, spacedim >::~DoFHandler | ( | ) | [virtual] |
Destructor.
| hp::DoFHandler< dim, spacedim >::DoFHandler | ( | const DoFHandler< dim, spacedim > & | ) | [private] |
Copy constructor. I can see no reason why someone might want to use it, so I don't provide it. Since this class has pointer members, making it private prevents the compiler to provide it's own, incorrect one if anyone chose to copy such an object.
| virtual void hp::DoFHandler< dim, spacedim >::distribute_dofs | ( | const hp::FECollection< dim, spacedim > & | fe ) | [virtual] |
Go through the triangulation and distribute the degrees of freedoms needed for the given finite element according to the current distribution of active fe indices.
A pointer of the transferred finite element is stored. Therefore, the lifetime of the finite element object shall be longer than that of this object. If you don't want this behaviour, you may want to call the clear member function which also releases the lock of this object to the finite element.
| void hp::DoFHandler< dim, spacedim >::set_active_fe_indices | ( | const std::vector< unsigned int > & | active_fe_indices ) |
Go through the triangulation and set the active FE indices of all active cells to the values given in active_fe_indices.
| void hp::DoFHandler< dim, spacedim >::get_active_fe_indices | ( | std::vector< unsigned int > & | active_fe_indices ) | const |
Go through the triangulation and store the active FE indices of all active cells to the vector active_fe_indices. This vector is resized, if necessary.
| virtual void hp::DoFHandler< dim, spacedim >::clear | ( | ) | [virtual] |
Clear all data of this object and especially delete the lock this object has to the finite element used the last time when distribute_dofs was called.
| void hp::DoFHandler< dim, spacedim >::renumber_dofs | ( | const std::vector< unsigned int > & | new_numbers ) |
Renumber degrees of freedom based on a list of new dof numbers for all the dofs.
new_numbers is an array of integers with size equal to the number of dofs on the present grid. It stores the new indices after renumbering in the order of the old indices.
This function is called by the functions in DoFRenumbering function after computing the ordering of the degrees of freedom. However, you can call this function yourself, which is necessary if a user wants to implement an ordering scheme herself, for example downwind numbering.
The new_number array must have a size equal to the number of degrees of freedom. Each entry must state the new global DoF number of the degree of freedom referenced.
| unsigned int hp::DoFHandler< dim, spacedim >::max_couplings_between_dofs | ( | ) | const |
Return the maximum number of degrees of freedom a degree of freedom in the given triangulation with the given finite element may couple with. This is the maximum number of entries per line in the system matrix; this information can therefore be used upon construction of the SparsityPattern object.
The returned number is not really the maximum number but an estimate based on the finite element and the maximum number of cells meeting at a vertex. The number holds for the constrained matrix also.
As for DoFHandler::max_couplings_between_dofs(), the result of this function is often not very accurate for 3d and/or high polynomial degrees. The consequences are discussed in the documentation of the module on Sparsity patterns.
| unsigned int hp::DoFHandler< dim, spacedim >::max_couplings_between_boundary_dofs | ( | ) | const |
Return the number of degrees of freedom located on the boundary another dof on the boundary can couple with.
The number is the same as for max_coupling_between_dofs in one dimension less.
| raw_cell_iterator hp::DoFHandler< dim, spacedim >::begin_raw | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first cell, used or not, on level level. If a level has no cells, a past-the-end iterator is returned.
This function calls begin_raw_line in 1D and begin_raw_quad in 2D.
| cell_iterator hp::DoFHandler< dim, spacedim >::begin | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first used cell on level level.
This function calls begin_line in 1D and begin_quad in 2D.
| active_cell_iterator hp::DoFHandler< dim, spacedim >::begin_active | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first active cell on level level.
This function calls begin_active_line in 1D and begin_active_quad in 2D.
| raw_cell_iterator hp::DoFHandler< dim, spacedim >::end | ( | ) | const |
Iterator past the end; this iterator serves for comparisons of iterators with past-the-end or before-the-beginning states.
This function calls end_line in 1D and end_quad in 2D.
| cell_iterator hp::DoFHandler< dim, spacedim >::end | ( | const unsigned int | level ) | const |
Return an iterator which is the first iterator not on level. If level is the last level, then this returns end().
| raw_cell_iterator hp::DoFHandler< dim, spacedim >::end_raw | ( | const unsigned int | level ) | const |
Return a raw iterator which is the first iterator not on level. If level is the last level, then this returns end().
| active_cell_iterator hp::DoFHandler< dim, spacedim >::end_active | ( | const unsigned int | level ) | const |
Return an active iterator which is the first iterator not on level. If level is the last level, then this returns end().
| raw_cell_iterator hp::DoFHandler< dim, spacedim >::last_raw | ( | ) | const |
Return an iterator pointing to the last cell, used or not.
This function calls last_raw_line in 1D and last_raw_quad in 2D.
| raw_cell_iterator hp::DoFHandler< dim, spacedim >::last_raw | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last cell of the level level, used or not.
This function calls last_raw_line in 1D and last_raw_quad in 2D.
| cell_iterator hp::DoFHandler< dim, spacedim >::last | ( | ) | const |
Return an iterator pointing to the last used cell.
This function calls last_line in 1D and last_quad in 2D.
| cell_iterator hp::DoFHandler< dim, spacedim >::last | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last used cell on level level.
This function calls last_line in 1D and last_quad in 2D.
| active_cell_iterator hp::DoFHandler< dim, spacedim >::last_active | ( | ) | const |
Return an iterator pointing to the last active cell.
This function calls last_active_line in 1D and last_active_quad in 2D.
| active_cell_iterator hp::DoFHandler< dim, spacedim >::last_active | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last active cell on level level.
This function calls last_active_line in 1D and last_active_quad in 2D.
| raw_face_iterator hp::DoFHandler< dim, spacedim >::begin_raw_face | ( | ) | const |
Iterator to the first face, used or not.
This function calls begin_raw_line in 2D and begin_raw_quad in 3D.
| face_iterator hp::DoFHandler< dim, spacedim >::begin_face | ( | ) | const |
Iterator to the first used face.
This function calls begin_line in 2D and begin_quad in 3D.
| active_face_iterator hp::DoFHandler< dim, spacedim >::begin_active_face | ( | ) | const |
Iterator to the first active face.
This function calls begin_active_line in 2D and begin_active_quad in 3D.
| raw_face_iterator hp::DoFHandler< dim, spacedim >::end_face | ( | ) | const |
Iterator past the end; this iterator serves for comparisons of iterators with past-the-end or before-the-beginning states.
This function calls end_line in 2D and end_quad in 3D.
| raw_face_iterator hp::DoFHandler< dim, spacedim >::end_raw_face | ( | ) | const |
Return a raw iterator past-the-end. This is the same as end_face().
| active_face_iterator hp::DoFHandler< dim, spacedim >::end_active_face | ( | ) | const |
Return an active iterator past-the-end. This is the same as end_face().
| raw_face_iterator hp::DoFHandler< dim, spacedim >::last_raw_face | ( | ) | const |
Return an iterator pointing to the last face, used or not.
This function calls last_raw_line in 2D and last_raw_quad in 3D.
| face_iterator hp::DoFHandler< dim, spacedim >::last_face | ( | ) | const |
Return an iterator pointing to the last used face.
This function calls last_line in 2D and last_quad in 3D.
| active_face_iterator hp::DoFHandler< dim, spacedim >::last_active_face | ( | ) | const |
Return an iterator pointing to the last active face.
This function calls last_active_line in 2D and last_active_quad in 3D.
| raw_line_iterator hp::DoFHandler< dim, spacedim >::begin_raw_line | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first line, used or not, on level level. If a level has no lines, a past-the-end iterator is returned.
| line_iterator hp::DoFHandler< dim, spacedim >::begin_line | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first used line on level level.
| active_line_iterator hp::DoFHandler< dim, spacedim >::begin_active_line | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first active line on level level.
| raw_line_iterator hp::DoFHandler< dim, spacedim >::end_line | ( | ) | const |
Iterator past the end; this iterator serves for comparisons of iterators with past-the-end or before-the-beginning states.
| line_iterator hp::DoFHandler< dim, spacedim >::end_line | ( | const unsigned int | level ) | const |
Return an iterator which is the first iterator not on level. If level is the last level, then this returns end().
| raw_line_iterator hp::DoFHandler< dim, spacedim >::end_raw_line | ( | const unsigned int | level ) | const |
Return a raw iterator which is the first iterator not on level. If level is the last level, then this returns end().
| active_line_iterator hp::DoFHandler< dim, spacedim >::end_active_line | ( | const unsigned int | level ) | const |
Return an active iterator which is the first iterator not on level. If level is the last level, then this returns end().
| raw_line_iterator hp::DoFHandler< dim, spacedim >::last_raw_line | ( | ) | const |
Return an iterator pointing to the last line, used or not.
| raw_line_iterator hp::DoFHandler< dim, spacedim >::last_raw_line | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last line of the level level, used or not.
| line_iterator hp::DoFHandler< dim, spacedim >::last_line | ( | ) | const |
Return an iterator pointing to the last used line.
| line_iterator hp::DoFHandler< dim, spacedim >::last_line | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last used line on level level.
| active_line_iterator hp::DoFHandler< dim, spacedim >::last_active_line | ( | ) | const |
Return an iterator pointing to the last active line.
| active_line_iterator hp::DoFHandler< dim, spacedim >::last_active_line | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last active line on level level.
| raw_quad_iterator hp::DoFHandler< dim, spacedim >::begin_raw_quad | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first quad, used or not, on level level. If a level has no quads, a past-the-end iterator is returned.
| quad_iterator hp::DoFHandler< dim, spacedim >::begin_quad | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first used quad on level level.
| active_quad_iterator hp::DoFHandler< dim, spacedim >::begin_active_quad | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first active quad on level level.
| raw_quad_iterator hp::DoFHandler< dim, spacedim >::end_quad | ( | ) | const |
Iterator past the end; this iterator serves for comparisons of iterators with past-the-end or before-the-beginning states.
| quad_iterator hp::DoFHandler< dim, spacedim >::end_quad | ( | const unsigned int | level ) | const |
Return an iterator which is the first iterator not on level. If level is the last level, then this returns end().
| raw_quad_iterator hp::DoFHandler< dim, spacedim >::end_raw_quad | ( | const unsigned int | level ) | const |
Return a raw iterator which is the first iterator not on level. If level is the last level, then this returns end().
| active_quad_iterator hp::DoFHandler< dim, spacedim >::end_active_quad | ( | const unsigned int | level ) | const |
Return an active iterator which is the first iterator not on level. If level is the last level, then this returns end().
| raw_quad_iterator hp::DoFHandler< dim, spacedim >::last_raw_quad | ( | ) | const |
Return an iterator pointing to the last quad, used or not.
| raw_quad_iterator hp::DoFHandler< dim, spacedim >::last_raw_quad | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last quad of the level level, used or not.
| quad_iterator hp::DoFHandler< dim, spacedim >::last_quad | ( | ) | const |
Return an iterator pointing to the last used quad.
| quad_iterator hp::DoFHandler< dim, spacedim >::last_quad | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last used quad on level level.
| active_quad_iterator hp::DoFHandler< dim, spacedim >::last_active_quad | ( | ) | const |
Return an iterator pointing to the last active quad.
| active_quad_iterator hp::DoFHandler< dim, spacedim >::last_active_quad | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last active quad on level level.
| raw_hex_iterator hp::DoFHandler< dim, spacedim >::begin_raw_hex | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first hex, used or not, on level level. If a level has no hexs, a past-the-end iterator is returned.
| hex_iterator hp::DoFHandler< dim, spacedim >::begin_hex | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first used hex on level level.
| active_hex_iterator hp::DoFHandler< dim, spacedim >::begin_active_hex | ( | const unsigned int | level = 0 ) |
const |
Iterator to the first active hex on level level.
| raw_hex_iterator hp::DoFHandler< dim, spacedim >::end_hex | ( | ) | const |
Iterator past the end; this iterator serves for comparisons of iterators with past-the-end or before-the-beginning states.
| hex_iterator hp::DoFHandler< dim, spacedim >::end_hex | ( | const unsigned int | level ) | const |
Return an iterator which is the first iterator not on level. If level is the last level, then this returns end().
| raw_hex_iterator hp::DoFHandler< dim, spacedim >::end_raw_hex | ( | const unsigned int | level ) | const |
Return a raw iterator which is the first iterator not on level. If level is the last level, then this returns end().
| active_hex_iterator hp::DoFHandler< dim, spacedim >::end_active_hex | ( | const unsigned int | level ) | const |
Return an active iterator which is the first iterator not on level. If level is the last level, then this returns end().
| raw_hex_iterator hp::DoFHandler< dim, spacedim >::last_raw_hex | ( | ) | const |
Return an iterator pointing to the last hex, used or not.
| raw_hex_iterator hp::DoFHandler< dim, spacedim >::last_raw_hex | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last hex of the level level, used or not.
| hex_iterator hp::DoFHandler< dim, spacedim >::last_hex | ( | ) | const |
Return an iterator pointing to the last used hex.
| hex_iterator hp::DoFHandler< dim, spacedim >::last_hex | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last used hex on level level.
| active_hex_iterator hp::DoFHandler< dim, spacedim >::last_active_hex | ( | ) | const |
Return an iterator pointing to the last active hex.
| active_hex_iterator hp::DoFHandler< dim, spacedim >::last_active_hex | ( | const unsigned int | level ) | const |
Return an iterator pointing to the last active hex on level level.
| unsigned int hp::DoFHandler< dim, spacedim >::n_dofs | ( | ) | const |
Return the global number of degrees of freedom. If the current object handles all degrees of freedom itself (even if you may intend to solve your linear system in parallel, such as in step-17 or step-18), then this number equals the number of locally owned degrees of freedom since this object doesn't know anything about what you want to do with it and believes that it owns every degree of freedom it knows about.
On the other hand, if this object operates on a parallel::distributed::Triangulation object, then this function returns the global number of degrees of freedom, accumulated over all processors.
In either case, included in the returned number are those DoFs which are constrained by hanging nodes, see Constraints on degrees of freedom.
| unsigned int hp::DoFHandler< dim, spacedim >::n_boundary_dofs | ( | ) | const |
Return the number of degrees of freedom located on the boundary.
| unsigned int hp::DoFHandler< dim, spacedim >::n_boundary_dofs | ( | const FunctionMap & | boundary_indicators ) | const |
Return the number of degrees of freedom located on those parts of the boundary which have a boundary indicator listed in the given set. The reason that a map rather than a set is used is the same as descibed in the section on the make_boundary_sparsity_pattern function.
| unsigned int hp::DoFHandler< dim, spacedim >::n_boundary_dofs | ( | const std::set< unsigned char > & | boundary_indicators ) | const |
Same function, but with different data type of the argument, which is here simply a list of the boundary indicators under consideration.
| unsigned int hp::DoFHandler< dim, spacedim >::n_locally_owned_dofs | ( | ) | const |
Return the number of degrees of freedom that belong to this process.
If this is a sequential job, then the result equals that produced by n_dofs(). On the other hand, if we are operating on a parallel::distributed::Triangulation, then it includes only the degrees of freedom that the current processor owns. Note that in this case this does not include all degrees of freedom that have been distributed on the current processor's image of the mesh: in particular, some of the degrees of freedom on the interface between the cells owned by this processor and cells owned by other processors may be theirs, and degrees of freedom on ghost cells are also not necessarily included.
| const IndexSet& hp::DoFHandler< dim, spacedim >::locally_owned_dofs | ( | ) | const |
Return an IndexSet describing the set of locally owned DoFs as a subset of 0..n_dofs(). The number of elements of this set equals n_locally_owned_dofs().
| const std::vector<IndexSet>& hp::DoFHandler< dim, spacedim >::locally_owned_dofs_per_processor | ( | ) | const |
Returns a vector that stores the locally owned DoFs of each processor. If you are only interested in the number of elements each processor owns then n_dofs_per_processor() is a better choice.
If this is a sequential job, then the vector has a single element that equals the IndexSet representing the entire range [0,n_dofs()].
| const std::vector<unsigned int>& hp::DoFHandler< dim, spacedim >::n_locally_owned_dofs_per_processor | ( | ) | const |
Return a vector that stores the number of degrees of freedom each processor that participates in this triangulation owns locally. The sum of all these numbers equals the number of degrees of freedom that exist globally, i.e. what n_dofs() returns.
Each element of the vector returned by this function equals the number of elements of the corresponding sets returned by global_dof_indices().
If this is a sequential job, then the vector has a single element equal to n_dofs().
| const hp::FECollection<dim,spacedim>& hp::DoFHandler< dim, spacedim >::get_fe | ( | ) | const |
Return a constant reference to the set of finite element objects that are used by this DoFHandler.
| const Triangulation<dim,spacedim>& hp::DoFHandler< dim, spacedim >::get_tria | ( | ) | const |
Return a constant reference to the triangulation underlying this object.
| virtual std::size_t hp::DoFHandler< dim, spacedim >::memory_consumption | ( | ) | const [virtual] |
Determine an estimate for the memory consumption (in bytes) of this object.
This function is made virtual, since a dof handler object might be accessed through a pointers to thisr base class, although the actual object might be a derived class.
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcInvalidTriangulation | ( | ) | [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcNoFESelected | ( | ) | [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcRenumberingIncomplete | ( | ) | [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcGridsDoNotMatch | ( | ) | [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcInvalidBoundaryIndicator | ( | ) | [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcMatrixHasWrongSize | ( | int | arg1 ) | throw (errortext << "The matrix has the wrong dimension " << arg1 ) [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcFunctionNotUseful | ( | ) | [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcNewNumbersNotConsecutive | ( | int | arg1 ) | throw (errortext << "The given list of new dof indices is not consecutive: " << "the index " << arg1 << " does not exist." ) [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcInvalidFEIndex | ( | int | arg1, |
| int | arg2 | ||
| ) | throw (errortext << "The mesh contains a cell with an active_fe_index of " << arg1 << ", but the finite element collection only has " << arg2 << " elements" ) [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcInvalidLevel | ( | int | arg1 ) | throw (errortext << "The given level " << arg1 << " is not in the valid range!" ) [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcFacesHaveNoLevel | ( | ) | [static] |
Exception
| ::ExceptionBase& hp::DoFHandler< dim, spacedim >::ExcEmptyLevel | ( | int | arg1 ) | throw (errortext << "You tried to do something on level " << arg1 << ", but this level is empty." ) [static] |
The triangulation level you accessed is empty.
| DoFHandler& hp::DoFHandler< dim, spacedim >::operator= | ( | const DoFHandler< dim, spacedim > & | ) | [private] |
Copy operator. I can see no reason why someone might want to use it, so I don't provide it. Since this class has pointer members, making it private prevents the compiler to provide it's own, incorrect one if anyone chose to copy such an object.
| void hp::DoFHandler< dim, spacedim >::clear_space | ( | ) | [private] |
Free all used memory.
| void hp::DoFHandler< dim, spacedim >::create_active_fe_table | ( | ) | [private] |
Create default tables for the active_fe_indices in the internal::hp::DoFLevels. They are initialized with the a zero indicator, meaning that fe[0] is going to be used by default. This method is called before refinement and before distribute_dofs is called. It ensures each cell has a valid active_fe_index.
| void hp::DoFHandler< dim, spacedim >::pre_refinement_action | ( | ) | [private] |
Functions that will be triggered through signals whenever the triangulation is modified.
Here they are used to administrate the the active_fe_fields during the spatial refinement.
| void hp::DoFHandler< dim, spacedim >::post_refinement_action | ( | ) | [private] |
| void hp::DoFHandler< dim, spacedim >::compute_vertex_dof_identities | ( | std::vector< unsigned int > & | new_dof_indices ) | const [private] |
Compute identities between DoFs located on vertices. Called from distribute_dofs().
| void hp::DoFHandler< dim, spacedim >::compute_line_dof_identities | ( | std::vector< unsigned int > & | new_dof_indices ) | const [private] |
Compute identities between DoFs located on lines. Called from distribute_dofs().
| void hp::DoFHandler< dim, spacedim >::compute_quad_dof_identities | ( | std::vector< unsigned int > & | new_dof_indices ) | const [private] |
Compute identities between DoFs located on quads. Called from distribute_dofs().
| void hp::DoFHandler< dim, spacedim >::renumber_dofs_internal | ( | const std::vector< unsigned int > & | new_numbers, |
| internal::int2type< 0 > | |||
| ) | [private] |
Renumber the objects with the given and all lower structural dimensions, i.e. renumber vertices by giving a template argument of zero to the int2type argument, lines and vertices with one, etc.
Note that in contrast to the public renumber_dofs() function, these internal functions do not ensure that the new DoFs are contiguously numbered. The function may therefore also be used to assign different DoFs the same number, for example to unify hp DoFs corresponding to different finite elements but co-located on the same entity.
| void hp::DoFHandler< dim, spacedim >::renumber_dofs_internal | ( | const std::vector< unsigned int > & | new_numbers, |
| internal::int2type< 1 > | |||
| ) | [private] |
| void hp::DoFHandler< dim, spacedim >::renumber_dofs_internal | ( | const std::vector< unsigned int > & | new_numbers, |
| internal::int2type< 2 > | |||
| ) | [private] |
| void hp::DoFHandler< dim, spacedim >::renumber_dofs_internal | ( | const std::vector< unsigned int > & | new_numbers, |
| internal::int2type< 3 > | |||
| ) | [private] |
friend class ::DoFAccessor [friend] |
Make accessor objects friends.
Definition at line 1302 of file dof_handler.h.
friend class ::DoFCellAccessor [friend] |
Definition at line 1303 of file dof_handler.h.
friend struct internal::DoFAccessor::Implementation [friend] |
Definition at line 1304 of file dof_handler.h.
friend struct internal::DoFCellAccessor::Implementation [friend] |
Definition at line 1305 of file dof_handler.h.
friend class internal::hp::DoFLevel [friend] |
Likewise for DoFLevel objects since they need to access the vertex dofs in the functions that set and retrieve vertex dof indices.
Definition at line 1314 of file dof_handler.h.
friend class internal::hp::DoFObjects [friend] |
Definition at line 1315 of file dof_handler.h.
friend struct internal::hp::DoFHandler::Implementation [friend] |
Definition at line 1316 of file dof_handler.h.
| unsigned int max_dofs_per_cell | ( | const hp::DoFHandler< dim, spacedim > & | dh ) | [related] |
Maximal number of degrees of freedom on a cell.
| unsigned int max_dofs_per_face | ( | const hp::DoFHandler< dim, spacedim > & | dh ) | [related] |
Maximal number of degrees of freedom on a face.
This function exists for both non-hp and hp DoFHandlers, to allow for a uniform interface to query this property.
| unsigned int max_dofs_per_vertex | ( | const hp::DoFHandler< dim, spacedim > & | dh ) | [related] |
Maximal number of degrees of freedom on a vertex.
This function exists for both non-hp and hp DoFHandlers, to allow for a uniform interface to query this property.
| unsigned int n_components | ( | const hp::DoFHandler< dim, spacedim > & | dh ) | [related] |
Number of vector components in the finite element object used by this DoFHandler.
This function exists for both non-hp and hp DoFHandlers, to allow for a uniform interface to query this property.
| bool fe_is_primitive | ( | const hp::DoFHandler< dim, spacedim > & | dh ) | [related] |
Find out whether the FiniteElement used by this DoFHandler is primitive or not.
This function exists for both non-hp and hp DoFHandlers, to allow for a uniform interface to query this property.
const unsigned int hp::DoFHandler< dim, spacedim >::dimension = dim [static] |
Make the dimension available in function templates.
Definition at line 113 of file dof_handler.h.
const unsigned int hp::DoFHandler< dim, spacedim >::space_dimension = spacedim [static] |
Make the space dimension available in function templates.
Definition at line 119 of file dof_handler.h.
const unsigned int hp::DoFHandler< dim, spacedim >::invalid_dof_index = numbers::invalid_unsigned_int [static] |
When the arrays holding the DoF indices are set up, but before they are filled with actual values, they are set to an invalid value, in order to monitor possible problems. This invalid value is the constant defined here.
Please note that you should not rely on it having a certain value, but rather take its symbolic name.
Definition at line 136 of file dof_handler.h.
const unsigned int hp::DoFHandler< dim, spacedim >::default_fe_index = numbers::invalid_unsigned_int [static] |
The default index of the finite element to be used on a given cell. For the usual, non-hp DoFHandler class that only supports the same finite element to be used on all cells, the index of the finite element needs to be the same on all cells anyway, and by convention we pick zero for this value. The situation here is different, since the hp classes support the case where different finite element indices may be used on different cells. The default index consequently corresponds to an invalid value.
Definition at line 160 of file dof_handler.h.
SmartPointer<const Triangulation<dim,spacedim>,DoFHandler<dim,spacedim> > hp::DoFHandler< dim, spacedim >::tria [protected] |
Address of the triangulation to work on.
Definition at line 1058 of file dof_handler.h.
SmartPointer<const hp::FECollection<dim,spacedim>,hp::DoFHandler<dim,spacedim> > hp::DoFHandler< dim, spacedim >::finite_elements [protected] |
Store a pointer to the finite element set given latest for the distribution of dofs. In order to avoid destruction of the object before the lifetime of the DoF handler, we subscribe to the finite element object. To unlock the FE before the end of the lifetime of this DoF handler, use the clear() function (this clears all data of this object as well, though).
Definition at line 1075 of file dof_handler.h.
std::vector<internal::hp::DoFLevel<dim>*> hp::DoFHandler< dim, spacedim >::levels [private] |
Space to store the DoF numbers for the different levels. Analogous to the levels[] tree of the Triangulation objects.
Definition at line 1210 of file dof_handler.h.
internal::hp::DoFFaces<dim>* hp::DoFHandler< dim, spacedim >::faces [private] |
Space to store the DoF numbers for the faces. Analogous to the faces pointer of the Triangulation objects.
Definition at line 1218 of file dof_handler.h.
internal::DoFHandler::NumberCache hp::DoFHandler< dim, spacedim >::number_cache [private] |
A structure that contains all sorts of numbers that characterize the degrees of freedom this object works on.
For most members of this structure, there is an accessor function in this class that returns its value.
Definition at line 1231 of file dof_handler.h.
std::vector<unsigned int> hp::DoFHandler< dim, spacedim >::vertex_dofs [private] |
Array to store the indices for degrees of freedom located at vertices.
The format used here, in the form of a linked list, is the same as used for the arrays used in the hp::DoFLevel hierarchy. Starting indices into this array are provided by the vertex_dofs_offsets field.
Access to this field is generally through the DoFAccessor::get_vertex_dof_index() and DoFAccessor::set_vertex_dof_index() functions, encapsulating the actual data format used to the present class.
Definition at line 1256 of file dof_handler.h.
std::vector<unsigned int> hp::DoFHandler< dim, spacedim >::vertex_dofs_offsets [private] |
For each vertex in the triangulation, store the offset within the vertex_dofs array where the dofs for this vertex start.
As for that array, the format is the same as described in the documentation of hp::DoFLevel.
Access to this field is generally through the Accessor::get_vertex_dof_index() and Accessor::set_vertex_dof_index() functions, encapsulating the actual data format used to the present class.
Definition at line 1279 of file dof_handler.h.
std::vector<std::vector<bool> *> hp::DoFHandler< dim, spacedim >::has_children [private] |
Array to store the information, if a cell on some level has children or not. It is used by the refinement listeners as a persistent buffer during the refinement.
Definition at line 1290 of file dof_handler.h.
std::vector<boost::signals2::connection> hp::DoFHandler< dim, spacedim >::tria_listeners [private] |
A list of connections with which this object connects to the triangulation to get information about when the triangulation changes.
Definition at line 1297 of file dof_handler.h.
documentation generated on Fri Feb 3 2012 06:04:14 by
doxygen
1.7.2