]> https://gitweb.dealii.org/ - dealii.git/commitdiff
BDM Documentation
authorAlistair Bentley <alistair.bntl@gmail.com>
Thu, 15 Jan 2015 18:22:48 +0000 (13:22 -0500)
committerAlistair Bentley <alistair.bntl@gmail.com>
Thu, 22 Jan 2015 18:46:35 +0000 (13:46 -0500)
Fixed sign of 2D BDM basis functions and added some documentation to BDM
polynomial description.

include/deal.II/base/polynomials_bdm.h
include/deal.II/fe/fe_bdm.h
source/base/polynomials_bdm.cc

index f1ef7130f26a3ab7bedd28cb7098bd1d59898061..5845574543477b822aee3584e5d07bccc480762b 100644 (file)
@@ -46,6 +46,8 @@ DEAL_II_NAMESPACE_OPEN
  * <i>(x<sup>k-i</sup>yz<sup>i+1</sup>,0,0)</i> and
  * <i>(0,x<sup>i+1</sup>y<sup>k-i</sup>z,0)</i> </dl>
  *
+ * Note the curl of a scalar function is given by
+ * $\text{curl}(f(x,y)) = \begin{pmatrix} f_{y}(x,y) \\ -f_{x}(x,y) \end{pmatrix}$.
  * @todo Second derivatives in 3D are missing.
  *
  * @ingroup Polynomials
index 0de57b4c26703dcdf4d9cab0d7b09ab75cc412b2..f8001d8edee234e965ea9771843ba2e7b242b2b9 100644 (file)
@@ -39,7 +39,7 @@ DEAL_II_NAMESPACE_OPEN
  * @todo Restriction matrices are missing.
  *
  * The matching pressure space for FE_BDM of order <i>k</i> is the element
- * FE_DGP of order <i>k</i>.
+ * FE_DGP of order <i>k-1</i>.
  *
  * The BDM element of order @p p has <i>p+1</i> degrees of freedom on each
  * face. These are implemented as the function values in the <i>p+1</i> Gauss
index 17639ae404752573bc11aa0c52dbb346c2fdf21e..1700b16dcb2cc13742a594887ba683fe38d1b1d4 100644 (file)
@@ -117,8 +117,8 @@ PolynomialsBDM<dim>::compute (const Point<dim>            &unit_point,
         {
           values[start][0] = monovali[0][0];
           values[start][1] = -unit_point(1) * monovali[0][1];
-          values[start+1][0] = -unit_point(0) * monovali[1][1];
-          values[start+1][1] = monovali[1][0];
+          values[start+1][0] = unit_point(0) * monovali[1][1];
+          values[start+1][1] = -monovali[1][0];
         }
       if (grads.size() != 0)
         {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.