|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4HelixExplicitEuler implements an Explicit Euler stepper for magnetic field: x_1 = x_0 + helix(h), with helix(h) being a helix piece of length h. A simple approach for solving linear differential equations. Takes the current derivative and adds it to the current position. More...
#include <G4HelixExplicitEuler.hh>
Additional Inherited Members | |
| Protected Member Functions inherited from G4MagHelicalStepper | |
| void | LinearStep (const G4double yIn[], G4double h, G4double yHelix[]) const |
| void | AdvanceHelix (const G4double yIn[], const G4ThreeVector &Bfld, G4double h, G4double yHelix[], G4double yHelix2[]=nullptr) |
| void | MagFieldEvaluate (const G4double y[], G4ThreeVector &Bfield) |
| G4double | GetInverseCurve (const G4double Momentum, const G4double Bmag) |
| void | SetAngCurve (const G4double Ang) |
| G4double | GetAngCurve () const |
| void | SetCurve (const G4double Curve) |
| G4double | GetCurve () const |
| void | SetRadHelix (const G4double Rad) |
| G4double | GetRadHelix () const |
| Protected Member Functions inherited from G4MagIntegratorStepper | |
| void | SetIntegrationOrder (G4int order) |
| void | SetFSAL (G4bool flag=true) |
G4HelixExplicitEuler implements an Explicit Euler stepper for magnetic field: x_1 = x_0 + helix(h), with helix(h) being a helix piece of length h. A simple approach for solving linear differential equations. Takes the current derivative and adds it to the current position.
Definition at line 49 of file G4HelixExplicitEuler.hh.
| G4HelixExplicitEuler::G4HelixExplicitEuler | ( | G4Mag_EqRhs * | EqRhs | ) |
Constructor for G4HelixExplicitEuler.
| [in] | EqRhs | Pointer to the provided equation of motion. |
Definition at line 40 of file G4HelixExplicitEuler.cc.
|
overridedefault |
Default Destructor.
|
overridevirtual |
Returns the distance from chord line.
Implements G4MagIntegratorStepper.
Definition at line 85 of file G4HelixExplicitEuler.cc.
|
overridevirtual |
The stepper function for the integration.
| [in] | y | Starting values array of integration variables. |
| [in] | Bfld | Derivatives array. |
| [in] | h | The given step size. |
| [out] | yout | Integration output. |
Implements G4MagHelicalStepper.
Definition at line 110 of file G4HelixExplicitEuler.cc.
|
inlineoverridevirtual |
Returns the order, 1, of integration.
Implements G4MagIntegratorStepper.
Definition at line 98 of file G4HelixExplicitEuler.hh.
|
override |
The stepper function for the integration.
| [in] | y | Starting values array of integration variables. |
| [in] | na | Not used. |
| [in] | h | The given step size. |
| [out] | yout | Integration output. |
| [out] | yerr | Integration error. |
Definition at line 45 of file G4HelixExplicitEuler.cc.
|
inlineoverridevirtual |
Returns the stepper type-ID, "kHelixExplicitEuler".
Reimplemented from G4MagIntegratorStepper.
Definition at line 103 of file G4HelixExplicitEuler.hh.