38 RKCK45::c3 = 3.0/10.0,
43 RKCK45::a21 = 1.0/5.0,
44 RKCK45::a31 = 3.0/40.0,
45 RKCK45::a32 = 9.0/40.0,
46 RKCK45::a41 = 3.0/10.0,
47 RKCK45::a42 = -9.0/10.0,
48 RKCK45::a43 = 6.0/5.0,
49 RKCK45::a51 = -11.0/54.0,
50 RKCK45::a52 = 5.0/2.0,
51 RKCK45::a53 = -70.0/27.0,
52 RKCK45::a54 = 35.0/27.0,
53 RKCK45::a61 = 1631.0/55296.0,
54 RKCK45::a62 = 175.0/512.0,
55 RKCK45::a63 = 575.0/13824.0,
56 RKCK45::a64 = 44275.0/110592.0,
57 RKCK45::a65 = 253.0/4096.0,
59 RKCK45::b1 = 37.0/378.0,
60 RKCK45::b3 = 250.0/621.0,
61 RKCK45::b4 = 125.0/594.0,
62 RKCK45::b6 = 512.0/1771.0,
64 RKCK45::e1 = RKCK45::b1 - 2825.0/27648.0,
65 RKCK45::e3 = RKCK45::b3 - 18575.0/48384.0,
66 RKCK45::e4 = RKCK45::b4 - 13525.0/55296.0,
67 RKCK45::e5 = -277.00/14336.0,
68 RKCK45::e6 = RKCK45::b6 - 0.25;
124 yTemp_[i] = y0[i] + a21*dx*dydx0[i];
131 yTemp_[i] = y0[i] + dx*(a31*dydx0[i] + a32*k2_[i]);
138 yTemp_[i] = y0[i] + dx*(a41*dydx0[i] + a42*k2_[i] + a43*k3_[i]);
146 + dx*(a51*dydx0[i] + a52*k2_[i] + a53*k3_[i] + a54*k4_[i]);
155 *(a61*dydx0[i] + a62*k2_[i] + a63*k3_[i] + a64*k4_[i] + a65*k5_[i]);
163 + dx*(b1*dydx0[i] + b3*k3_[i] + b4*k4_[i] + b6*k6_[i]);
170 *(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...
virtual bool resize()
Resize the ODE solver.
An ODE solver for chemistry.
Macros for easy insertion into run-time selection tables.
bool resize(const label n)
Resize the ODE solver.
const ODESystem & odes_
Reference to ODESystem.
RKCK45(const ODESystem &ode, const dictionary &dict)
Construct from ODESystem.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
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.