
Public Member Functions | |
| PillowFunction (const double offset=0.) | |
| virtual double | value (const Point< dim > &p, const unsigned int component=0) const |
| virtual void | value_list (const std::vector< Point< dim > > &points, std::vector< double > &values, const unsigned int component=0) const |
| virtual Tensor< 1, dim > | gradient (const Point< dim > &p, const unsigned int component=0) const |
| virtual void | gradient_list (const std::vector< Point< dim > > &points, std::vector< Tensor< 1, dim > > &gradients, const unsigned int component=0) const |
| virtual double | laplacian (const Point< dim > &p, const unsigned int component=0) const |
| virtual void | laplacian_list (const std::vector< Point< dim > > &points, std::vector< double > &values, const unsigned int component=0) const |
Private Attributes | |
| const double | offset |
d-quadratic pillow on the unit hypercube.
This is a function for testing the implementation. It has zero Dirichlet boundary values on the domain
. In the inside, it is the product of
over all space dimensions.
Providing a non-zero argument to the constructor, the whole function can be offset by a constant.
Together with the function, its derivatives and Laplacian are defined.
Definition at line 136 of file function_lib.h.
| Functions::PillowFunction< dim >::PillowFunction | ( | const double | offset = 0. ) |
Constructor. Provide a constant that will be added to each function value.
| virtual double Functions::PillowFunction< dim >::value | ( | const Point< dim > & | p, |
| const unsigned int | component = 0 |
||
| ) | const [virtual] |
The value at a single point.
Reimplemented from Function< dim >.
| virtual void Functions::PillowFunction< dim >::value_list | ( | const std::vector< Point< dim > > & | points, |
| std::vector< double > & | values, | ||
| const unsigned int | component = 0 |
||
| ) | const [virtual] |
Values at multiple points.
Reimplemented from Function< dim >.
| virtual Tensor<1,dim> Functions::PillowFunction< dim >::gradient | ( | const Point< dim > & | p, |
| const unsigned int | component = 0 |
||
| ) | const [virtual] |
Gradient at a single point.
Reimplemented from Function< dim >.
| virtual void Functions::PillowFunction< dim >::gradient_list | ( | const std::vector< Point< dim > > & | points, |
| std::vector< Tensor< 1, dim > > & | gradients, | ||
| const unsigned int | component = 0 |
||
| ) | const [virtual] |
Gradients at multiple points.
Reimplemented from Function< dim >.
| virtual double Functions::PillowFunction< dim >::laplacian | ( | const Point< dim > & | p, |
| const unsigned int | component = 0 |
||
| ) | const [virtual] |
Laplacian at a single point.
Reimplemented from Function< dim >.
| virtual void Functions::PillowFunction< dim >::laplacian_list | ( | const std::vector< Point< dim > > & | points, |
| std::vector< double > & | values, | ||
| const unsigned int | component = 0 |
||
| ) | const [virtual] |
Laplacian at multiple points.
Reimplemented from Function< dim >.
const double Functions::PillowFunction< dim >::offset [private] |
Definition at line 185 of file function_lib.h.
documentation generated on Fri Feb 3 2012 06:04:13 by
doxygen
1.7.2