fvSchemes.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011 OpenFOAM Foundation
9  Copyright (C) 2020-2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::fvSchemes
29 
30 Description
31  Selector class for finite volume differencing schemes.
32  fvMesh is derived from fvSchemes so that all fields have access to the
33  fvSchemes from the mesh reference they hold.
34 
35 SourceFiles
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef fvSchemes_H
40 #define fvSchemes_H
41 
42 #include "schemesLookup.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class fvSchemes Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class fvSchemes
54 :
55  public schemesLookup
56 {
57 public:
58 
59  // Constructors
60 
61  //- No copy construct
62  fvSchemes(const fvSchemes&) = delete;
63 
64  //- No copy assignment
65  void operator=(const fvSchemes&) = delete;
66 
67  //- Construct for objectRegistry, dictionary name and optional
68  //- fallback dictionary content (for a NO_READ or missing file)
69  // A null dictionary pointer is treated like an empty dictionary.
71  (
72  const objectRegistry& obr,
73  const word& dictName,
74  const dictionary* fallback = nullptr
75  )
76  :
77  schemesLookup(obr, dictName, fallback)
78  {}
79 
80  //- Construct for objectRegistry, and optional
81  //- fallback dictionary content (for a NO_READ or missing file)
82  // A null dictionary pointer is treated like an empty dictionary.
83  explicit fvSchemes
84  (
85  const objectRegistry& obr,
86  const dictionary* fallback = nullptr
87  )
88  :
89  fvSchemes(obr, "fvSchemes", fallback)
90  {}
91 
92  //- Construct for objectRegistry, and
93  //- fallback dictionary content (for a NO_READ or missing file)
94  fvSchemes(const objectRegistry& obr, const dictionary& dict)
95  :
96  fvSchemes(obr, "fvSchemes", &dict)
97  {}
98 };
99 
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::fvSchemes
Selector class for finite volume differencing schemes. fvMesh is derived from fvSchemes so that all f...
Definition: fvSchemes.H:52
Foam::fvSchemes::operator=
void operator=(const fvSchemes &)=delete
No copy assignment.
schemesLookup.H
Foam::objectRegistry
Registry of regIOobjects.
Definition: objectRegistry.H:60
Foam::fvSchemes::fvSchemes
fvSchemes(const fvSchemes &)=delete
No copy construct.
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::fvSchemes::fvSchemes
fvSchemes(const objectRegistry &obr, const dictionary &dict)
Definition: fvSchemes.H:93
Foam::schemesLookup
Selector class for finite area/finite volume differencing schemes.
Definition: schemesLookup.H:52
Foam::dictionary::dictName
word dictName() const
The local dictionary name (final part of scoped name)
Definition: dictionaryI.H:60