wallDampingModel.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) 2015-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::wallDampingModel
28 
29 Description
30 
31 SourceFiles
32  wallDampingModel.C
33  newWallDampingModel.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef wallDampingModel_H
38 #define wallDampingModel_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 wallDampingModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class wallDampingModel
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("wallDampingModel");
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 ~wallDampingModel();
107 
108 
109  // Selectors
110 
112  (
113  const dictionary& dict,
114  const phasePair& pair
115  );
116 
117 
118  // Member Functions
119 
120  //- Return damped coefficient
121  virtual tmp<volScalarField> damp
122  (
123  const tmp<volScalarField>&
124  ) const = 0;
125 
126  //- Return damped force
127  virtual tmp<volVectorField> damp
128  (
129  const tmp<volVectorField>&
130  ) const = 0;
131 
132  //- Return damped face force
134  (
136  ) const = 0;
137 };
138 
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 } // End namespace Foam
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 #endif
147 
148 // ************************************************************************* //
Foam::wallDampingModel::dimF
static const dimensionSet dimF
Coefficient dimensions.
Definition: wallDampingModel.H:91
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::wallDampingModel
Definition: wallDampingModel.H:55
Foam::tmp< volScalarField >
Foam::wallDampingModel::New
static autoPtr< wallDampingModel > New(const dictionary &dict, const phasePair &pair)
Definition: newWallDampingModel.C:35
Foam::wallDampingModel::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, wallDampingModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
Foam::dimensionSet
Dimension set for the base types.
Definition: dimensionSet.H:65
Foam::wallDampingModel::damp
virtual tmp< volScalarField > damp(const tmp< volScalarField > &) const =0
Return damped coefficient.
Foam::wallDampingModel::pair_
const phasePair & pair_
Phase pair.
Definition: wallDampingModel.H:64
Foam::wallDampingModel::~wallDampingModel
virtual ~wallDampingModel()
Destructor.
Definition: wallDampingModel.C:57
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::wallDampingModel::TypeName
TypeName("wallDampingModel")
Runtime type information.
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::wallDampingModel::wallDampingModel
wallDampingModel(const dictionary &dict, const phasePair &pair)
Construct from components.
Definition: wallDampingModel.C:45
Foam::wallDependentModel
A class which provides on-demand creation and caching of wall distance and wall normal fields for use...
Definition: wallDependentModel.H:52