Go to the documentation of this file.
106 yTemp_[i] =
y0[i] + a21*dx*dydx0[i];
109 odes_.derivatives(x0 +
c2*dx, yTemp_, k2_);
113 yTemp_[i] =
y0[i] + dx*(a31*dydx0[i] + a32*k2_[i]);
116 odes_.derivatives(x0 + c3*dx, yTemp_, k3_);
120 yTemp_[i] =
y0[i] + dx*(a41*dydx0[i] + a42*k2_[i] + a43*k3_[i]);
123 odes_.derivatives(x0 + c4*dx, yTemp_, k4_);
128 + dx*(a51*dydx0[i] + a52*k2_[i] + a53*k3_[i] + a54*k4_[i]);
131 odes_.derivatives(x0 + c5*dx, yTemp_, k5_);
137 *(a61*dydx0[i] + a62*k2_[i] + a63*k3_[i] + a64*k4_[i] + a65*k5_[i]);
140 odes_.derivatives(x0 + dx, yTemp_, k6_);
145 + dx*(b1*dydx0[i] + b3*k3_[i] + b4*k4_[i] + b5*k5_[i] + b6*k6_[i]);
149 odes_.derivatives(x0 + dx,
y, k2_);
155 *(e1*dydx0[i] + e3*k3_[i] + e4*k4_[i] + e5*k5_[i] + e6*k6_[i]
159 return normalizeError(
y0,
y, err_);
Abstract base-class for ODE system solvers.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
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.
Pre-declare SubField and related Field type.
RKDP45(const ODESystem &ode, const dictionary &dict)
Construct from ODE.
dimensionedScalar y0(const dimensionedScalar &ds)
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.
An ODE solver for chemistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
const dimensionedScalar c2
Second radiation constant: default SI units: [m.K].
Abstract base class for the systems of ordinary differential equations.
static const scalar c2
RKDP Constants.
defineTypeNameAndDebug(combustionModel, 0)