Tenneti.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) 2016-2018 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 "Tenneti.H"
29 #include "phasePair.H"
30 #include "SchillerNaumann.H"
32 
33 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 
35 namespace Foam
36 {
37 namespace dragModels
38 {
39  defineTypeNameAndDebug(Tenneti, 0);
40  addToRunTimeSelectionTable(dragModel, Tenneti, dictionary);
41 }
42 }
43 
44 
45 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46 
48 (
49  const dictionary& dict,
50  const phasePair& pair,
51  const bool registerObject
52 )
53 :
54  dragModel(dict, pair, registerObject),
55  residualRe_("residualRe", dimless, dict)
56 {}
57 
58 
59 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
60 
62 {}
63 
64 
65 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
66 
68 {
70  (
71  max(pair_.dispersed(), pair_.continuous().residualAlpha())
72  );
73 
75  (
76  max(scalar(1) - pair_.dispersed(), pair_.continuous().residualAlpha())
77  );
78 
79  volScalarField Res(alpha2*pair_.Re());
80 
81  volScalarField CdReIsolated
82  (
83  neg(Res - 1000)*24*(1 + 0.15*pow(Res, 0.687))
84  + pos0(Res - 1000)*0.44*max(Res, residualRe_)
85  );
86 
88  (
89  5.81*alpha1/pow3(alpha2) + 0.48*cbrt(alpha1)/pow4(alpha2)
90  );
91 
93  (
94  pow3(alpha1)*Res*(0.95 + 0.61*pow3(alpha1)/sqr(alpha2))
95  );
96 
97  // Tenneti et al. correlation includes the mean pressure drag.
98  // This was removed here by multiplying F by alpha2 for consistency with
99  // the formulation used in OpenFOAM
100  return
101  CdReIsolated + 24*sqr(alpha2)*(F0 + F1);
102 }
103 
104 
105 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
#define F1(B, C, D)
Definition: SHA1.C:149
defineTypeNameAndDebug(AttouFerschneider, 0)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:40
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const volScalarField & alpha2
const dimensionSet dimless
Dimensionless.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
virtual ~Tenneti()
Destructor.
Definition: Tenneti.C:54
dimensionedScalar cbrt(const dimensionedScalar &ds)
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
Definition: Tenneti.C:60
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
Tenneti(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from a dictionary and a phase pair.
Definition: Tenneti.C:41
dimensionedScalar pow4(const dimensionedScalar &ds)
addToRunTimeSelectionTable(dragModel, AttouFerschneider, dictionary)
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Definition: phasePair.H:49
Namespace for OpenFOAM.
const volScalarField & alpha1