faSchemes.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) 2016-2017 Wikki Ltd
9  Copyright (C) 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::faSchemes
29 
30 Description
31  Selector class for finite area differencing schemes.
32  faMesh is derived from faSchemes so that all fields have access to the
33  faSchemes from the mesh reference they hold.
34 
35 SourceFiles
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef faSchemes_H
40 #define faSchemes_H
41 
42 #include "schemesLookup.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class faSchemes Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class faSchemes
54 :
55  public schemesLookup
56 {
57 public:
58 
59  //- No copy construct
60  faSchemes(const faSchemes&) = delete;
61 
62  //- No copy assignment
63  void operator=(const faSchemes&) = delete;
64 
65 
66  // Constructors
67 
68  //- Construct for objectRegistry, dictionary name and optional
69  //- fallback dictionary content (for a NO_READ or missing file)
70  // A null dictionary pointer is treated like an empty dictionary.
72  (
73  const objectRegistry& obr,
74  const word& dictName,
75  const dictionary* fallback = nullptr
76  )
77  :
78  schemesLookup(obr, dictName, fallback)
79  {}
80 
81  //- Construct for objectRegistry, and optional
82  //- fallback dictionary content (for a NO_READ or missing file)
83  // A null dictionary pointer is treated like an empty dictionary.
84  explicit faSchemes
85  (
86  const objectRegistry& obr,
87  const dictionary* fallback = nullptr
88  )
89  :
90  faSchemes(obr, "faSchemes", fallback)
91  {}
92 
93  //- Construct for objectRegistry, and
94  //- fallback dictionary content (for a NO_READ or missing file)
95  faSchemes(const objectRegistry& obr, const dictionary& dict)
96  :
97  faSchemes(obr, "faSchemes", &dict)
98  {}
99 };
100 
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 } // End namespace Foam
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 #endif
109 
110 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::faSchemes
Selector class for finite area differencing schemes. faMesh is derived from faSchemes so that all fie...
Definition: faSchemes.H:52
Foam::faSchemes::faSchemes
faSchemes(const objectRegistry &obr, const dictionary &dict)
Definition: faSchemes.H:94
schemesLookup.H
Foam::objectRegistry
Registry of regIOobjects.
Definition: objectRegistry.H:60
Foam::faSchemes::faSchemes
faSchemes(const faSchemes &)=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::faSchemes::operator=
void operator=(const faSchemes &)=delete
No copy assignment.
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