SaffmanMeiLift.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) 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::Lagrangian::SaffmanMeiLift
26 
27 Description
28  Lift model of Saffman (1965) as extended by Mei (1992). Applicable to
29  spherical particles.
30 
31  References:
32  \verbatim
33  Saffman, P. G. T. (1965).
34  The lift on a small sphere in a slow shear flow.
35  Journal of fluid mechanics, 22(2), 385-400.
36 
37  Mei, R. (1992).
38  An approximate expression for the shear lift force on a spherical
39  particle at finite Reynolds number.
40  International Journal of Multiphase Flow, 18(1), 145-147.
41  \endverbatim
42 
43 Usage
44  Example specification:
45  \verbatim
46  <LagrangianModelName>
47  {
48  type SaffmanMeiLift;
49  }
50  \endverbatim
51 
52 SourceFiles
53  SaffmanMeiLift.C
54 
55 \*---------------------------------------------------------------------------*/
56 
57 #ifndef SaffmanMeiLift_H
58 #define SaffmanMeiLift_H
59 
60 #include "cloudLagrangianModel.H"
61 #include "CloudDerivedField.H"
62 
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 
65 namespace Foam
66 {
67 namespace Lagrangian
68 {
69 
70 /*---------------------------------------------------------------------------*\
71  Class SaffmanMeiLift Declaration
72 \*---------------------------------------------------------------------------*/
73 
74 class SaffmanMeiLift
75 :
76  public LagrangianModel,
77  private cloudLagrangianModel
78 {
79 private:
80 
81  // Private Member Functions
82 
83  //- Calculate the lift coefficient
85  (
86  const LagrangianModelRef& model,
87  const LagrangianSubMesh& subMesh
88  ) const;
89 
90  //- Add a source term to the velocity equation
91  void addUSup
92  (
95  ) const;
96 
97 
98 public:
99 
100  //- Runtime type information
101  TypeName("SaffmanMeiLift");
102 
103 
104  // Public Data
105 
106  //- Lift force
108 
109 
110  // Constructors
111 
112  //- Construct from components
114  (
115  const word& name,
116  const LagrangianMesh& mesh,
117  const dictionary& modelDict,
118  const dictionary& stateDict
119  );
120 
121 
122  // Member Functions
123 
124  //- Return the name of the velocity field
125  virtual wordList addSupFields() const;
126 
127  //- Return true for the velocity or carrier velocity field
128  virtual bool addsSupToField
129  (
130  const word& fieldName,
131  const word& eqnFieldName
132  ) const;
133 
134  //- Add a source term to the velocity equation
135  virtual void addSup
136  (
137  const LagrangianSubScalarField& deltaT,
140  ) const;
141 
142  //- Add a source term to the momentum equation
143  virtual void addSup
144  (
145  const LagrangianSubScalarField& deltaT,
146  const LagrangianSubScalarSubField& vOrM,
149  ) const;
150 };
151 
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 } // End namespace Lagrangian
156 } // End namespace Foam
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
A field derived from other state fields of the cloud. Stores and virtualises a function or a method w...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This class stores the coefficients of a Lagrangian equation, and facilitates solving that equation an...
Definition: LagrangianEqn.H:56
Class containing Lagrangian geometry and topology.
Simple wrapper to provide an optional reference to a Lagrangian model.
Base class for Lagrangian models.
const LagrangianMesh & mesh() const
The mesh.
static word fieldName(const AlphaRhoFieldType &alphaRhoField, const AlphaRhoFieldTypes &... alphaRhoFields)
Return the name of the field associated with a source term.
const word & name() const
The source name.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
Lift model of Saffman (1965) as extended by Mei (1992). Applicable to spherical particles.
virtual wordList addSupFields() const
Return the name of the velocity field.
virtual bool addsSupToField(const word &fieldName, const word &eqnFieldName) const
Return true for the velocity or carrier velocity field.
virtual void addSup(const LagrangianSubScalarField &deltaT, const LagrangianSubVectorSubField &U, LagrangianEqn< vector > &eqn) const
Add a source term to the velocity equation.
SaffmanMeiLift(const word &name, const LagrangianMesh &mesh, const dictionary &modelDict, const dictionary &stateDict)
Construct from components.
const CloudDerivedField< tensor > & L
Lift force.
TypeName("SaffmanMeiLift")
Runtime type information.
Mix-in for Lagrangian models that refer to a cloud.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
static dictionary stateDict(const word &name, const objectRegistry &db)
Construct and return the state dictionary for reading.
Definition: stateModel.C:137
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:63
U
Definition: pEqn.H:72
Namespace for OpenFOAM.