Public Member Functions | |
FourierSineSum (const std::vector< Point< dim > > &fourier_coefficients, const std::vector< double > &weights) | |
virtual double | value (const Point< dim > &p, const unsigned int component=0) const |
virtual Tensor< 1, dim > | gradient (const Point< dim > &p, const unsigned int component=0) const |
virtual double | laplacian (const Point< dim > &p, const unsigned int component=0) const |
Private Attributes | |
const std::vector< Point< dim > > | fourier_coefficients |
const std::vector< double > | weights |
Functions::FourierSineSum< dim >::FourierSineSum | ( | const std::vector< Point< dim > > & | fourier_coefficients, | |
const std::vector< double > & | weights | |||
) |
Constructor. Take the Fourier coefficients in each space direction as argument.
virtual double Functions::FourierSineSum< dim >::value | ( | const Point< dim > & | p, | |
const unsigned int | component = 0 | |||
) | const [virtual] |
Return the value of the function at the given point. Unless there is only one component (i.e. the function is scalar), you should state the component you want to have evaluated; it defaults to zero, i.e. the first component.
Reimplemented from Function< dim >.
virtual Tensor<1,dim> Functions::FourierSineSum< dim >::gradient | ( | const Point< dim > & | p, | |
const unsigned int | component = 0 | |||
) | const [virtual] |
Return the gradient of the specified component of the function at the given point.
Reimplemented from Function< dim >.
virtual double Functions::FourierSineSum< dim >::laplacian | ( | const Point< dim > & | p, | |
const unsigned int | component = 0 | |||
) | const [virtual] |
Compute the Laplacian of a given component at point p
.
Reimplemented from Function< dim >.
const std::vector<Point<dim> > Functions::FourierSineSum< dim >::fourier_coefficients [private] |
Stored Fourier coefficients and weights.
const std::vector<double> Functions::FourierSineSum< dim >::weights [private] |