38 RKDP45::c3 = 3.0/10.0,
42 RKDP45::a21 = 1.0/5.0,
44 RKDP45::a31 = 3.0/40.0,
45 RKDP45::a32 = 9.0/40.0,
47 RKDP45::a41 = 44.0/45.0,
48 RKDP45::a42 = -56.0/15.0,
49 RKDP45::a43 = 32.0/9.0,
51 RKDP45::a51 = 19372.0/6561.0,
52 RKDP45::a52 = -25360.0/2187.0,
53 RKDP45::a53 = 64448.0/6561.0,
54 RKDP45::a54 = -212.0/729.0,
56 RKDP45::a61 = 9017.0/3168.0,
57 RKDP45::a62 = -355.0/33.0,
58 RKDP45::a63 = 46732.0/5247.0,
59 RKDP45::a64 = 49.0/176.0,
60 RKDP45::a65 = -5103.0/18656.0,
62 RKDP45::b1 = 35.0/384.0,
63 RKDP45::b3 = 500.0/1113.0,
64 RKDP45::b4 = 125.0/192.0,
65 RKDP45::b5 = -2187.0/6784.0,
66 RKDP45::b6 = 11.0/84.0,
68 RKDP45::e1 = 5179.0/57600.0 - RKDP45::b1,
69 RKDP45::e3 = 7571.0/16695.0 - RKDP45::b3,
70 RKDP45::e4 = 393.0/640.0 - RKDP45::b4,
71 RKDP45::e5 = -92097.0/339200.0 - RKDP45::b5,
72 RKDP45::e6 = 187.0/2100.0 - RKDP45::b6,
73 RKDP45::e7 = 1.0/40.0;
129 yTemp_[i] = y0[i] + a21*dx*dydx0[i];
136 yTemp_[i] = y0[i] + dx*(a31*dydx0[i] + a32*k2_[i]);
143 yTemp_[i] = y0[i] + dx*(a41*dydx0[i] + a42*k2_[i] + a43*k3_[i]);
151 + dx*(a51*dydx0[i] + a52*k2_[i] + a53*k3_[i] + a54*k4_[i]);
160 *(a61*dydx0[i] + a62*k2_[i] + a63*k3_[i] + a64*k4_[i] + a65*k5_[i]);
168 + dx*(b1*dydx0[i] + b3*k3_[i] + b4*k4_[i] + b5*k5_[i] + b6*k6_[i]);
178 *(e1*dydx0[i] + e3*k3_[i] + e4*k4_[i] + e5*k5_[i] + e6*k6_[i]
virtual scalar solve(const scalar x0, const scalarField &y0, const scalarField &dydx0, const scalar dx, scalarField &y) const =0
Solve a single step dx and return the error.
#define forAll(list, i)
Loop across all elements in list.
Abstract base class for the systems of ordinary differential equations.
virtual bool resize()=0
Resize the ODE solver.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An ODE solver for chemistry.
Macros for easy insertion into run-time selection tables.
virtual bool resize()
Resize the ODE solver.
bool resize(const label n)
Resize the ODE solver.
const ODESystem & odes_
Reference to ODESystem.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
RKDP45(const ODESystem &ode, const dictionary &dict)
Construct from ODESystem.
defineTypeNameAndDebug(combustionModel, 0)
virtual scalar solve(const scalar x0, const scalarField &y0, const scalarField &dydx0, const scalar dx, scalarField &y) const
Solve a single step dx and return the error.
scalar normalizeError(const scalarField &y0, const scalarField &y, const scalarField &err) const
Return the nomalized scalar error.
Abstract base-class for ODE system solvers.
static void resizeField(UList< Type > &f, const label n)
label n_
Size of the ODESystem (adjustable)
virtual void derivatives(const scalar x, const scalarField &y, scalarField &dydx) const =0
Calculate the derivatives in dydx.