1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
34 \*---------------------------------------------------------------------------*/
39 #include "ODESolver.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class SIBS Declaration
48 \*---------------------------------------------------------------------------*/
56 static const label kMaxX_ = 7, iMaxX_ = kMaxX_ + 1;
57 static const label nSeq_[iMaxX_];
59 static const scalar safe1, safe2, redMax, redMin, scaleMX;
61 mutable scalarField a_;
62 mutable scalarSquareMatrix alpha_;
63 mutable scalarRectangularMatrix d_p_;
64 mutable scalarField x_p_;
65 mutable scalarField err_;
67 mutable scalarField yTemp_;
68 mutable scalarField ySeq_;
69 mutable scalarField yErr_;
70 mutable scalarField dfdx_;
71 mutable scalarSquareMatrix dfdy_;
73 mutable label first_, kMax_, kOpt_;
74 mutable scalar epsOld_, xNew_;
77 // Private Member Functions
84 const scalarField& dydx,
85 const scalarField& dfdx,
86 const scalarSquareMatrix& dfdy,
96 const scalarField& yest,
100 scalarRectangularMatrix& d_p
106 //- Runtime type information
112 //- Construct from ODE
113 SIBS(const ODE& ode);
125 const scalarField& yScale,
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 } // End namespace Foam
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 // ************************************************************************* //