Public Member Functions

gridripper::odesolver::relax::O2Relax Class Reference

Second order relaxation method. More...

#include <O2Relax.h>

Inheritance diagram for gridripper::odesolver::relax::O2Relax:
gridripper::odesolver::relax::ODERelax::Method

List of all members.

Public Member Functions

 O2Relax (ODE *ode, int nx) throw (ODERelax::RelaxationException&)
 Constructs the object.
int getNumSubsteps () const
void set (tvalarray< GReal_t > &fieldValues, tvalarray< GReal_t > &matrix, tvalarray< GReal_t > &rhsvec, const tvalarray< GReal_t > &deltaField)
 Sets the coefficient matrix and the RHS of the linear system of equations.

Detailed Description

Second order relaxation method.

Version:
0.5, 06/22/2008
Since:
GridRipper 0.4, 09/21/2006
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::odesolver::relax::O2Relax::O2Relax ( ODE ode,
int  nx 
) throw (ODERelax::RelaxationException&)

Constructs the object.

Parameters:
ode the ODE
nx the mesh size (number of subdivisions)

Member Function Documentation

void gridripper::odesolver::relax::O2Relax::set ( tvalarray< GReal_t > &  fieldValues,
tvalarray< GReal_t > &  matrix,
tvalarray< GReal_t > &  rhsvec,
const tvalarray< GReal_t > &  deltaField 
) [virtual]

Sets the coefficient matrix and the RHS of the linear system of equations.

Parameters:
fieldValues array of field values
matrix output array for the coefficient matrix
rhsvec output array for the RHS
deltaField array of "small" differences for the numerical differentiation of the ODE's RHS with respect to the fields

Implements gridripper::odesolver::relax::ODERelax::Method.


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