CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
RK4 Class Reference

#include <ConstantStepOdeSolver.h>

Inheritance diagram for RK4:
ConstantStepOdeSolver

Public Member Functions

const char * methodName () const
 
 RK4 ()
 
 RK4 (const AbsODERHS &rhs)
 
- Public Member Functions inherited from ConstantStepOdeSolver
 ConstantStepOdeSolver ()
 
 ConstantStepOdeSolver (const AbsODERHS &rhs)
 
 ConstantStepOdeSolver (const ConstantStepOdeSolver &r)
 
double getCoordinate (const unsigned which, const unsigned idx) const
 
double getIntegrated (unsigned which, unsigned idx) const
 
double getPeakTime (unsigned which) const
 
const AbsODERHSgetRHS () const
 
AbsODERHSgetRHS ()
 
double getTime (const unsigned idx) const
 
double interpolateCoordinate (unsigned which, double t, bool cubic=false) const
 
double interpolateIntegrated (unsigned which, double t, bool cubic=false) const
 
double lastDeltaT () const
 
unsigned lastDim () const
 
double lastMaxT () const
 
unsigned lastRunLength () const
 
ConstantStepOdeSolveroperator= (const ConstantStepOdeSolver &r)
 
void run (const double *initialConditions, unsigned lenConditions, double dt, unsigned nSteps)
 
void setHistory (double dt, const double *data, unsigned dim, unsigned runLen)
 
void setRHS (const AbsODERHS &rhs)
 
void truncateCoordinate (unsigned which, double minValue, double maxValue)
 
void writeHistory (std::ostream &os, double dt, bool cubic=false) const
 
void writeIntegrated (std::ostream &os, unsigned which, double dt, bool cubic=false) const
 
virtual ~ConstantStepOdeSolver ()
 

Private Member Functions

void step (double t, double dt, const double *x, unsigned lenX, double *coordIncrement) const
 

Private Attributes

std::vector< double > buf_
 

Additional Inherited Members

- Protected Attributes inherited from ConstantStepOdeSolver
AbsODERHSrhs_
 

Detailed Description

Definition at line 167 of file ConstantStepOdeSolver.h.

Constructor & Destructor Documentation

RK4::RK4 ( )
inline

Definition at line 170 of file ConstantStepOdeSolver.h.

RK4::RK4 ( const AbsODERHS rhs)
inlineexplicit

Definition at line 172 of file ConstantStepOdeSolver.h.

Member Function Documentation

const char* RK4::methodName ( ) const
inlinevirtual

Implements ConstantStepOdeSolver.

Definition at line 174 of file ConstantStepOdeSolver.h.

174 {return "4th order Runge-Kutta";}
void RK4::step ( double  t,
double  dt,
const double *  x,
unsigned  lenX,
double *  coordIncrement 
) const
privatevirtual

Implements ConstantStepOdeSolver.

Definition at line 373 of file ConstantStepOdeSolver.cc.

Member Data Documentation

std::vector<double> RK4::buf_
mutableprivate

Definition at line 181 of file ConstantStepOdeSolver.h.