TomiyamaLiftForce.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 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 "TomiyamaLiftForce.H"
27 
28 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
29 
30 template<class CloudType>
32 (
33  const typename CloudType::parcelType& p,
34  const vector& curlUc,
35  const scalar Re,
36  const scalar muc
37 ) const
38 {
39  const vector& g = this->owner().g().value();
40 
41  scalar Eo = p.Eo(g, p.d(), sigma_);
42  scalar dH = p.d()*cbrt(1.0 + 0.163*pow(Eo, 0.757));
43  scalar Eod = p.Eo(g, dH, sigma_);
44  scalar f = 0.00105*pow3(Eod) - 0.0159*sqr(Eod) - 0.0204*Eod + 0.474;
45 
46  if (Eod <= 4)
47  {
48  return min(0.288*tanh(0.121*Re), f);
49  }
50  else if ((Eod > 4) && (Eod <= 10))
51  {
52  return f;
53  }
54  else
55  {
56  return -0.27;
57  }
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  sigma_(readScalar(this->coeffs().lookup("sigma")))
74 {}
75 
76 
77 template<class CloudType>
79 (
80  const TomiyamaLiftForce& lf
81 )
82 :
84  sigma_(lf.sigma_)
85 {}
86 
87 
88 // * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
89 
90 template<class CloudType>
92 {}
93 
94 
95 // ************************************************************************* //
#define readScalar
Definition: doubleScalar.C:38
dimensionedScalar tanh(const dimensionedScalar &ds)
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
scalar sigma_
Surface tension.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:49
stressControl lookup("compactNormalStress") >> compactNormalStress
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
TomiyamaLiftForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
Construct from mesh.
dimensionedScalar cbrt(const dimensionedScalar &ds)
virtual ~TomiyamaLiftForce()
Destructor.
labelList f(nPoints)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Base class for particle lift force models.
Definition: LiftForce.H:52
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:68
Tomiyama particle lift force model applicable to deformable bubbles.