An extrapolation-algorithm, based on the linearly implicit Euler method with step size control and order selection. More...
Public Member Functions | |
TypeName ("seulex") | |
Runtime type information. More... | |
seulex (const ODESystem &ode, const dictionary &dict) | |
Construct from ODE. More... | |
void | solve (scalar &x, scalarField &y, stepState &step) const |
Solve the ODE system and the update the state. More... | |
![]() | |
TypeName ("ODESolver") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, ODESolver, dictionary,(const ODESystem &ode, const dictionary &dict),(ode, dict)) | |
ODESolver (const ODESystem &ode, const dictionary &dict) | |
Construct for given ODESystem. More... | |
ODESolver (const ODESystem &ode, const scalarField &absTol, const scalarField &relTol) | |
Construct for given ODESystem specifying tolerances. More... | |
virtual | ~ODESolver () |
Destructor. More... | |
scalarField & | absTol () |
scalarField & | relTol () |
virtual void | solve (scalar &x, scalarField &y, scalar &dxTry) const |
Solve the ODE system as far as possible upto dxTry. More... | |
virtual void | solve (const scalar xStart, const scalar xEnd, scalarField &y, scalar &dxEst) const |
Solve the ODE system from xStart to xEnd, update the state. More... | |
Private Member Functions | |
bool | seul (const scalar x0, const scalarField &y0, const scalar dxTot, const label k, scalarField &y, const scalarField &scale) const |
Computes the j-th line of the extrapolation table. More... | |
void | extrapolate (const label k, scalarRectangularMatrix &table, scalarField &y) const |
Polynomial extrpolation. More... | |
Static Private Attributes | |
static const label | kMaxx_ = 12 |
static const label | iMaxx_ = kMaxx_ + 1 |
static const scalar | stepFactor1_ = 0.6 |
static const scalar | stepFactor2_ = 0.93 |
static const scalar | stepFactor3_ = 0.1 |
static const scalar | stepFactor4_ = 4.0 |
static const scalar | stepFactor5_ = 0.5 |
static const scalar | kFactor1_ = 0.7 |
static const scalar | kFactor2_ = 0.9 |
Additional Inherited Members | |
![]() | |
static autoPtr< ODESolver > | New (const ODESystem &ode, const dictionary &dict) |
Select null constructed. More... | |
![]() | |
scalar | normalizeError (const scalarField &y0, const scalarField &y, const scalarField &err) const |
Return the nomalized scalar error. More... | |
ODESolver (const ODESolver &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const ODESolver &) |
Disallow default bitwise assignment. More... | |
![]() | |
const ODESystem & | odes_ |
Reference to ODESystem. More... | |
label | n_ |
Size of the ODESystem. More... | |
scalarField | absTol_ |
Absolute convergence tolerance per step. More... | |
scalarField | relTol_ |
Relative convergence tolerance per step. More... | |
label | maxSteps_ |
The maximum number of sub-steps allowed for the integration step. More... | |
An extrapolation-algorithm, based on the linearly implicit Euler method with step size control and order selection.
The implementation is based on the SEULEX algorithm in
"Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems, second edition", Hairer, E., Nørsett, S., Wanner, G., Springer-Verlag, Berlin. 1996.
seulex | ( | const ODESystem & | ode, |
const dictionary & | dict | ||
) |
Construct from ODE.
Definition at line 50 of file seulex.C.
References seulex::coeff_, seulex::cpu_, seulex::iMaxx_, k, seulex::kMaxx_, and seulex::nSeq_.
|
private |
Computes the j-th line of the extrapolation table.
Definition at line 104 of file seulex.C.
References k, Foam::LUBacksubstitute(), Foam::LUDecompose(), Foam::min(), Foam::sqr(), Foam::sqrt(), y, and Foam::y0().
|
private |
TypeName | ( | "seulex" | ) |
Runtime type information.
|
virtual |
Solve the ODE system and the update the state.
Reimplemented from ODESolver.
Definition at line 207 of file seulex.C.
References ODESolver::stepState::dxDid, ODESolver::stepState::dxTry, Foam::endl(), ODESolver::stepState::first, forAll, ODESolver::stepState::forward, k, ODESolver::stepState::last, Foam::log10(), Foam::mag(), Foam::max(), Foam::min(), Foam::pow(), ODESolver::stepState::prevReject, ODESolver::stepState::reject, Foam::sqr(), Foam::sqrt(), success, WarningInFunction, x, and y.
|
staticprivate |
Definition at line 69 of file seulex.H.
Referenced by seulex::seulex().
Definition at line 70 of file seulex.H.
Referenced by seulex::seulex().
|
private |
Definition at line 80 of file seulex.H.
Referenced by seulex::seulex().
|
private |
Definition at line 81 of file seulex.H.
Referenced by seulex::seulex().
|
private |
Definition at line 82 of file seulex.H.
Referenced by seulex::seulex().
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
private |
|
mutableprivate |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.