Diff Class Reference
[General PDE solvers (under development)]

Base (abstract) class for 1D spectral differential operators in one domain. More...

#include <diff.h>

Inheritance diagram for Diff:
Diff_dsdx Diff_dsdx2 Diff_id Diff_mx Diff_mx2 Diff_sx Diff_sx2 Diff_sxdsdx Diff_x2dsdx Diff_x2dsdx2 Diff_x3dsdx Diff_x3dsdx2 Diff_x4dsdx2 Diff_xdsdx Diff_xdsdx2

List of all members.

Public Member Functions

int get_base () const
 Returns the base on which the operator is defined.
int get_npoints () const
 Returns the number of coefficients (size of the matrix).
 operator Matrice () const
 Conversion to a matrix.
virtual const Matriceget_matrice () const =0
 Returns the matrix associated with the operator.

Static Public Attributes

static const int max_points = 50
 Maximal number of matrices stored per base.

Protected Member Functions

 Diff (int base_r, int nr)
 Standard constructor.
 Diff (const Diff &)
 Copy constructor.
virtual ~Diff ()
 Destructor.
void operator= (const Diff &)
 Assignment to another Diff.
virtual ostream & operator>> (ostream &) const =0
 Operator >> (virtual function called by the operator <<).

Protected Attributes

int base
 Base in radial direction.
int npoints
 Number of coefficients.

Friends

ostream & operator<< (ostream &, const Diff &)
 Display.

Detailed Description

Base (abstract) class for 1D spectral differential operators in one domain.

()

This class is intended as a base class for several classes of elementary differential operators in term of $\xi$, in a given domain. Their main purpose is to compute the matrix of the elementary operator, for the given spectral base and number of coefficients. Some of the operators are not defined in the shells (division by $\xi$).

Definition at line 61 of file diff.h.


Constructor & Destructor Documentation

Diff::Diff ( int  base_r,
int  nr 
) [protected]

Standard constructor.

Definition at line 57 of file diff.C.

References base, and MAX_BASE.

Diff::Diff ( const Diff diff_in  )  [protected]

Copy constructor.

Definition at line 63 of file diff.C.

References base, and MAX_BASE.

Diff::~Diff (  )  [protected, virtual]

Destructor.

Definition at line 69 of file diff.C.


Member Function Documentation

int Diff::get_base (  )  const [inline]

Returns the base on which the operator is defined.

Definition at line 92 of file diff.h.

References base.

virtual const Matrice& Diff::get_matrice (  )  const [pure virtual]

Returns the matrix associated with the operator.

Implemented in Diff_dsdx, Diff_dsdx2, Diff_id, Diff_mx, Diff_mx2, Diff_sx, Diff_sx2, Diff_xdsdx, Diff_sxdsdx, Diff_x2dsdx2, Diff_xdsdx2, Diff_x2dsdx, Diff_x3dsdx, Diff_x3dsdx2, and Diff_x4dsdx2.

int Diff::get_npoints (  )  const [inline]

Returns the number of coefficients (size of the matrix).

Definition at line 95 of file diff.h.

References npoints.

Diff::operator Matrice (  )  const [inline]

Conversion to a matrix.

Definition at line 98 of file diff.h.

References get_matrice().

void Diff::operator= ( const Diff diff_in  )  [protected]

Assignment to another Diff.

Reimplemented in Diff_dsdx, Diff_dsdx2, Diff_id, Diff_mx, Diff_mx2, Diff_sx, Diff_sx2, Diff_xdsdx, Diff_sxdsdx, Diff_x2dsdx2, Diff_xdsdx2, Diff_x2dsdx, Diff_x3dsdx, Diff_x3dsdx2, and Diff_x4dsdx2.

Definition at line 71 of file diff.C.

References base, MAX_BASE, and npoints.

virtual ostream& Diff::operator>> ( ostream &   )  const [protected, pure virtual]

Operator >> (virtual function called by the operator <<).

Implemented in Diff_dsdx, Diff_dsdx2, Diff_id, Diff_mx, Diff_mx2, Diff_sx, Diff_sx2, Diff_xdsdx, Diff_sxdsdx, Diff_x2dsdx2, Diff_xdsdx2, Diff_x2dsdx, Diff_x3dsdx, Diff_x3dsdx2, and Diff_x4dsdx2.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ,
const Diff  
) [friend]

Display.


Member Data Documentation

int Diff::base [protected]

Base in radial direction.

Definition at line 70 of file diff.h.

const int Diff::max_points = 50 [static]

Maximal number of matrices stored per base.

Definition at line 67 of file diff.h.

int Diff::npoints [protected]

Number of coefficients.

Definition at line 71 of file diff.h.


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

Generated on 7 Oct 2014 for LORENE by  doxygen 1.6.1