SaffmanMeiLiftForce.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2012-2014 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 vector& curlUc,
38  const scalar Re,
39  const scalar muc
40 ) const
41 {
42  scalar Rew = p.rhoc()*mag(curlUc)*sqr(p.d())/(muc + ROOTVSMALL);
43  scalar beta = 0.5*(Rew/(Re + ROOTVSMALL));
44  scalar alpha = 0.3314*sqrt(beta);
45  scalar f = (1.0 - alpha)*exp(-0.1*Re) + alpha;
46 
47  scalar Cld = 0.0;
48  if (Re < 40)
49  {
50  Cld = 6.46*f;
51  }
52  else
53  {
54  Cld = 6.46*0.0524*sqrt(beta*Re);
55  }
56 
57  return 3.0/(mathematical::twoPi*sqrt(Rew + ROOTVSMALL))*Cld;
58 }
59 
60 
61 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
62 
63 template<class CloudType>
65 (
66  CloudType& owner,
67  const fvMesh& mesh,
68  const dictionary& dict,
69  const word& forceType
70 )
71 :
72  LiftForce<CloudType>(owner, mesh, dict, forceType)
73 {}
74 
75 
76 template<class CloudType>
78 (
79  const SaffmanMeiLiftForce& lf
80 )
81 :
83 {}
84 
85 
86 // * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
87 
88 template<class CloudType>
90 {}
91 
92 
93 // ************************************************************************* //
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:217
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:68