Public Member Functions | |
FourierSineFunction (const Point< dim > &fourier_coefficients) | |
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 Point< dim > | fourier_coefficients |
Given a wavenumber vector generate a sine function. The wavenumber coefficient is given as a -dimensional point
in Fourier space, and the function is then recovered as
.
The class has its name from the fact that it resembles one component of a Fourier sine decomposition.
Functions::FourierSineFunction< dim >::FourierSineFunction | ( | const Point< dim > & | fourier_coefficients | ) |
Constructor. Take the Fourier coefficients in each space direction as argument.
virtual double Functions::FourierSineFunction< 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::FourierSineFunction< 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::FourierSineFunction< 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 Point<dim> Functions::FourierSineFunction< dim >::fourier_coefficients [private] |
Stored Fourier coefficients.