1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Selector class for finite volume differencing schemes.
30 fvMesh is derived from fvShemes so that all fields have access to the
31 fvSchemes from the mesh reference they hold.
36 \*---------------------------------------------------------------------------*/
41 #include "IOdictionary.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class fvSchemes Declaration
50 \*---------------------------------------------------------------------------*/
58 dictionary ddtSchemes_;
59 ITstream defaultDdtScheme_;
61 dictionary d2dt2Schemes_;
62 ITstream defaultD2dt2Scheme_;
64 dictionary interpolationSchemes_;
65 ITstream defaultInterpolationScheme_;
67 dictionary divSchemes_;
68 ITstream defaultDivScheme_;
70 dictionary gradSchemes_;
71 ITstream defaultGradScheme_;
73 dictionary snGradSchemes_;
74 ITstream defaultSnGradScheme_;
76 dictionary laplacianSchemes_;
77 ITstream defaultLaplacianScheme_;
79 dictionary fluxRequired_;
80 bool defaultFluxRequired_;
82 dictionary cacheFields_;
85 // Private Member Functions
87 //- Clear the dictionaries and streams before reading
90 //- Disallow default bitwise copy construct
91 fvSchemes(const fvSchemes&);
93 //- Disallow default bitwise assignment
94 void operator=(const fvSchemes&);
105 //- Construct for objectRegistry
106 fvSchemes(const objectRegistry& obr);
113 const dictionary& schemesDict() const;
115 ITstream& ddtScheme(const word& name) const;
117 ITstream& d2dt2Scheme(const word& name) const;
119 ITstream& interpolationScheme(const word& name) const;
121 ITstream& divScheme(const word& name) const;
123 ITstream& gradScheme(const word& name) const;
125 ITstream& snGradScheme(const word& name) const;
127 ITstream& laplacianScheme(const word& name) const;
129 bool fluxRequired(const word& name) const;
131 bool cache(const word& name) const;
136 //- Read the fvSchemes
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace Foam
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 // ************************************************************************* //