dune-pdelab  2.0.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::PDELab::CentralDifferencesParameters< value_type > Class Template Reference

Parameter class for the central differences scheme. More...

#include <dune/pdelab/multistep/parameter.hh>

Inheritance diagram for Dune::PDELab::CentralDifferencesParameters< value_type >:
Inheritance graph

Public Types

typedef value_type value_type
 export type of the parameters More...
 

Public Member Functions

virtual unsigned steps () const
 Return number of steps of the method. More...
 
virtual value_type alpha (int step, int deriv) const
 Return alpha coefficients. More...
 
virtual std::string name () const
 Return name of the scheme. More...
 

Static Public Attributes

static const unsigned order
 Order of the problems this method is apropriate for. More...
 

Detailed Description

template<typename value_type>
class Dune::PDELab::CentralDifferencesParameters< value_type >

Parameter class for the central differences scheme.

Template Parameters
value_typeC++ type of the floating point parameters

Member Typedef Documentation

export type of the parameters

Member Function Documentation

template<typename value_type >
virtual value_type Dune::PDELab::CentralDifferencesParameters< value_type >::alpha ( int  step,
int  deriv 
) const
inlinevirtual

Return alpha coefficients.

Return $\alpha_{\text{\tt step}, \text{\tt deriv}}$:

\begin{align*} \alpha_{00}&=0 & \alpha_{01}&=\frac12 & \alpha_{02}&=1 \\ \alpha_{10}&=1 & \alpha_{11}&=0 & \alpha_{12}&=-2 \\ \alpha_{20}&=0 & \alpha_{21}&=\frac12 & \alpha_{22}&=1 \end{align*}

Note
step ∈ [0,...,steps()] and deriv ∈ [0,...,order]

Implements Dune::PDELab::MultiStepParameterInterface< value_type, 2 >.

template<typename value_type >
virtual std::string Dune::PDELab::CentralDifferencesParameters< value_type >::name ( ) const
inlinevirtual

Return name of the scheme.

Implements Dune::PDELab::MultiStepParameterInterface< value_type, 2 >.

template<typename value_type >
virtual unsigned Dune::PDELab::CentralDifferencesParameters< value_type >::steps ( ) const
inlinevirtual

Return number of steps of the method.

Returns
2 for central differences

Implements Dune::PDELab::MultiStepParameterInterface< value_type, 2 >.

Member Data Documentation

const unsigned Dune::PDELab::MultiStepParameterInterface< value_type , order_ >::order
staticinherited

Order of the problems this method is apropriate for.


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