simpleControl.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 | Copyright (C) 2011-2016 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::simpleControl
26 
27 Description
28  SIMPLE control class to supply convergence information/checks for
29  the SIMPLE loop.
30 
31 \*---------------------------------------------------------------------------*/
32 
33 #ifndef simpleControl_H
34 #define simpleControl_H
35 
36 #include "solutionControl.H"
37 
38 //- Declare that pimpleControl will be used
39 #define SIMPLE_CONTROL
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class simpleControl Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class simpleControl
51 :
52  public solutionControl
53 {
54 
55 protected:
56 
57  // Protected Data
58 
59  //- Initialised flag
60  bool initialised_;
61 
62 
63  // Protected Member Functions
64 
65  //- Read controls from fvSolution dictionary
66  void read();
67 
68  //- Return true if all convergence checks are satisfied
69  bool criteriaSatisfied();
70 
71 
72 private:
73 
74  // Private member functions
75 
76  //- Disallow default bitwise copy construct
78 
79  //- Disallow default bitwise assignment
80  void operator=(const simpleControl&);
81 
82 
83 public:
84 
85  // Static Data Members
86 
87  //- Run-time type information
88  TypeName("simpleControl");
89 
90 
91  // Constructors
92 
93  //- Construct from mesh
95 
96 
97  //- Destructor
98  virtual ~simpleControl();
99 
100 
101  // Member Functions
102 
103  // Solution control
104 
105  //- Loop loop
106  virtual bool loop();
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace Foam
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 #endif
117 
118 // ************************************************************************* //
virtual ~simpleControl()
Destructor.
TypeName("simpleControl")
Run-time type information.
Base class for solution control classes.
virtual bool loop()
Loop loop.
dynamicFvMesh & mesh
void read()
Read controls from fvSolution dictionary.
Definition: simpleControl.C:39
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
bool criteriaSatisfied()
Return true if all convergence checks are satisfied.
Definition: simpleControl.C:45
SIMPLE control class to supply convergence information/checks for the SIMPLE loop.
Definition: simpleControl.H:49
bool initialised_
Initialised flag.
Definition: simpleControl.H:59
Namespace for OpenFOAM.