aerosolDrag.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) 2019-2023 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 "aerosolDrag.H"
27 #include "swarmCorrection.H"
29 #include "constants.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 namespace dragModels
36 {
39 }
40 }
41 
44 
45 
46 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
47 
49 (
50  const dictionary& dict,
51  const phaseInterface& interface,
52  const bool registerObject
53 )
54 :
55  dispersedDragModel(dict, interface, registerObject),
56  A1_(dict.lookupOrDefault<scalar>("A1", 2.514)),
57  A2_(dict.lookupOrDefault<scalar>("A2", 0.8)),
58  A3_(dict.lookupOrDefault<scalar>("A3", 0.55)),
59  sigma_("sigma", dimLength, dict)
60 {}
61 
62 
63 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
64 
66 {}
67 
68 
69 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
70 
72 {
73  const volScalarField& T = interface_.continuous().thermo().T();
74  const volScalarField& p = interface_.continuous().fluidThermo().p();
75  tmp<volScalarField> td(interface_.dispersed().d());
76  const volScalarField& d = td();
77 
78  const volScalarField lambda(k*T/(sqrt(2.0)*pi*p*sqr(sigma_)));
79 
80  return 24/(1 + lambda/d*(A1_ + A2_*exp(-A3_*d/lambda)));
81 }
82 
83 
84 // ************************************************************************* //
label k
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Model for drag between phases.
Definition: dragModel.H:55
Stokes drag with Cunningham slip correction. The slip correction coefficient is implemented in the fo...
Definition: aerosolDrag.H:129
aerosolDrag(const dictionary &dict, const phaseInterface &interface, const bool registerObject)
Construct from a dictionary and an interface.
Definition: aerosolDrag.C:49
virtual ~aerosolDrag()
Destructor.
Definition: aerosolDrag.C:65
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
Definition: aerosolDrag.C:71
Class to represent an interface between phases. Derivations can further specify the configuration of ...
A class for managing temporary objects.
Definition: tmp.H:55
dimensionedScalar lambda(viscosity->lookup("lambda"))
const dimensionedScalar k
Boltzmann constant.
defineTypeNameAndDebug(aerosolDrag, 0)
addToRunTimeSelectionTable(dragModel, aerosolDrag, dictionary)
Namespace for OpenFOAM.
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimLength
dimensionedScalar sqrt(const dimensionedScalar &ds)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dictionary dict
volScalarField & p