TomiyamaLiftForce.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 "TomiyamaLiftForce.H"
27 
28 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
29 
30 template<class CloudType>
32 (
33  const typename CloudType::parcelType& p,
34  const typename CloudType::parcelType::trackingData& td,
35  const vector& curlUc,
36  const scalar Re,
37  const scalar muc
38 ) const
39 {
40  const vector& g = this->owner().g().value();
41 
42  scalar Eo = p.Eo(td, sigma_);
43  scalar dH = p.d()*cbrt(1.0 + 0.163*pow(Eo, 0.757));
44  scalar Eod = p.Eo(g, p.rho(), td.rhoc(), p.U(), dH, sigma_);
45  scalar f = 0.00105*pow3(Eod) - 0.0159*sqr(Eod) - 0.0204*Eod + 0.474;
46 
47  if (Eod <= 4)
48  {
49  return min(0.288*tanh(0.121*Re), f);
50  }
51  else if ((Eod > 4) && (Eod <= 10))
52  {
53  return f;
54  }
55  else
56  {
57  return -0.27;
58  }
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  sigma_(readScalar(this->coeffs().lookup("sigma")))
75 {}
76 
77 
78 template<class CloudType>
80 (
81  const TomiyamaLiftForce& lf
82 )
83 :
85  sigma_(lf.sigma_)
86 {}
87 
88 
89 // * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
90 
91 template<class CloudType>
93 {}
94 
95 
96 // ************************************************************************* //
#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:69
Tomiyama particle lift force model applicable to deformable bubbles.