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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2012-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "TomiyamaLiftForce.H"
29 
30 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
31 
32 template<class CloudType>
34 (
35  const typename CloudType::parcelType& p,
36  const typename CloudType::parcelType::trackingData& td,
37  const vector& curlUc,
38  const scalar Re,
39  const scalar muc
40 ) const
41 {
42  const vector& g = this->owner().g().value();
43 
44  scalar Eo = p.Eo(td, sigma_);
45  scalar dH = p.d()*cbrt(1.0 + 0.163*pow(Eo, 0.757));
46  scalar Eod = p.Eo(g, p.rho(), td.rhoc(), p.U(), dH, sigma_);
47  scalar f = 0.00105*pow3(Eod) - 0.0159*sqr(Eod) - 0.0204*Eod + 0.474;
48 
49  if (Eod <= 4)
50  {
51  return min(0.288*tanh(0.121*Re), f);
52  }
53  else if ((Eod > 4) && (Eod <= 10))
54  {
55  return f;
56  }
57  else
58  {
59  return -0.27;
60  }
61 }
62 
63 
64 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
65 
66 template<class CloudType>
68 (
69  CloudType& owner,
70  const fvMesh& mesh,
71  const dictionary& dict,
72  const word& forceType
73 )
74 :
75  LiftForce<CloudType>(owner, mesh, dict, forceType),
76  sigma_(this->coeffs().getScalar("sigma"))
77 {}
78 
79 
80 template<class CloudType>
82 (
83  const TomiyamaLiftForce& lf
84 )
85 :
87  sigma_(lf.sigma_)
88 {}
89 
90 
91 // * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
92 
93 template<class CloudType>
95 {}
96 
97 
98 // ************************************************************************* //
Foam::TomiyamaLiftForce::sigma_
scalar sigma_
Surface tension.
Definition: TomiyamaLiftForce.H:63
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::min
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:33
TomiyamaLiftForce.H
Foam::TomiyamaLiftForce
Tomiyama particle lift force model applicable to deformable bubbles.
Definition: TomiyamaLiftForce.H:54
Foam::tanh
dimensionedScalar tanh(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:272
Foam::pow3
dimensionedScalar pow3(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:89
Foam::TomiyamaLiftForce::~TomiyamaLiftForce
virtual ~TomiyamaLiftForce()
Destructor.
Definition: TomiyamaLiftForce.C:94
Foam::TomiyamaLiftForce::TomiyamaLiftForce
TomiyamaLiftForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
Construct from mesh.
Definition: TomiyamaLiftForce.C:68
Foam::pow
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Definition: dimensionedScalar.C:75
Foam::DSMCCloud
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:71
Foam::LiftForce
Base class for particle lift force models.
Definition: LiftForce.H:57
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
g
const uniformDimensionedVectorField & g
Definition: createFluidFields.H:26
Foam::vector
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:51
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:51
f
labelList f(nPoints)
Foam::Re
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
Foam::cbrt
dimensionedScalar cbrt(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:155