|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4ClassicalRK4 integrates the equations of the motion of a particle in a magnetic field using the classical 4th Runge-Kutta method. More...
#include <G4ClassicalRK4.hh>
Additional Inherited Members | |
| Protected Member Functions inherited from G4MagIntegratorStepper | |
| void | SetIntegrationOrder (G4int order) |
| void | SetFSAL (G4bool flag=true) |
G4ClassicalRK4 integrates the equations of the motion of a particle in a magnetic field using the classical 4th Runge-Kutta method.
Definition at line 45 of file G4ClassicalRK4.hh.
| G4ClassicalRK4::G4ClassicalRK4 | ( | G4EquationOfMotion * | EquationMotion, |
| G4int | numberOfVariables = 6 ) |
Constructor for G4ClassicalRK4.
| [in] | EquationMotion | Pointer to the provided equation of motion. |
| [in] | numberOfVariables | The number of integration variables. |
Definition at line 38 of file G4ClassicalRK4.cc.
Referenced by G4ClassicalRK4(), and operator=().
|
override |
Destructor.
Definition at line 53 of file G4ClassicalRK4.cc.
|
delete |
Copy constructor and assignment operator not allowed.
|
overridevirtual |
Given values for the variables y[0,..,n-1] and their derivatives dydx[0,...,n-1] known at x, uses the classical 4th Runge-Kutta method to advance the solution over an interval h and returns the incremented variables as yout[0,...,n-1]. The user supplies the function RightHandSide(x,y,dydx), which returns derivatives dydx at x. The source is routine rk4 from NRC p.712-713.
| [in] | yIn | Starting values array of integration variables. |
| [in] | dydx | Derivatives array. |
| [in] | h | The given step size. |
| [out] | yOut | Integration output. |
Implements G4MagErrorStepper.
Definition at line 71 of file G4ClassicalRK4.cc.
|
inlineoverridevirtual |
Returns the order, 4, of integration.
Implements G4MagIntegratorStepper.
Definition at line 91 of file G4ClassicalRK4.hh.
|
delete |
|
inlineoverridevirtual |
Returns the stepper type-ID, "kClassicalRK4".
Reimplemented from G4MagIntegratorStepper.
Definition at line 96 of file G4ClassicalRK4.hh.