|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4ConstRK4 performs the integration of one step with error calculation in constant magnetic field. The integration method is the same as in ClassicalRK4. The field value is assumed constant for the step. This field evaluation is called only once per step. G4ConstRK4 can be used only for magnetic fields. More...
#include <G4ConstRK4.hh>
Additional Inherited Members | |
| Protected Member Functions inherited from G4MagIntegratorStepper | |
| void | SetIntegrationOrder (G4int order) |
| void | SetFSAL (G4bool flag=true) |
G4ConstRK4 performs the integration of one step with error calculation in constant magnetic field. The integration method is the same as in ClassicalRK4. The field value is assumed constant for the step. This field evaluation is called only once per step. G4ConstRK4 can be used only for magnetic fields.
Definition at line 53 of file G4ConstRK4.hh.
| G4ConstRK4::G4ConstRK4 | ( | G4Mag_EqRhs * | EquationMotion, |
| G4int | numberOfStateVariables = 8 ) |
Constructor for G4ConstRK4.
| [in] | EqRhs | Pointer to the provided equation of motion. |
| [in] | numberOfVariables | The number of integration variables. |
Definition at line 40 of file G4ConstRK4.cc.
Referenced by G4ConstRK4(), and operator=().
|
override |
Destructor.
Definition at line 69 of file G4ConstRK4.cc.
|
delete |
Copy constructor and assignment operator not allowed.
|
overridevirtual |
Returns the distance from chord line.
Implements G4MagIntegratorStepper.
Definition at line 211 of file G4ConstRK4.cc.
|
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] | y | 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 90 of file G4ConstRK4.cc.
Referenced by Stepper().
Returns the field values, at position and time 'y'.
| [in] | y | The position vector plus time (x,y,z,t). |
| [out] | Field | The field value in output. |
Definition at line 169 of file G4ConstRK4.hh.
Referenced by Stepper().
|
inlineoverridevirtual |
Returns the order, 4, of integration.
Implements G4MagIntegratorStepper.
Definition at line 132 of file G4ConstRK4.hh.
Referenced by Stepper().
|
delete |
Returns the derivatives value, at position and time 'y'.
| [in] | y | The position vector plus time (x,y,z,t). |
| [out] | dydx | The derivatives array. |
Definition at line 151 of file G4ConstRK4.hh.
Referenced by DumbStepper(), and Stepper().
|
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 146 of file G4ConstRK4.cc.
|
inlineoverridevirtual |
Returns the stepper type-ID, "kConstRK4".
Reimplemented from G4MagIntegratorStepper.
Definition at line 137 of file G4ConstRK4.hh.