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-------------------------------------------------------------------------------
10License
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
35namespace Foam
36{
37namespace dragModels
38{
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// ************************************************************************* //
#define F1(B, C, D)
Definition: SHA1.C:150
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
const volScalarField & alpha1
const volScalarField & alpha2
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Drag model of Tenneti et al. for monodisperse gas-particle flows obtained with particle-resolved dire...
Definition: Tenneti.H:70
virtual ~Tenneti()
Destructor.
Definition: Tenneti.C:61
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
Definition: Tenneti.C:67
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Definition: phasePair.H:56
A class for managing temporary objects.
Definition: tmp.H:65
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
Namespace for OpenFOAM.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:47
const dimensionSet dimless
Dimensionless.
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dictionary dict