Go to the documentation of this file.
121 forward(dx > 0 ? true : false),
175 inline label
nEqns()
const;
184 virtual bool resize() = 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.
static autoPtr< ODESolver > New(const ODESystem &ode, const dictionary &dict)
Select null constructed.
const ODESystem & odes_
Reference to ODESystem.
void operator=(const ODESolver &)=delete
No copy assignment.
declareRunTimeSelectionTable(autoPtr, ODESolver, dictionary,(const ODESystem &ode, const dictionary &dict),(ode, dict))
scalarField & relTol()
Return access to the relative tolerance field.
dimensionedScalar y0(const dimensionedScalar &ds)
virtual ~ODESolver()=default
Destructor.
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 a number of values (eg,...
scalarField & absTol()
Return access to the absolute tolerance field.
static void resizeField(UList< Type > &f, const label n)
ODESolver(const ODESolver &)=delete
No copy construct.
TypeName("ODESolver")
Runtime type information.
scalarField absTol_
Absolute convergence tolerance per step.
label n_
Size of the ODESystem (adjustable)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void resizeMatrix(scalarSquareMatrix &m) const
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 up to dxTry.
scalarField relTol_
Relative convergence tolerance per step.
virtual bool resize()=0
Resize the ODE solver.
stepState(const scalar dx)
label nEqns() const
Return the number of equations to solve.
const label maxN_
Maximum size of the ODESystem.