From: Guido Kanschat Date: Fri, 23 Jun 2000 21:28:43 +0000 (+0000) Subject: Experimental doc for SquareFunction X-Git-Tag: v8.0.0~20357 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcc307fd5dcbea1d3ad675ce268f0c8e5c8dc7ca;p=dealii.git Experimental doc for SquareFunction git-svn-id: https://svn.dealii.org/trunk@3066 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/function_lib.h b/deal.II/base/include/base/function_lib.h index 7c6b527f02..85c68bc4f3 100644 --- a/deal.II/base/include/base/function_lib.h +++ b/deal.II/base/include/base/function_lib.h @@ -18,6 +18,61 @@ +/** + * 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 +class SquareFunction : public Function +{ + public: + /** + * @reimplemented + */ + virtual double value (const Point &p, + const unsigned int component = 0) const; + + /** + * @reimplemented + */ + virtual void value_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; + + /** + * @reimplemented + */ + virtual Tensor<1,dim> gradient (const Point &p, + const unsigned int component = 0) const; + + /** + * @reimplemented + */ + virtual void gradient_list (const vector > &points, + vector > &gradients, + const unsigned int component = 0) const; + + /** + * @reimplemented + */ + double laplacian (const Point &p, + const unsigned int component = 0) const; + + /** + * @reimplemented + */ + void laplacian_list (const vector > &points, + vector &values, + const unsigned int component = 0) const; +}; + + + /** * d-quadratic pillow on the unit hypercube. *