56void G4RK547FEq3::makeStep(
const G4double yInput[],
66 yOutput[i] = yTemp[i] = yInput[i];
76 b31 = 11./120., b32 = 11./40.,
77 b41 = 106865./87808., b42 = -408375./87808.,
79 b51 = 79503./121000., b52 = -1053./440.,
80 b53 = 147753./56870., b54 = 27048./710875.,
81 b61 = 89303./78045., b62 = -2025./473.,
82 b63 = 994650./244541., b64 = -2547216./28122215.,
84 b71 = 1247./10890., b72 = 0., b73 = 57375./108053.,
85 b74 = -1229312./1962015., b75 = 125./207.,
88 const G4double dc1 = b71 - 21487./185130.,
90 dc3 = b73 - 963225./1836901.,
91 dc4 = b74 + 39864832./33354255.,
92 dc5 = b75 - 2575./3519.,
93 dc6 = b76 - 4472./4845.,
99 yTemp[i] = yInput[i] + hstep * b21 * dydx[i];
105 yTemp[i] = yInput[i] + hstep * (b31 * dydx[i] + b32 * ak2[i]);
111 yTemp[i] = yInput[i] + hstep * (b41 * dydx[i] + b42 * ak2[i] +
118 yTemp[i] = yInput[i] + hstep * (b51 * dydx[i] + b52 * ak2[i] +
119 b53 * ak3[i] + b54 * ak4[i]);
125 yTemp[i] = yInput[i] + hstep * (b61 * dydx[i] + b62 * ak2[i] +
126 b63 * ak3[i] + b64 * ak4[i] +
133 yOutput[i] = yInput[i] + hstep * (b71 * dydx[i] + b72 * ak2[i] +
134 b73 * ak3[i] + b74 * ak4[i] +
135 b75 * ak5[i] + b76 * ak6[i]);
137 if ((dydxOutput !=
nullptr) && (yError !=
nullptr))
142 yError[i] = hstep * (dc1 * dydx[i] + dc2 * ak2[i] + dc3 * ak3[i] +
143 dc4 * ak4[i] + dc5 * ak5[i] + dc6 * ak6[i] +
144 dc7 * dydxOutput[i]);
159 makeStep(fyIn, fdydx, fhstep, fyOut, fdydxOut, yError);
161 copy(yOutput, fyOut);
175 makeStep(fyIn, fdydx, fhstep, fyOut, fdydxOut, yError);
177 copy(yOutput, fyOut);
178 copy(dydxOutput, fdydxOut);
184 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
void Stepper(const G4double yInput[], const G4double dydx[], G4double hstep, G4double yOutput[], G4double yError[]) override
G4double DistChord() const override
G4RK547FEq3(G4EquationOfMotion *EqRhs, G4int integrationVariables=6)
G4ThreeVector makeVector(const ArrayType &array, Value3D value)
void copy(G4double dst[], const G4double src[], std::size_t size=G4FieldTrack::ncompSVEC)