#include <adaptiveSolver.H>

Public Member Functions | |
| adaptiveSolver (const ODESystem &ode, const dictionary &dict) | |
| Construct from ODESystem. | |
| virtual | ~adaptiveSolver ()=default |
| Destructor. | |
| bool | resize (const label n) |
| Resize the ODE solver. | |
| 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. | |
| void | solve (const ODESystem &ode, scalar &x, scalarField &y, scalar &dxTry) const |
| Solve the ODE system and the update the state. | |
| adaptiveSolver | ( | const ODESystem & | ode, |
| const dictionary & | dict ) |
Construct from ODESystem.
Definition at line 27 of file adaptiveSolver.C.
References dict.
Referenced by Euler::Euler(), EulerSI::EulerSI(), RKCK45::RKCK45(), RKDP45::RKDP45(), RKF45::RKF45(), rodas23::rodas23(), rodas34::rodas34(), Rosenbrock12::Rosenbrock12(), Rosenbrock23::Rosenbrock23(), Rosenbrock34::Rosenbrock34(), and Trapezoid::Trapezoid().

|
virtualdefault |
Destructor.
References n.
| bool resize | ( | const label | n | ) |
Resize the ODE solver.
Definition at line 45 of file adaptiveSolver.C.
References n, and ODESolver::resizeField().
Referenced by Euler::resize(), EulerSI::resize(), RKCK45::resize(), RKDP45::resize(), RKF45::resize(), rodas23::resize(), rodas34::resize(), Rosenbrock12::resize(), Rosenbrock23::resize(), Rosenbrock34::resize(), and Trapezoid::resize().


|
pure virtual |
Solve a single step dx and return the error.
Implemented in Euler, EulerSI, RKCK45, RKDP45, RKF45, rodas23, rodas34, Rosenbrock12, Rosenbrock23, Rosenbrock34, and Trapezoid.
References x, y, and Foam::y0().
Referenced by Euler::solve(), EulerSI::solve(), RKCK45::solve(), RKDP45::solve(), RKF45::solve(), rodas23::solve(), rodas34::solve(), Rosenbrock12::solve(), Rosenbrock23::solve(), Rosenbrock34::solve(), and Trapezoid::solve().


| void solve | ( | const ODESystem & | ode, |
| scalar & | x, | ||
| scalarField & | y, | ||
| scalar & | dxTry ) const |
Solve the ODE system and the update the state.
Definition at line 54 of file adaptiveSolver.C.
References Foam::clamp(), ODESystem::derivatives(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::max(), Foam::pow(), solve(), x, and y.
