79 err_[i] = dx*dydx0[i];
85 y[i] = y0[i] + err_[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.
Euler(const ODESystem &ode, const dictionary &dict)
Construct from ODESystem.
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.
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.
Macros for easy insertion into run-time selection tables.
bool resize(const label n)
Resize the ODE solver.
const ODESystem & odes_
Reference to ODESystem.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
scalar normalizeError(const scalarField &y0, const scalarField &y, const scalarField &err) const
Return the nomalized scalar error.
Abstract base-class for ODE system solvers.
virtual bool resize()
Resize the ODE solver.
static void resizeField(UList< Type > &f, const label n)
label n_
Size of the ODESystem (adjustable)