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