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 autoPtr< ODESolver > New(const ODESystem &ode, const dictionary &dict)
Select null constructed.
const ODESystem & odes_
Reference to ODESystem.
virtual ~ODESolver()
Destructor.
declareRunTimeSelectionTable(autoPtr, ODESolver, dictionary,(const ODESystem &ode, const dictionary &dict),(ode, dict))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
dimensionedScalar y0(const dimensionedScalar &ds)
void operator=(const ODESolver &)
Disallow default bitwise assignment.
An ODE solver for chemistry.
label maxSteps_
The maximum number of sub-steps allowed for the integration step.
A list of keyword definitions, which are a keyword followed by any number of values (e....
TypeName("ODESolver")
Runtime type information.
scalarField absTol_
Absolute convergence tolerance per step.
label n_
Size of the ODESystem.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Abstract base class for the systems of ordinary differential equations.
virtual void solve(scalar &x, scalarField &y, scalar &dxTry) const
Solve the ODE system as far as possible upto dxTry.
ODESolver(const ODESolver &)
Disallow default bitwise copy construct.
scalarField relTol_
Relative convergence tolerance per step.
stepState(const scalar dx)