56void G4RK547FEq2::makeStep(
const G4double yInput[],
66 yOutput[i] = yTemp[i] = yInput[i];
76 b31 = 3./52., b32 = 9./52.,
77 b41 = 12955./26244., b42 = -15925./8748.,
79 b51 = -10383./52480., b52 = 13923./10496.,
80 b53 = -176553./199424., b54 = 505197./997120.,
81 b61 = 1403./7236., b62 = -429./268., b63 = 733330./309339.,
82 b64 = -7884./8911., b65 = 104960./113967.,
83 b71 = 181./2700., b72 = 0., b73 = 656903./1846800.,
84 b74 = 19683./106400., b75 = 34112./110565.,
87 const G4double dc1 = b71 - 11377./154575.,
89 dc3 = b73 - 35378291./105729300.,
90 dc4 = b74 - 343359./1522850.,
91 dc5 = b75 - 535952./1947645.,
92 dc6 = b76 - 134./17175.,
97 yTemp[i] = yInput[i] + hstep * b21 * dydx[i];
101 yTemp[i] = yInput[i] + hstep * (b31 * dydx[i] + b32 * ak2[i]);
105 yTemp[i] = yInput[i] + hstep * (b41 * dydx[i] + b42 * ak2[i] +
110 yTemp[i] = yInput[i] + hstep * (b51 * dydx[i] + b52 * ak2[i] +
111 b53 * ak3[i] + b54 * ak4[i]);
115 yTemp[i] = yInput[i] + hstep * (b61 * dydx[i] + b62 * ak2[i] +
116 b63 * ak3[i] + b64 * ak4[i] +
121 yOutput[i] = yInput[i] + hstep * (b71 * dydx[i] + b72 * ak2[i] +
122 b73 * ak3[i] + b74 * ak4[i] +
123 b75 * ak5[i] + b76 * ak6[i]);
124 if (dydxOutput && yError)
128 yError[i] = hstep * (dc1 * dydx[i] + dc2 * ak2[i] + dc3 * ak3[i] +
129 dc4 * ak4[i] + dc5 * ak5[i] + dc6 * ak6[i] +
130 dc7 * dydxOutput[i]);
144 makeStep(fyIn, fdydx, fhstep, fyOut, fdydxOut, yError);
146 copy(yOutput, fyOut);
160 makeStep(fyIn, fdydx, fhstep, fyOut, fdydxOut, yError);
162 copy(yOutput, fyOut);
163 copy(dydxOutput, fdydxOut);
169 makeStep(fyIn, fdydx, fhstep / 2., yMid);
static G4double Distline(const G4ThreeVector &OtherPnt, const G4ThreeVector &LinePntA, const G4ThreeVector &LinePntB)
G4int GetNumberOfVariables() const
void RightHandSide(const G4double y[], G4double dydx[]) const
G4int GetNumberOfStateVariables() const
virtual void Stepper(const G4double yInput[], const G4double dydx[], G4double hstep, G4double yOutput[], G4double yError[]) override
G4RK547FEq2(G4EquationOfMotion *EqRhs, G4int integrationVariables=6)
virtual G4double DistChord() const override
G4ThreeVector makeVector(const ArrayType &array, Value3D value)
void copy(G4double dst[], const G4double src[], std::size_t size=G4FieldTrack::ncompSVEC)