All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LaakkonenAlopaeusAittamaa.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) 2018 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 
28 #include "phaseCompressibleTurbulenceModel.H"
29 
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace diameterModels
35 {
36 namespace breakupModels
37 {
38  defineTypeNameAndDebug(LaakkonenAlopaeusAittamaa, 0);
40  (
41  breakupModel,
42  LaakkonenAlopaeusAittamaa,
43  dictionary
44  );
45 }
46 }
47 }
48 
49 
50 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
51 
54 (
55  const populationBalanceModel& popBal,
56  const dictionary& dict
57 )
58 :
59  breakupModel(popBal, dict),
60  C1_
61  (
62  "C1",
63  dimensionSet(0, -2.0/3.0, 0, 0, 0),
64  dict.lookupOrDefault<scalar>("C1", 6.0)
65  ),
66  C2_("C2", dimless, dict.lookupOrDefault<scalar>("C2", 0.04)),
67  C3_("C3", dimless, dict.lookupOrDefault<scalar>("C3", 0.01))
68 {}
69 
70 
71 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
72 
73 void
75 (
76  volScalarField& breakupRate,
77  const label i
78 )
79 {
80  const phaseModel& continuousPhase = popBal_.continuousPhase();
81  const sizeGroup& fi = *popBal_.sizeGroups()[i];
82 
83  breakupRate =
85  *erfc
86  (
87  sqrt
88  (
89  C2_*popBal_.sigmaWithContinuousPhase(fi.phase())
90  /(
91  continuousPhase.rho()*pow(fi.d(), 5.0/3.0)
93  )
94  + C3_*continuousPhase.mu()
95  /(
96  sqrt(continuousPhase.rho()*fi.phase().rho())
98  *pow(fi.d(), 4.0/3.0)
99  )
100  )
101  );
102 }
103 
104 
105 // ************************************************************************* //
dictionary dict
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
dimensionedScalar sqrt(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
const phaseModel & continuousPhase() const
Return continuous phase.
LaakkonenAlopaeusAittamaa(const populationBalanceModel &popBal, const dictionary &dict)
dimensionedScalar cbrt(const dimensionedScalar &ds)
const populationBalanceModel & popBal_
Reference to the populationBalanceModel.
Definition: breakupModel.H:59
const List< sizeGroup * > & sizeGroups() const
Return the sizeGroups belonging to this populationBalance.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const phaseCompressibleTurbulenceModel & continuousTurbulence() const
Return reference to turbulence model of the continuous phase.
defineTypeNameAndDebug(combustionModel, 0)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar erfc(const dimensionedScalar &ds)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:47
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
virtual void setBreakupRate(volScalarField &breakupRate, const label i)
Set total breakupRate.
const tmp< volScalarField > sigmaWithContinuousPhase(const phaseModel &dispersedPhase) const
Return the surface tension coefficient between a given dispersed.
Namespace for OpenFOAM.