43 using namespace field_utils;
69 yOutput[i] = yTemp[i] = yInput[i];
80 b31 = 11./120., b32 = 11./40.,
81 b41 = 106865./87808., b42 = -408375./87808., b43 = 193875./43904.,
82 b51 = 79503./121000., b52 = -1053./440., b53 = 147753./56870.,
84 b61 = 89303./78045., b62 = -2025./473., b63 = 994650./244541.,
85 b64 = -2547216./28122215., b65 = 475./2967.,
86 b71 = 1247./10890., b72 = 0., b73 = 57375./108053.,
87 b74 = -1229312./1962015., b75 = 125./207., b76 = 43./114.;
90 dc1 = b71 - 21487./185130.,
92 dc3 = b73 - 963225./1836901.,
93 dc4 = b74 + 39864832./33354255.,
94 dc5 = b75 - 2575./3519.,
95 dc6 = b76 - 4472./4845.,
100 yTemp[i] = yInput[i] + hstep * b21 * dydx[i];
104 yTemp[i] = yInput[i] + hstep * (b31 * dydx[i] + b32 * ak2[i]);
108 yTemp[i] = yInput[i] + hstep * (b41 * dydx[i] + b42 * ak2[i] +
113 yTemp[i] = yInput[i] + hstep * (b51 * dydx[i] + b52 * ak2[i] +
114 b53 * ak3[i] + b54 * ak4[i]);
118 yTemp[i] = yInput[i] + hstep * (b61 * dydx[i] + b62 * ak2[i] +
119 b63 * ak3[i] + b64 * ak4[i] +
124 yOutput[i] = yInput[i] + hstep * (b71 * dydx[i] + b72 * ak2[i] +
125 b73 * ak3[i] + b74 * ak4[i] +
126 b75 * ak5[i] + b76 * ak6[i]);
128 if (dydxOutput && yError) {
131 yError[i] = hstep * (dc1 * dydx[i] + dc2 * ak2[i] + dc3 * ak3[i] +
132 dc4 * ak4[i] + dc5 * ak5[i] + dc6 * ak6[i] +
133 dc7 * dydxOutput[i]);
144 copyArray(
fyIn, yInput);
145 copyArray(
fdydx, dydx);
150 copyArray(yOutput,
fyOut);
161 copyArray(
fyIn, yInput);
162 copyArray(
fdydx, dydx);
167 copyArray(yOutput,
fyOut);
static G4double Distline(const G4ThreeVector &OtherPnt, const G4ThreeVector &LinePntA, const G4ThreeVector &LinePntB)
G4ThreeVector makeVector(const ArrayType &array, Value3D value)
G4RK547FEq3(G4EquationOfMotion *EqRhs, G4int integrationVariables=6)
G4double fyIn[G4FieldTrack::ncompSVEC]
virtual G4double DistChord() const override
G4int GetNumberOfStateVariables() const
G4double fyOut[G4FieldTrack::ncompSVEC]
void makeStep(const G4double yInput[], const G4double dydx[], const G4double hstep, G4double yOutput[], G4double *dydxOutput=nullptr, G4double *yError=nullptr) const
void RightHandSide(const double y[], double dydx[]) const
G4double fdydx[G4FieldTrack::ncompSVEC]
G4double fdydxOut[G4FieldTrack::ncompSVEC]
static const G4double ak2
G4int GetNumberOfVariables() const
virtual void Stepper(const G4double yInput[], const G4double dydx[], G4double hstep, G4double yOutput[], G4double yError[]) override