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