CorrectionLimitingMethod.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2013-2018 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::CorrectionLimitingMethod
26 
27 Description
28  Base class for correction limiting methods.
29 
30 SourceFiles
31  CorrectionLimitingMethod.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef CorrectionLimitingMethod_H
36 #define CorrectionLimitingMethod_H
37 
38 #include "volFieldsFwd.H"
39 #include "dictionary.H"
40 #include "runTimeSelectionTables.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class CorrectionLimitingMethod Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 {
53 private:
54 
55  // Private Member Functions
56 
57  //- Disallow default bitwise assignment
58  void operator=(const CorrectionLimitingMethod&);
59 
60 
61 public:
62 
63  //- Runtime type information
64  TypeName("correctionLimitingMethod");
65 
66  //- Declare runtime constructor selection table
68  (
69  autoPtr,
71  dictionary,
72  (const dictionary& dict),
73  (dict)
74  );
75 
76 
77  // Constructors
78 
79  //- Construct from components
81 
82  //- Construct as copy
84 
85  //- Construct and return a clone
86  virtual autoPtr<CorrectionLimitingMethod> clone() const = 0;
87 
88 
89  //- Selector
91  (
92  const dictionary& dict
93  );
94 
95 
96  //- Destructor
97  virtual ~CorrectionLimitingMethod();
98 
99 
100  // Member Functions
101 
102  //- Return the limited velocity
103  virtual vector limitedVelocity
104  (
105  const vector uP,
106  const vector dU,
107  const vector uMean
108  ) const = 0;
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
static autoPtr< CorrectionLimitingMethod > New(const dictionary &dict)
Selector.
virtual vector limitedVelocity(const vector uP, const vector dU, const vector uMean) const =0
Return the limited velocity.
virtual autoPtr< CorrectionLimitingMethod > clone() const =0
Construct and return a clone.
virtual ~CorrectionLimitingMethod()
Destructor.
Base class for correction limiting methods.
CorrectionLimitingMethod(const dictionary &dict)
Construct from components.
declareRunTimeSelectionTable(autoPtr, CorrectionLimitingMethod, dictionary,(const dictionary &dict),(dict))
Declare runtime constructor selection table.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Macros to ease declaration of run-time selection tables.
TypeName("correctionLimitingMethod")
Runtime type information.
Namespace for OpenFOAM.