Go to the documentation of this file.
62 y[i] =
y0[i] + dx*dydx0[i];
66 odes_.derivatives(x0 + dx,
y, err_);
72 y[i] =
y0[i] + 0.5*dx*(dydx0[i] + err_[i]);
73 err_[i] = 0.5*dx*(err_[i] - dydx0[i]);
76 return normalizeError(
y0,
y, err_);
Trapezoid(const ODESystem &ode, const dictionary &dict)
Construct from ODE.
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)
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.
Abstract base class for the systems of ordinary differential equations.
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.
defineTypeNameAndDebug(combustionModel, 0)