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 // ************************************************************************* //
F1
#define F1(B, C, D)
Definition: SHA1.C:150
Foam::phasePair
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Definition: phasePair.H:53
Foam::dragModels::defineTypeNameAndDebug
defineTypeNameAndDebug(blended, 0)
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
alpha2
const volScalarField & alpha2
Definition: setRegionFluidFields.H:9
Foam::pos0
dimensionedScalar pos0(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:188
alpha1
const volScalarField & alpha1
Definition: setRegionFluidFields.H:8
Foam::pow4
dimensionedScalar pow4(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:100
Foam::pow3
dimensionedScalar pow3(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:89
Foam::dragModels::Tenneti::CdRe
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
Definition: Tenneti.C:67
Foam::dragModels::Tenneti::Tenneti
Tenneti(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from a dictionary and a phase pair.
Definition: Tenneti.C:48
Foam::pow
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Definition: dimensionedScalar.C:75
Foam::max
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:47
Foam::dragModels::Tenneti::~Tenneti
virtual ~Tenneti()
Destructor.
Definition: Tenneti.C:61
Foam::dragModels::addToRunTimeSelectionTable
addToRunTimeSelectionTable(dragModel, blended, dictionary)
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
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Tenneti.H
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:51
Foam::dragModel
Definition: dragModel.H:51
Foam::cbrt
dimensionedScalar cbrt(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:155
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::neg
dimensionedScalar neg(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:199
Foam::dimless
const dimensionSet dimless
Dimensionless.
Definition: dimensionSets.C:189