Functions::FourierSineFunction< dim > Class Template Reference
[Functions]

Inheritance diagram for Functions::FourierSineFunction< dim >:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

template<int dim>
class Functions::FourierSineFunction< dim >

Given a wavenumber vector generate a sine function. The wavenumber coefficient is given as a $d$-dimensional point $k$ in Fourier space, and the function is then recovered as $f(x) = \sin(\sum_i k_i x_i) = Im(\exp(i k.x))$.

The class has its name from the fact that it resembles one component of a Fourier sine decomposition.

Author:
Wolfgang Bangerth, 2001

Constructor & Destructor Documentation

template<int dim>
Functions::FourierSineFunction< dim >::FourierSineFunction ( const Point< dim > &  fourier_coefficients  ) 

Constructor. Take the Fourier coefficients in each space direction as argument.


Member Function Documentation

template<int dim>
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 >.

template<int 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 >.

template<int 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 >.


Member Data Documentation

template<int dim>
const Point<dim> Functions::FourierSineFunction< dim >::fourier_coefficients [private]

Stored Fourier coefficients.


The documentation for this class was generated from the following file:

deal.II documentation generated on Sat Aug 15 16:52:33 2009 by doxygen 1.5.9