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-2015 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 
56 class wallLubricationModel
57 :
58  public wallDependentModel
59 {
60 protected:
61 
62  // Protected data
63 
64  //- Phase pair
65  const phasePair& pair_;
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("wallLubricationModel");
72 
73 
74  // Declare runtime construction
75 
77  (
78  autoPtr,
80  dictionary,
81  (
82  const dictionary& dict,
83  const phasePair& pair
84  ),
85  (dict, pair)
86  );
87 
88 
89  // Static data members
90 
91  //- Coefficient dimensions
92  static const dimensionSet dimF;
93 
94 
95  // Constructors
96 
97  //- Construct from components
99  (
100  const dictionary& dict,
101  const phasePair& pair
102  );
103 
104 
105  //- Destructor
106  virtual ~wallLubricationModel();
107 
108 
109  // Selectors
110 
111  static autoPtr<wallLubricationModel> New
112  (
113  const dictionary& dict,
114  const phasePair& pair
115  );
116 
117 
118  // Member Functions
119 
120  //- Return phase-intensive wall lubrication force
121  virtual tmp<volVectorField> Fi() const = 0;
122 
123  //- Return wall lubrication force
124  virtual tmp<volVectorField> F() const;
125 
126  //- Return face wall lubrication force
127  virtual tmp<surfaceScalarField> Ff() const;
128 };
129 
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 } // End namespace Foam
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #endif
138 
139 // ************************************************************************* //
volFields.H
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::wallLubricationModel::dimF
static const dimensionSet dimF
Coefficient dimensions.
Definition: wallLubricationModel.H:97
dict
dictionary dict
Definition: searchingEngine.H:14
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
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::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))