#include <G4SimpleRunge.hh>
|
| | G4SimpleRunge (G4EquationOfMotion *EquationRhs, G4int numberOfVariables=6) |
| |
| | ~G4SimpleRunge () |
| |
| void | DumbStepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[]) |
| |
| G4int | IntegratorOrder () const |
| |
| | G4MagErrorStepper (G4EquationOfMotion *EqRhs, G4int numberOfVariables, G4int numStateVariables=12) |
| |
| virtual | ~G4MagErrorStepper () |
| |
| | G4MagErrorStepper (const G4MagErrorStepper &)=delete |
| |
| G4MagErrorStepper & | operator= (const G4MagErrorStepper &)=delete |
| |
| void | Stepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[]) |
| |
| virtual void | DumbStepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[])=0 |
| |
| G4double | DistChord () const |
| |
| | G4MagIntegratorStepper (G4EquationOfMotion *Equation, G4int numIntegrationVariables, G4int numStateVariables=12, G4bool isFSAL=false) |
| |
| virtual | ~G4MagIntegratorStepper ()=default |
| |
| | G4MagIntegratorStepper (const G4MagIntegratorStepper &)=delete |
| |
| G4MagIntegratorStepper & | operator= (const G4MagIntegratorStepper &)=delete |
| |
| virtual void | Stepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])=0 |
| |
| virtual G4double | DistChord () const =0 |
| |
| void | NormaliseTangentVector (G4double vec[6]) |
| |
| void | NormalisePolarizationVector (G4double vec[12]) |
| |
| void | RightHandSide (const G4double y[], G4double dydx[]) const |
| |
| void | RightHandSide (const G4double y[], G4double dydx[], G4double field[]) const |
| |
| G4int | GetNumberOfVariables () const |
| |
| G4int | GetNumberOfStateVariables () const |
| |
| virtual G4int | IntegratorOrder () const =0 |
| |
| G4int | IntegrationOrder () |
| |
| G4EquationOfMotion * | GetEquationOfMotion () |
| |
| const G4EquationOfMotion * | GetEquationOfMotion () const |
| |
| void | SetEquationOfMotion (G4EquationOfMotion *newEquation) |
| |
| unsigned long | GetfNoRHSCalls () |
| |
| void | ResetfNORHSCalls () |
| |
| G4bool | IsFSAL () const |
| |
Definition at line 45 of file G4SimpleRunge.hh.
◆ G4SimpleRunge()
Definition at line 38 of file G4SimpleRunge.cc.
40 fNumberOfVariables(numberOfVariables)
41{
42
43 unsigned int noVariables= std::max(numberOfVariables,
45
46 dydxTemp =
new G4double[noVariables] ;
48}
G4int GetNumberOfStateVariables() const
◆ ~G4SimpleRunge()
| G4SimpleRunge::~G4SimpleRunge |
( |
| ) |
|
Definition at line 54 of file G4SimpleRunge.cc.
55{
56 delete [] dydxTemp;
57 delete [] yTemp;
58}
◆ DumbStepper()
Implements G4MagErrorStepper.
Definition at line 65 of file G4SimpleRunge.cc.
69{
70
71
72 yTemp[7] = yOut[7] = yIn[7];
73
74 for(
G4int i = 0; i < fNumberOfVariables; ++i )
75 {
76 yTemp[i] = yIn[i] + 0.5 * h*dydx[i] ;
77 }
78
80
81 for(
G4int i = 0; i < fNumberOfVariables; ++i )
82 {
83 yOut[i] = yIn[i] + h * ( dydxTemp[i] );
84 }
85}
void RightHandSide(const G4double y[], G4double dydx[]) const
◆ IntegratorOrder()
| G4int G4SimpleRunge::IntegratorOrder |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files: