wallLubricationModel.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) 2014-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::wallLubricationModel
26 
27 Description
28 
29 SourceFiles
30  wallLubricationModel.C
31  newWallLubricationModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef wallLubricationModel_H
36 #define wallLubricationModel_H
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 #include "wallDependentModel.H"
41 #include "volFields.H"
42 #include "dictionary.H"
43 #include "runTimeSelectionTables.H"
44 
45 namespace Foam
46 {
47 
48 class phasePair;
49 
50 /*---------------------------------------------------------------------------*\
51  Class wallLubricationModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public wallDependentModel
57 {
58 protected:
59 
60  // Protected data
61 
62  //- Phase pair
63  const phasePair& pair_;
64 
65 
66  // Protected member functions
67 
68  //- Zero-gradient wall-lubrication force at walls
70 
71 
72 public:
73 
74  //- Runtime type information
75  TypeName("wallLubricationModel");
76 
77 
78  // Declare runtime construction
79 
81  (
82  autoPtr,
84  dictionary,
85  (
86  const dictionary& dict,
87  const phasePair& pair
88  ),
89  (dict, pair)
90  );
91 
92 
93  // Static data members
94 
95  //- Coefficient dimensions
96  static const dimensionSet dimF;
97 
98 
99  // Constructors
100 
101  //- Construct from components
103  (
104  const dictionary& dict,
105  const phasePair& pair
106  );
107 
108 
109  //- Destructor
110  virtual ~wallLubricationModel();
111 
112 
113  // Selectors
114 
116  (
117  const dictionary& dict,
118  const phasePair& pair
119  );
120 
121 
122  // Member Functions
123 
124  //- Return phase-intensive wall lubrication force
125  virtual tmp<volVectorField> Fi() const = 0;
126 
127  //- Return wall lubrication force
128  virtual tmp<volVectorField> F() const;
129 
130  //- Return face wall lubrication force
131  virtual tmp<surfaceScalarField> Ff() const;
132 };
133 
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
static autoPtr< wallLubricationModel > New(const dictionary &dict, const phasePair &pair)
const phasePair & pair_
Phase pair.
declareRunTimeSelectionTable(autoPtr, wallLubricationModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
Dimension set for the base types.
Definition: dimensionSet.H:118
virtual tmp< volVectorField > Fi() const =0
Return phase-intensive wall lubrication force.
virtual ~wallLubricationModel()
Destructor.
static const dimensionSet dimF
Coefficient dimensions.
wallLubricationModel(const dictionary &dict, const phasePair &pair)
Construct from components.
TypeName("wallLubricationModel")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Definition: PtrList.H:54
tmp< volVectorField > zeroGradWalls(tmp< volVectorField >) const
Zero-gradient wall-lubrication force at walls.
virtual tmp< surfaceScalarField > Ff() const
Return face wall lubrication force.
virtual tmp< volVectorField > F() const
Return wall lubrication force.
A class which provides on-demand creation and caching of wall distance and wall normal fields for use...
Namespace for OpenFOAM.