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 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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 namespace Foam
41 {
42 
43 /*---------------------------------------------------------------------------*\
44  Class simpleControl Declaration
45 \*---------------------------------------------------------------------------*/
46 
47 class simpleControl
48 :
49  public solutionControl
50 {
51 
52 protected:
53 
54  // Protected Data
55 
56  //- Initialised flag
57  bool initialised_;
58 
59 
60  // Protected Member Functions
61 
62  //- Read controls from fvSolution dictionary
63  void read();
64 
65  //- Return true if all convergence checks are satisfied
66  bool criteriaSatisfied();
67 
68  //- Disallow default bitwise copy construct
70 
71  //- Disallow default bitwise assignment
72  void operator=(const simpleControl&);
73 
74 
75 public:
76 
77 
78  // Static Data Members
79 
80  //- Run-time type information
81  TypeName("simpleControl");
82 
83 
84  // Constructors
85 
86  //- Construct from mesh
88 
89 
90  //- Destructor
91  virtual ~simpleControl();
92 
93 
94  // Member Functions
95 
96  // Solution control
97 
98  //- Loop loop
99  virtual bool loop();
100 };
101 
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #endif
110 
111 // ************************************************************************* //
Foam::simpleControl
SIMPLE control class to supply convergence information/checks for the SIMPLE loop.
Definition: simpleControl.H:46
Foam::solutionControl
Base class for solution control classes.
Definition: solutionControl.H:45
Foam::simpleControl::initialised_
bool initialised_
Initialised flag.
Definition: simpleControl.H:56
Foam::simpleControl::simpleControl
simpleControl(const simpleControl &)
Disallow default bitwise copy construct.
solutionControl.H
Foam::simpleControl::criteriaSatisfied
bool criteriaSatisfied()
Return true if all convergence checks are satisfied.
Definition: simpleControl.C:45
Foam::simpleControl::loop
virtual bool loop()
Loop loop.
Definition: simpleControl.C:125
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::simpleControl::~simpleControl
virtual ~simpleControl()
Destructor.
Definition: simpleControl.C:119
Foam::simpleControl::operator=
void operator=(const simpleControl &)
Disallow default bitwise assignment.
Foam::simpleControl::read
void read()
Read controls from fvSolution dictionary.
Definition: simpleControl.C:39
Foam::simpleControl::TypeName
TypeName("simpleControl")
Run-time type information.