|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4NystromRK4 integrates the equations of the motion of a particle in a magnetic field using 4th Runge-Kutta-Nystrom method with errors estimation. The current form can be used only for 'pure' magnetic field. More...
#include <G4NystromRK4.hh>
Additional Inherited Members | |
| Protected Member Functions inherited from G4MagIntegratorStepper | |
| void | SetIntegrationOrder (G4int order) |
| void | SetFSAL (G4bool flag=true) |
G4NystromRK4 integrates the equations of the motion of a particle in a magnetic field using 4th Runge-Kutta-Nystrom method with errors estimation. The current form can be used only for 'pure' magnetic field.
Definition at line 56 of file G4NystromRK4.hh.
| G4NystromRK4::G4NystromRK4 | ( | G4Mag_EqRhs * | EquationMotion, |
| G4double | distanceConstField = 0.0 ) |
Constructor for G4NystromRK4. Can be used only for Magnetic Fields and for 6 variables (x,p).
| [in] | EquationMotion | Pointer to the provided equation of motion. |
| [in] | distanceConstField | Distance value for constant field. |
Definition at line 53 of file G4NystromRK4.cc.
|
overridedefault |
Default Destructor.
|
overridevirtual |
Returns the distance from chord line.
Implements G4MagIntegratorStepper.
Definition at line 185 of file G4NystromRK4.cc.
| G4double G4NystromRK4::GetDistanceForConstantField | ( | ) | const |
Definition at line 207 of file G4NystromRK4.cc.
|
inlineoverridevirtual |
Returns the order, 4, of integration.
Implements G4MagIntegratorStepper.
| void G4NystromRK4::SetDistanceForConstantField | ( | G4double | length | ) |
Setter and getter for the distance value for constant field.
Definition at line 190 of file G4NystromRK4.cc.
Referenced by G4NystromRK4().
|
overridevirtual |
The stepper for the Runge Kutta integration. The stepsize is fixed, with the step size given by 'hstep'. Integrates ODE starting values y[0 to 6]. Outputs yOut[] and its estimated error yError[]. Provides error via analytical method.
| [in] | y | Starting values array of integration variables. |
| [in] | dydx | Derivatives array. |
| [in] | hstep | The given step size. |
| [out] | yOut | Integration output. |
| [out] | yError | The estimated error. |
Implements G4MagIntegratorStepper.
Definition at line 62 of file G4NystromRK4.cc.
|
inlineoverridevirtual |
Returns the stepper type-ID, "kNystromRK4".
Reimplemented from G4MagIntegratorStepper.