109 forward(dx > 0 ? true : false),
176 virtual bool resize() = 0;
stepState(const scalar dx)
Abstract base-class for ODE system solvers.
declareRunTimeSelectionTable(autoPtr, ODESolver, dictionary,(const ODESystem &ode, const dictionary &dict),(ode, dict))
void operator=(const ODESolver &)=delete
Disallow default bitwise assignment.
scalarField absTol_
Absolute convergence tolerance per step.
TypeName("ODESolver")
Runtime type information.
scalarField & absTol()
Return access to the absolute tolerance field.
ODESolver(const ODESystem &ode, const dictionary &dict)
Construct for given ODESystem.
scalarField relTol_
Relative convergence tolerance per step.
const label maxN_
Maximum size of the ODESystem.
virtual void solve(scalar &x, scalarField &y, const label li, scalar &dxTry) const
Solve the ODE system from the current state xStart, y.
label n_
Size of the ODESystem (adjustable)
const ODESystem & odes_
Reference to ODESystem.
void resizeMatrix(scalarSquareMatrix &m) const
scalarField & relTol()
Return access to the relative tolerance field.
label nEqns() const
Return the number of equations to solve.
scalar normaliseError(const scalarField &y0, const scalarField &y, const scalarField &err) const
Return the normalised scalar error.
label maxSteps_
The maximum number of sub-steps allowed for the integration step.
virtual bool resize()=0
Resize the ODE solver.
static autoPtr< ODESolver > New(const ODESystem &ode, const dictionary &dict)
Select null constructed.
virtual ~ODESolver()
Destructor.
static void resizeField(UList< Type > &f, const label n)
Abstract base class for the systems of ordinary differential equations.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
An ODE solver for chemistry.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar y0(const dimensionedScalar &ds)
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...