From: Wolfgang Bangerth Date: Sun, 14 Sep 2014 20:49:27 +0000 (-0500) Subject: Add some documentation. X-Git-Tag: v8.2.0-rc1~148^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdb5687f2ce620314729aadabcc16b4da03b9449;p=dealii.git Add some documentation. --- diff --git a/include/deal.II/hp/dof_handler.h b/include/deal.II/hp/dof_handler.h index 7103b9273a..2bc98e2426 100644 --- a/include/deal.II/hp/dof_handler.h +++ b/include/deal.II/hp/dof_handler.h @@ -73,11 +73,46 @@ namespace hp * hp-FEM algorithms. This class satisfies the requirements outlined in * @ref GlossMeshAsAContainer "Meshes as containers". * - * This class has not yet been implemented for the use in the codimension - * one case (spacedim != dim ). + * The purpose of this class is to allow for an enumeration of degrees + * of freedom in the same way as the ::DoFHandler class, but it allows + * to use a different finite element on every cell. To this end, one + * assigns an active_fe_index to every cell that indicates which + * element within a collection of finite elements (represented by an object + * of type hp::FECollection) is the one that lives on this cell. + * The class then enumerates the degree of freedom associated with these + * finite elements on each cell of a triangulation and, if possible, + * identifies degrees of freedom at the interfaces of cells if they + * match. If neighboring cells have degrees of freedom along the common + * interface that do not immediate match (for example, if you have + * $Q_2$ and $Q_3$ elements meeting at a common face), then one needs + * to compute constraints to ensure that the resulting finite element + * space on the mesh remains conforming. The whole process of working + * with objects of this type is explained in step-27. + * + * + *

Active FE indices and their behavior under mesh refinement

+ * + * The typical workflow for using this class is to create a mesh, + * assign an active FE index to every active cell, calls + * hp::DoFHandler::distribute_dofs(), and then assemble a linear + * system and solve a problem on this finite element space. However, + * one can skip assigning active FE indices upon mesh refinement + * in certain circumstances. In particular, the following rules apply: + * - Upon mesh refinement, child cells inherit the active FE index + * of the parent. + * - On the other hand, when coarsening cells, the (now active) parent + * cell will not have an active FE index set and you will have to + * set it explicitly before calling hp::DoFHandler::distribute_dofs(). + * In particular, to avoid stale information to be used by accident, + * this class deletes the active FE index of cells that are + * refined after inheriting this index to the children; this implies + * that if the children are coarsened away, the old value is no + * longer available on the parent cell. * * @ingroup dofs * @ingroup hp + * + * @author Wolfgang Bangerth, Oliver Kayser-Herold, 2003, 2004 */ template class DoFHandler : public Subscriptor