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.,
98 yTemp[i] = yInput[i] + hstep * b21 * dydx[i];
102 yTemp[i] = yInput[i] + hstep * (b31 * dydx[i] + b32 * ak2[i]);
106 yTemp[i] = yInput[i] + hstep * (b41 * dydx[i] + b42 * ak2[i] +
111 yTemp[i] = yInput[i] + hstep * (b51 * dydx[i] + b52 * ak2[i] +
112 b53 * ak3[i] + b54 * ak4[i]);
116 yTemp[i] = yInput[i] + hstep * (b61 * dydx[i] + b62 * ak2[i] +
117 b63 * ak3[i] + b64 * ak4[i] +
122 yOutput[i] = yInput[i] + hstep * (b71 * dydx[i] + b72 * ak2[i] +
123 b73 * ak3[i] + b74 * ak4[i] +
124 b75 * ak5[i] + b76 * ak6[i]);
125 if (dydxOutput && yError)
129 yError[i] = hstep * (dc1 * dydx[i] + dc2 * ak2[i] + dc3 * ak3[i] +
130 dc4 * ak4[i] + dc5 * ak5[i] + dc6 * ak6[i] +
131 dc7 * dydxOutput[i]);
145 makeStep(fyIn, fdydx, fhstep, fyOut, fdydxOut, yError);
147 copy(yOutput, fyOut);
161 makeStep(fyIn, fdydx, fhstep, fyOut, fdydxOut, yError);
163 copy(yOutput, fyOut);
164 copy(dydxOutput, fdydxOut);
170 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
virtual 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)