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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2014-2018 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::wallLubricationModel
28 
29 Description
30 
31 SourceFiles
32  wallLubricationModel.C
33  newWallLubricationModel.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef wallLubricationModel_H
38 #define wallLubricationModel_H
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 #include "wallDependentModel.H"
43 #include "volFields.H"
44 #include "dictionary.H"
45 #include "runTimeSelectionTables.H"
46 
47 namespace Foam
48 {
49 
50 class phasePair;
51 
52 /*---------------------------------------------------------------------------*\
53  Class wallLubricationModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
58  public wallDependentModel
59 {
60 protected:
61 
62  // Protected data
63 
64  //- Phase pair
65  const phasePair& pair_;
66 
67 
68  // Protected member functions
69 
70  //- Zero-gradient wall-lubrication force at walls
72 
73 
74 public:
75 
76  //- Runtime type information
77  TypeName("wallLubricationModel");
78 
79 
80  // Declare runtime construction
81 
83  (
84  autoPtr,
86  dictionary,
87  (
88  const dictionary& dict,
89  const phasePair& pair
90  ),
91  (dict, pair)
92  );
93 
94 
95  // Static data members
96 
97  //- Coefficient dimensions
98  static const dimensionSet dimF;
99 
100 
101  // Constructors
102 
103  //- Construct from components
105  (
106  const dictionary& dict,
107  const phasePair& pair
108  );
109 
110 
111  //- Destructor
112  virtual ~wallLubricationModel();
113 
114 
115  // Selectors
116 
118  (
119  const dictionary& dict,
120  const phasePair& pair
121  );
122 
123 
124  // Member Functions
125 
126  //- Return phase-intensive wall lubrication force
127  virtual tmp<volVectorField> Fi() const = 0;
128 
129  //- Return wall lubrication force
130  virtual tmp<volVectorField> F() const;
131 
132  //- Return face wall lubrication force
133  virtual tmp<surfaceScalarField> Ff() const;
134 };
135 
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 } // End namespace Foam
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 #endif
144 
145 // ************************************************************************* //
volFields.H
Foam::phasePair
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Definition: phasePair.H:51
Foam::wallLubricationModel::TypeName
TypeName("wallLubricationModel")
Runtime type information.
Foam::wallLubricationModel::wallLubricationModel
wallLubricationModel(const dictionary &dict, const phasePair &pair)
Construct from components.
Definition: wallLubricationModel.C:75
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
Foam::wallLubricationModel::dimF
static const dimensionSet dimF
Coefficient dimensions.
Definition: wallLubricationModel.H:97
Foam::dimensionSet
Dimension set for the base types.
Definition: dimensionSet.H:65
Foam::wallLubricationModel::zeroGradWalls
tmp< volVectorField > zeroGradWalls(tmp< volVectorField >) const
Zero-gradient wall-lubrication force at walls.
Definition: wallLubricationModel.C:50
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::wallLubricationModel::New
static autoPtr< wallLubricationModel > New(const dictionary &dict, const phasePair &pair)
Definition: newWallLubricationModel.C:35
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
dictionary.H
Foam::wallLubricationModel::F
virtual tmp< volVectorField > F() const
Return wall lubrication force.
Definition: wallLubricationModel.C:93
Foam::wallLubricationModel::Ff
virtual tmp< surfaceScalarField > Ff() const
Return face wall lubrication force.
Definition: wallLubricationModel.C:99
Foam::wallDependentModel
A class which provides on-demand creation and caching of wall distance and wall normal fields for use...
Definition: wallDependentModel.H:52
Foam::wallLubricationModel::Fi
virtual tmp< volVectorField > Fi() const =0
Return phase-intensive wall lubrication force.
Foam::wallLubricationModel::pair_
const phasePair & pair_
Phase pair.
Definition: wallLubricationModel.H:64
Foam::wallLubricationModel::~wallLubricationModel
virtual ~wallLubricationModel()
Destructor.
Definition: wallLubricationModel.C:87
Foam::wallLubricationModel::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, wallLubricationModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
Foam::wallLubricationModel
Definition: wallLubricationModel.H:55