|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4MagErrorStepper is an abstract base class for integrator of particle's equation of motion, used in tracking in space dependent magnetic field. More...
#include <G4MagErrorStepper.hh>
Additional Inherited Members | |
| Protected Member Functions inherited from G4MagIntegratorStepper | |
| void | SetIntegrationOrder (G4int order) |
| void | SetFSAL (G4bool flag=true) |
G4MagErrorStepper is an abstract base class for integrator of particle's equation of motion, used in tracking in space dependent magnetic field.
Definition at line 49 of file G4MagErrorStepper.hh.
| G4MagErrorStepper::G4MagErrorStepper | ( | G4EquationOfMotion * | EqRhs, |
| G4int | numberOfVariables, | ||
| G4int | numStateVariables = 12 ) |
Constructor for G4MagErrorStepper.
| [in] | EqRhs | Pointer to the provided equation of motion. |
| [in] | numberOfVariables | The number of integration variables. |
| [in] | numberOfVariables | The number of state variables. |
Referenced by G4ClassicalRK4::G4ClassicalRK4(), G4ConstRK4::G4ConstRK4(), G4ExplicitEuler::G4ExplicitEuler(), G4ImplicitEuler::G4ImplicitEuler(), G4MagErrorStepper(), G4SimpleHeum::G4SimpleHeum(), G4SimpleRunge::G4SimpleRunge(), and operator=().
|
override |
Destructor.
Definition at line 34 of file G4MagErrorStepper.cc.
|
delete |
Copy constructor and assignment operator not allowed.
|
overridevirtual |
Estimates the maximum distance of curved solution and chord.
Implements G4MagIntegratorStepper.
Definition at line 100 of file G4MagErrorStepper.cc.
|
pure virtual |
Same as Stepper() function above, but should perform a 'dump' step without error calculation. To be implemented in concrete derived classes.
Implemented in G4ClassicalRK4, G4ConstRK4, G4ExplicitEuler, G4ImplicitEuler, G4SimpleHeum, and G4SimpleRunge.
Referenced by Stepper().
|
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 42 of file G4MagErrorStepper.cc.