Reference documentation for deal.II version 8.4.1
Public Member Functions | Private Attributes | List of all members
MGConstrainedDoFs Class Reference

#include <deal.II/multigrid/mg_constrained_dofs.h>

Inheritance diagram for MGConstrainedDoFs:
[legend]

Public Member Functions

template<int dim, int spacedim>
void initialize (const DoFHandler< dim, spacedim > &dof)
 
template<int dim, int spacedim>
void initialize (const DoFHandler< dim, spacedim > &dof, const typename FunctionMap< dim >::type &function_map, const ComponentMask &component_mask=ComponentMask())
 
void clear ()
 
bool is_boundary_index (const unsigned int level, const types::global_dof_index index) const
 
bool at_refinement_edge (const unsigned int level, const types::global_dof_index index) const
 
const IndexSetget_boundary_indices (const unsigned int level) const
 
const IndexSetget_refinement_edge_indices (unsigned int level) const
 
bool have_boundary_indices () const
 
- Public Member Functions inherited from Subscriptor
 Subscriptor ()
 
 Subscriptor (const Subscriptor &)
 
virtual ~Subscriptor ()
 
Subscriptoroperator= (const Subscriptor &)
 
void subscribe (const char *identifier=0) const
 
void unsubscribe (const char *identifier=0) const
 
unsigned int n_subscriptions () const
 
void list_subscribers () const
 
 DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects."<< "\n\n"<< "(Additional information: "<< arg3<< ")\n\n"<< "See the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "a lot more information on what this error means and "<< "how to fix programs in which it happens.")
 
 DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier <"<< arg2<< "> subscribes to this object of class "<< arg1<< ". Consequently, it cannot be unsubscribed.")
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< IndexSetboundary_indices
 
std::vector< IndexSetrefinement_edge_indices
 

Detailed Description

Collection of boundary constraints and refinement edge constraints for level vectors.

Definition at line 39 of file mg_constrained_dofs.h.

Member Function Documentation

template<int dim, int spacedim>
void MGConstrainedDoFs::initialize ( const DoFHandler< dim, spacedim > &  dof)
inline

Fill the internal data structures with hanging node constraints extracted from the dof handler object. Works with natural boundary conditions only. There exists a sister function setting up boundary constraints as well.

This function ensures that on every level, degrees of freedom at interior edges of a refinement level are treated corrected but leaves degrees of freedom at the boundary of the domain untouched assuming that no Dirichlet boundary conditions for them exist.

Definition at line 128 of file mg_constrained_dofs.h.

template<int dim, int spacedim>
void MGConstrainedDoFs::initialize ( const DoFHandler< dim, spacedim > &  dof,
const typename FunctionMap< dim >::type &  function_map,
const ComponentMask component_mask = ComponentMask() 
)
inline

Fill the internal data structures with values extracted from the dof handler object and apply the boundary values provided.

This function internally calls the initialize() function above and the constrains degrees on the external boundary of the domain by calling MGTools::make_boundary_list() with the given second and third argument.

Definition at line 145 of file mg_constrained_dofs.h.

void MGConstrainedDoFs::clear ( )
inline

Reset the data structures.

Definition at line 165 of file mg_constrained_dofs.h.

bool MGConstrainedDoFs::is_boundary_index ( const unsigned int  level,
const types::global_dof_index  index 
) const
inline

Determine whether a dof index is subject to a boundary constraint.

Definition at line 174 of file mg_constrained_dofs.h.

bool MGConstrainedDoFs::at_refinement_edge ( const unsigned int  level,
const types::global_dof_index  index 
) const
inline

Determine whether a dof index is at the refinement edge.

Definition at line 186 of file mg_constrained_dofs.h.

const IndexSet & MGConstrainedDoFs::get_boundary_indices ( const unsigned int  level) const
inline

Return the indices of level dofs on the given level that are subject to Dirichlet boundary conditions (as set by the function_map parameter in initialize()). The indices are restricted to the set of locally relevant level dofs.

Definition at line 199 of file mg_constrained_dofs.h.

const IndexSet & MGConstrainedDoFs::get_refinement_edge_indices ( unsigned int  level) const
inline

Return the indices of dofs on the given level that lie on an refinement edge (dofs on faces to neighbors that are coarser).

Definition at line 209 of file mg_constrained_dofs.h.

bool MGConstrainedDoFs::have_boundary_indices ( ) const
inline

Return if Dirichlet boundary indices are set in initialize().

Definition at line 220 of file mg_constrained_dofs.h.

Member Data Documentation

std::vector<IndexSet> MGConstrainedDoFs::boundary_indices
private

The indices of boundary dofs for each level.

Definition at line 115 of file mg_constrained_dofs.h.

std::vector<IndexSet> MGConstrainedDoFs::refinement_edge_indices
private

The degrees of freedom on a given level that live on the refinement edge between the level and cells on a coarser level.

Definition at line 121 of file mg_constrained_dofs.h.


The documentation for this class was generated from the following file: