liftModel.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) 2014-2025 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::liftModel
26 
27 Description
28  Model for the lift force between two phases
29 
30 SourceFiles
31  liftModel.C
32  liftModelNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef liftModel_H
37 #define liftModel_H
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
41 #include "volFields.H"
42 #include "dictionary.H"
43 #include "runTimeSelectionTables.H"
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class liftModel Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class liftModel
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("liftModel");
59 
60 
61  // Declare runtime construction
62 
64  (
65  autoPtr,
66  liftModel,
67  dictionary,
68  (
69  const dictionary& dict,
70  const phaseInterface& interface
71  ),
72  (dict, interface)
73  );
74 
75 
76  // Static Data Members
77 
78  //- Force dimensions
79  static const dimensionSet dimF;
80 
81 
82  // Constructors
83 
84  //- Construct from a dictionary and an interface
85  liftModel
86  (
87  const dictionary& dict,
88  const phaseInterface& interface
89  );
90 
91 
92  //- Destructor
93  virtual ~liftModel();
94 
95 
96  // Selectors
97 
98  static autoPtr<liftModel> New
99  (
100  const dictionary& dict,
101  const phaseInterface& interface,
102  const bool outer=true
103  );
104 
105 
106  // Member Functions
107 
108  //- Return lift force
109  virtual tmp<volVectorField> F() const = 0;
110 
111  //- Return face lift force
112  virtual tmp<surfaceScalarField> Ff() const = 0;
113 };
114 
115 
116 /*---------------------------------------------------------------------------*\
117  Class blendedLiftModel Declaration
118 \*---------------------------------------------------------------------------*/
119 
120 class blendedLiftModel
121 :
122  public BlendedInterfacialModel<liftModel>
123 {
124 public:
125 
126  // Constructors
127 
128  //- Inherit base class constructors
130 
131 
132  // Selectors
133 
134  inline static autoPtr<blendedLiftModel> New
135  (
136  const dictionary& dict,
137  const phaseInterface& interface,
138  const dictionary& blendingDict
139  )
140  {
142  (
144  );
145  }
146 
147 
148  // Member Functions
149 
150  //- Return lift force
151  tmp<volVectorField> F() const;
152 
153  //- Return face lift force
154  tmp<surfaceScalarField> Ff() const;
155 };
156 
157 
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
161 } // End namespace Foam
162 
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 
165 #endif
166 
167 // ************************************************************************* //
Wrapper class for interfacial models for which multiple instances of the model are used for different...
const phaseInterface & interface() const
Access the interface.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
tmp< surfaceScalarField > Ff() const
Return face lift force.
Definition: liftModel.C:70
tmp< volVectorField > F() const
Return lift force.
Definition: liftModel.C:59
static autoPtr< blendedLiftModel > New(const dictionary &dict, const phaseInterface &interface, const dictionary &blendingDict)
Definition: liftModel.H:134
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Dimension set for the base types.
Definition: dimensionSet.H:125
Model for the lift force between two phases.
Definition: liftModel.H:53
TypeName("liftModel")
Runtime type information.
static const dimensionSet dimF
Force dimensions.
Definition: liftModel.H:78
declareRunTimeSelectionTable(autoPtr, liftModel, dictionary,(const dictionary &dict, const phaseInterface &interface),(dict, interface))
virtual tmp< surfaceScalarField > Ff() const =0
Return face lift force.
virtual tmp< volVectorField > F() const =0
Return lift force.
liftModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
Definition: liftModel.C:44
virtual ~liftModel()
Destructor.
Definition: liftModel.C:53
static autoPtr< liftModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true)
Definition: liftModelNew.C:32
Class to represent an interface between phases. Derivations can further specify the configuration of ...
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
void outer(LagrangianPatchField< typename outerProduct< Type1, Type2 >::type > &f, const LagrangianPatchField< Type1 > &f1, const LagrangianPatchField< Type2 > &f2)
const dictionary & blendingDict(const phaseSystem &fluid, const dictionary &dict)
Macros to ease declaration of run-time selection tables.
dictionary dict