]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Experimental doc for SquareFunction
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 23 Jun 2000 21:28:43 +0000 (21:28 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 23 Jun 2000 21:28:43 +0000 (21:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@3066 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/function_lib.h

index 7c6b527f024c9232b5d7323ac5b244597183fc17..85c68bc4f3827fb530f207b411dbd136fe6f9e0c 100644 (file)
 
 
 
+/**
+ * The distance to the origin squared.
+ *
+ * This function returns the square norm of the radius vector of a point.
+ *
+ * Together with the function, its derivatives and Laplacian are defined.
+ *
+ * @author: Guido Kanschat, 1999
+ */
+template<int dim>
+class SquareFunction : public Function<dim>
+{
+  public:
+                                    /**
+                                     * @reimplemented
+                                     */
+    virtual double value (const Point<dim>   &p,
+                         const unsigned int  component = 0) const;
+
+                                    /**
+                                     * @reimplemented
+                                     */
+    virtual void value_list (const vector<Point<dim> > &points,
+                            vector<double>            &values,
+                            const unsigned int         component = 0) const;
+
+                                    /**
+                                     * @reimplemented
+                                     */
+    virtual Tensor<1,dim> gradient (const Point<dim>   &p,
+                                   const unsigned int  component = 0) const;
+
+                                    /**
+                                     * @reimplemented
+                                     */
+    virtual void gradient_list (const vector<Point<dim> > &points,
+                               vector<Tensor<1,dim> >    &gradients,
+                               const unsigned int         component = 0) const;
+
+                                    /**
+                                     * @reimplemented
+                                     */
+    double laplacian (const Point<dim>   &p,
+                     const unsigned int  component = 0) const;
+
+                                    /**
+                                     * @reimplemented
+                                     */
+    void laplacian_list (const vector<Point<dim> > &points,
+                        vector<double>            &values,
+                        const unsigned int         component = 0) const;
+};
+
+
+
 /**
  * d-quadratic pillow on the unit hypercube.
  *

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.