SaffmanMeiLiftForce.C
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) 2012-2018 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 \*---------------------------------------------------------------------------*/
25 
26 #include "SaffmanMeiLiftForce.H"
27 #include "mathematicalConstants.H"
28 
29 using namespace Foam::constant;
30 
31 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
32 
33 template<class CloudType>
35 (
36  const typename CloudType::parcelType& p,
37  const typename CloudType::parcelType::trackingData& td,
38  const vector& curlUc,
39  const scalar Re,
40  const scalar muc
41 ) const
42 {
43  scalar Rew = td.rhoc()*mag(curlUc)*sqr(p.d())/(muc + rootVSmall);
44  scalar beta = 0.5*(Rew/(Re + rootVSmall));
45  scalar alpha = 0.3314*sqrt(beta);
46  scalar f = (1.0 - alpha)*exp(-0.1*Re) + alpha;
47 
48  scalar Cld = 0.0;
49  if (Re < 40)
50  {
51  Cld = 6.46*f;
52  }
53  else
54  {
55  Cld = 6.46*0.0524*sqrt(beta*Re);
56  }
57 
58  return 3.0/(mathematical::twoPi*sqrt(Rew + rootVSmall))*Cld;
59 }
60 
61 
62 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
63 
64 template<class CloudType>
66 (
67  CloudType& owner,
68  const fvMesh& mesh,
69  const dictionary& dict,
70  const word& forceType
71 )
72 :
73  LiftForce<CloudType>(owner, mesh, dict, forceType)
74 {}
75 
76 
77 template<class CloudType>
79 (
80  const SaffmanMeiLiftForce& lf
81 )
82 :
84 {}
85 
86 
87 // * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
88 
89 template<class CloudType>
91 {}
92 
93 
94 // ************************************************************************* //
Collection of constants.
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:49
SaffmanMeiLiftForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
Construct from mesh.
virtual ~SaffmanMeiLiftForce()
Destructor.
dynamicFvMesh & mesh
dimensionedScalar exp(const dimensionedScalar &ds)
A class for handling words, derived from string.
Definition: word.H:59
const scalar twoPi(2 *pi)
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:218
labelList f(nPoints)
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Saffman-Mei particle lift force model applicable to spherical particles.
Base class for particle lift force models.
Definition: LiftForce.H:52
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:69