CLHEP
2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
SimpleRKStepper.hh
Go to the documentation of this file.
1
#ifndef _SimpleRKStepper_h_
2
#define _SimpleRKStepper_h_
3
#include "CLHEP/GenericFunctions/RKIntegrator.hh"
4
//
5
// This is a stepper that steps with stepsize h using an
6
// Explicit Runge-Kutte method determined by a Butcher
7
// tableau.
8
//
9
// The stepsize is therefore not adaptively determined;
10
// so this type of stepper is mostly useful in attempting
11
// to categorize the different explicit RK Algorithms
12
// and probably not for real-life problems unless one has
13
// some a priori knowledge about how to set the stepsize.
14
//
15
#include "CLHEP/GenericFunctions/ButcherTableau.hh"
16
namespace
Genfun
{
17
class
SimpleRKStepper
:
public
RKIntegrator::RKStepper
{
18
19
public
:
20
21
// Constructor:
22
SimpleRKStepper
(
const
ButcherTableau
& tableau,
23
double
stepsize);
24
25
// Destructor:
26
virtual
~SimpleRKStepper
();
27
28
// Take a step:
29
virtual
void
step
(
const
RKIntegrator::RKData
* data,
// functions
30
const
RKIntegrator::RKData::Data
& sdata,
// start point
31
RKIntegrator::RKData::Data
& ddata,
// end point
32
double
timeLimit
// time limit
33
)
const
;
34
// Clone:
35
virtual
SimpleRKStepper
*
clone
()
const
;
36
37
private
:
38
39
ButcherTableau
tableau;
40
double
stepsize;
41
42
};
43
}
44
45
#endif
Genfun::ButcherTableau
Definition:
ButcherTableau.hh:23
Genfun::RKIntegrator::RKData
Definition:
RKIntegrator.hh:102
Genfun::RKIntegrator::RKStepper
Definition:
RKIntegrator.hh:172
Genfun::SimpleRKStepper
Definition:
SimpleRKStepper.hh:17
Genfun::SimpleRKStepper::step
virtual void step(const RKIntegrator::RKData *data, const RKIntegrator::RKData::Data &sdata, RKIntegrator::RKData::Data &ddata, double timeLimit) const
Definition:
SimpleRKStepper.cc:13
Genfun::SimpleRKStepper::~SimpleRKStepper
virtual ~SimpleRKStepper()
Definition:
SimpleRKStepper.cc:44
Genfun::SimpleRKStepper::clone
virtual SimpleRKStepper * clone() const
Definition:
SimpleRKStepper.cc:46
Genfun
Definition:
Abs.hh:14
Genfun::RKIntegrator::RKData::Data
Definition:
RKIntegrator.hh:108
CLHEP-CLHEP_2_4_6_4
GenericFunctions
GenericFunctions
SimpleRKStepper.hh
Generated by
1.9.6