1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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_;
83 // Private Member Functions
85 //- Disallow default bitwise copy construct and assignment
86 fvSchemes(const fvSchemes&);
87 void operator=(const fvSchemes&);
98 //- Construct for objectRegistry
99 fvSchemes(const objectRegistry& obr);
106 const dictionary& schemesDict() const;
108 ITstream& ddtScheme(const word& name) const;
110 ITstream& d2dt2Scheme(const word& name) const;
112 ITstream& interpolationScheme(const word& name) const;
114 ITstream& divScheme(const word& name) const;
116 ITstream& gradScheme(const word& name) const;
118 ITstream& snGradScheme(const word& name) const;
120 ITstream& laplacianScheme(const word& name) const;
122 bool fluxRequired(const word& name) const;
127 //- Read the fvSchemes
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace Foam
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 // ************************************************************************* //