|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4CashKarpRKF45 implements the Cash-Karp Runge-Kutta-Fehlberg 4/5 method, an embedded fourth order method (giving fifth-order accuracy) for the solution of an ODE. Two different fourth order estimates are calculated; their difference gives an error estimate. It is used to integrate the equations of the motion of a particle in a magnetic field. More...
#include <G4CashKarpRKF45.hh>
Additional Inherited Members | |
| Protected Member Functions inherited from G4MagIntegratorStepper | |
| void | SetIntegrationOrder (G4int order) |
| void | SetFSAL (G4bool flag=true) |
G4CashKarpRKF45 implements the Cash-Karp Runge-Kutta-Fehlberg 4/5 method, an embedded fourth order method (giving fifth-order accuracy) for the solution of an ODE. Two different fourth order estimates are calculated; their difference gives an error estimate. It is used to integrate the equations of the motion of a particle in a magnetic field.
Definition at line 53 of file G4CashKarpRKF45.hh.
| G4CashKarpRKF45::G4CashKarpRKF45 | ( | G4EquationOfMotion * | EqRhs, |
| G4int | numberOfVariables = 6, | ||
| G4bool | primary = true ) |
Constructor for G4CashKarpRKF45.
| [in] | EqRhs | Pointer to the provided equation of motion. |
| [in] | numberOfVariables | The number of integration variables. |
| [in] | primary | Flag for initialisation of the auxiliary stepper. |
Definition at line 47 of file G4CashKarpRKF45.cc.
Referenced by G4CashKarpRKF45(), G4CashKarpRKF45(), and operator=().
|
override |
Destructor.
Definition at line 88 of file G4CashKarpRKF45.cc.
|
delete |
Copy constructor and assignment operator not allowed.
|
overridevirtual |
Returns the distance from chord line.
Implements G4MagIntegratorStepper.
Definition at line 220 of file G4CashKarpRKF45.cc.
|
inlineoverridevirtual |
Returns the order, 4, of integration.
Implements G4MagIntegratorStepper.
Definition at line 103 of file G4CashKarpRKF45.hh.
|
delete |
|
overridevirtual |
The stepper for the Runge Kutta integration. The stepsize is fixed, with the step size given by 'h'. Integrates ODE starting values y[0 to 6]. Outputs yout[] and its estimated error yerr[].
| [in] | y | Starting values array of integration variables. |
| [in] | dydx | Derivatives array. |
| [in] | h | The given step size. |
| [out] | yout | Integration output. |
| [out] | yerr | The estimated error. |
Implements G4MagIntegratorStepper.
Definition at line 119 of file G4CashKarpRKF45.cc.
|
inlineoverridevirtual |
Returns the stepper type-ID, "kCashKarpRKF45".
Reimplemented from G4MagIntegratorStepper.
Definition at line 108 of file G4CashKarpRKF45.hh.