Go to the documentation of this file.
102 yTemp_[i] =
y0[i] + a21*dx*dydx0[i];
105 odes_.derivatives(x0 +
c2*dx, yTemp_, k2_);
109 yTemp_[i] =
y0[i] + dx*(a31*dydx0[i] + a32*k2_[i]);
112 odes_.derivatives(x0 + c3*dx, yTemp_, k3_);
116 yTemp_[i] =
y0[i] + dx*(a41*dydx0[i] + a42*k2_[i] + a43*k3_[i]);
119 odes_.derivatives(x0 + c4*dx, yTemp_, k4_);
124 + dx*(a51*dydx0[i] + a52*k2_[i] + a53*k3_[i] + a54*k4_[i]);
127 odes_.derivatives(x0 + c5*dx, yTemp_, k5_);
133 *(a61*dydx0[i] + a62*k2_[i] + a63*k3_[i] + a64*k4_[i] + a65*k5_[i]);
136 odes_.derivatives(x0 + c6*dx, yTemp_, k6_);
143 *(b1*dydx0[i] + b3*k3_[i] + b4*k4_[i] + b5*k5_[i] + b6*k6_[i]);
152 *(e1*dydx0[i] + e3*k3_[i] + e4*k4_[i] + e5*k5_[i] + e6*k6_[i]);
155 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.
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.
RKF45(const ODESystem &ode, const dictionary &dict)
Construct from ODE.
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
RKF45 Constants.
defineTypeNameAndDebug(combustionModel, 0)