|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4ExplicitEuler implements an Explicit Euler stepper for magnetic field: x_1 = x_0 + h * dx_0. The most simple approach for solving linear differential equations. Takes the current derivative and adds it to the current position. More...
#include <G4ExplicitEuler.hh>
Additional Inherited Members | |
| Protected Member Functions inherited from G4MagIntegratorStepper | |
| void | SetIntegrationOrder (G4int order) |
| void | SetFSAL (G4bool flag=true) |
G4ExplicitEuler implements an Explicit Euler stepper for magnetic field: x_1 = x_0 + h * dx_0. The most simple approach for solving linear differential equations. Takes the current derivative and adds it to the current position.
Definition at line 48 of file G4ExplicitEuler.hh.
| G4ExplicitEuler::G4ExplicitEuler | ( | G4EquationOfMotion * | EqRhs, |
| G4int | numberOfVariables = 6 ) |
Constructor for G4ExplicitEuler.
| [in] | EqRhs | Pointer to the provided equation of motion. |
| [in] | numberOfVariables | The number of integration variables. |
Definition at line 43 of file G4ExplicitEuler.cc.
|
overridedefault |
Default Destructor.
|
overridevirtual |
The stepper function for the integration.
| [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 54 of file G4ExplicitEuler.cc.
|
inlineoverridevirtual |
Returns the order, 1, of integration.
Implements G4MagIntegratorStepper.
Definition at line 80 of file G4ExplicitEuler.hh.
|
inlineoverridevirtual |
Returns the stepper type-ID, "kExplicitEuler".
Reimplemented from G4MagIntegratorStepper.
Definition at line 85 of file G4ExplicitEuler.hh.