initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / finiteVolume / finiteVolume / fvSchemes / fvSchemes.H
blob25a9da32c94854bf5f5d574ad5dd299afd070017
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::fvSchemes
28 Description
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.
33 SourceFiles
34     fvSchemes.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef fvSchemes_H
39 #define fvSchemes_H
41 #include "IOdictionary.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
48 /*---------------------------------------------------------------------------*\
49                            Class fvSchemes Declaration
50 \*---------------------------------------------------------------------------*/
52 class fvSchemes
54     public IOdictionary
56     // Private data
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
88         void clear();
90         //- Disallow default bitwise copy construct
91         fvSchemes(const fvSchemes&);
93         //- Disallow default bitwise assignment
94         void operator=(const fvSchemes&);
97 public:
99     //- Debug switch
100     static int debug;
103     // Constructors
105         //- Construct for objectRegistry
106         fvSchemes(const objectRegistry& obr);
109     // Member Functions
111         // Access
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;
134         // Read
136             //- Read the fvSchemes
137             bool read();
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace Foam
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 #endif
149 // ************************************************************************* //