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 // ************************************************************************* //
beta
dimensionedScalar beta("beta", dimless/dimTemperature, laminarTransport)
mathematicalConstants.H
p
p
Definition: pEqn.H:62
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::constant
Collection of constants.
Definition: atomicConstants.C:37
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:216
Foam::Re
scalarField Re(const UList< complex > &cf)
Definition: complexFields.C:97
Foam::SaffmanMeiLiftForce::SaffmanMeiLiftForce
SaffmanMeiLiftForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
Construct from mesh.
Definition: SaffmanMeiLiftForce.C:65
Foam::exp
dimensionedScalar exp(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:252
Foam::constant::mathematical::twoPi
const scalar twoPi(2 *pi)
Foam::mag
dimensioned< scalar > mag(const dimensioned< Type > &)
Foam::SaffmanMeiLiftForce::~SaffmanMeiLiftForce
virtual ~SaffmanMeiLiftForce()
Destructor.
Definition: SaffmanMeiLiftForce.C:89
Foam::SaffmanMeiLiftForce
Saffman-Mei particle lift force model applicable to spherical particles.
Definition: SaffmanMeiLiftForce.H:49
Foam::DSMCCloud
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:68
Foam::LiftForce
Base class for particle lift force models.
Definition: LiftForce.H:52
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam::vector
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:49
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:49
f
labelList f(nPoints)
Foam::sqrt
dimensionedScalar sqrt(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:142
SaffmanMeiLiftForce.H
Foam::DSMCCloud::parcelType
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:217