All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SHF.H
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) 2011-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 Class
25  Foam::SHF
26 
27 Description
28  Secondary Breakup Model to take account of the different breakup regimes,
29  bag, molutimode, shear....
30 
31  Accurate description in
32  @verbatim
33  R. Schmehl, G. Maier, S. Witting
34  "CFD Analysis of Fuel Atomization, Secondary Droplet Breakup and Spray
35  Dispersion in the Premix Duct of a LPP Combustor".
36  Eight International Conference on Liquid Atomization and Spray Systems, 2000
37  @endverbatim
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef SHF_H
42 #define SHF_H
43 
44 #include "BreakupModel.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 /*---------------------------------------------------------------------------*\
51  Class SHF Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 template<class CloudType>
55 class SHF
56 :
57  public BreakupModel<CloudType>
58 {
59 private:
60 
61  // Private data
62 
63  // Model constants
64 
65  scalar weCorrCoeff_;
66 
67  scalar weBuCrit_;
68  scalar weBuBag_;
69  scalar weBuMM_;
70 
71  scalar ohnCoeffCrit_;
72  scalar ohnCoeffBag_;
73  scalar ohnCoeffMM_;
74 
75  scalar ohnExpCrit_;
76  scalar ohnExpBag_;
77  scalar ohnExpMM_;
78 
79  scalar cInit_;
80 
81  scalar c1_;
82  scalar c2_;
83  scalar c3_;
84 
85  scalar cExp1_;
86  scalar cExp2_;
87  scalar cExp3_;
88 
89  scalar weConst_;
90  scalar weCrit1_;
91  scalar weCrit2_;
92 
93  scalar coeffD_;
94  scalar onExpD_;
95  scalar weExpD_;
96 
97  scalar mu_;
98  scalar sigma_;
99 
100  scalar d32Coeff_;
101  scalar cDmaxBM_;
102  scalar cDmaxS_;
103 
104  scalar corePerc_;
105 
106 
107 public:
108 
109  //- Runtime type information
110  TypeName("SHF");
111 
112 
113  // Constructors
114 
115  //- Construct from dictionary
116  SHF(const dictionary&, CloudType&);
117 
118  //- Construct copy
119  SHF(const SHF<CloudType>& bum);
120 
121  //- Construct and return a clone
122  virtual autoPtr<BreakupModel<CloudType>> clone() const
123  {
125  (
126  new SHF<CloudType>(*this)
127  );
128  }
129 
130 
131  //- Destructor
132  virtual ~SHF();
133 
134 
135  // Member Functions
136 
137  //- Update the parcel properties
138  virtual bool update
139  (
140  const scalar dt,
141  const vector& g,
142  scalar& d,
143  scalar& tc,
144  scalar& ms,
145  scalar& nParticle,
146  scalar& KHindex,
147  scalar& y,
148  scalar& yDot,
149  const scalar d0,
150  const scalar rho,
151  const scalar mu,
152  const scalar sigma,
153  const vector& U,
154  const scalar rhoc,
155  const scalar muc,
156  const vector& Urel,
157  const scalar Urmag,
158  const scalar tMom,
159  scalar& dChild,
160  scalar& massChild
161  );
162 };
163 
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
167 } // End namespace Foam
168 
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 
171 #ifdef NoRepository
172  #include "SHF.C"
173 #endif
174 
175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 
177 #endif
178 
179 // ************************************************************************* //
virtual bool update(const scalar dt, const vector &g, scalar &d, scalar &tc, scalar &ms, scalar &nParticle, scalar &KHindex, scalar &y, scalar &yDot, const scalar d0, const scalar rho, const scalar mu, const scalar sigma, const vector &U, const scalar rhoc, const scalar muc, const vector &Urel, const scalar Urmag, const scalar tMom, scalar &dChild, scalar &massChild)
Update the parcel properties.
Definition: SHF.C:117
SHF(const dictionary &, CloudType &)
Construct from dictionary.
Definition: SHF.C:32
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Secondary Breakup Model to take account of the different breakup regimes, bag, molutimode, shear....
Definition: SHF.H:54
scalar y
Urel
Definition: pEqn.H:56
TypeName("SHF")
Runtime type information.
const dimensionedScalar mu
Atomic mass unit.
virtual autoPtr< BreakupModel< CloudType > > clone() const
Construct and return a clone.
Definition: SHF.H:121
U
Definition: pEqn.H:72
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Templated break-up model class.
Definition: SprayCloud.H:50
const dimensionedVector & g
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:69
virtual ~SHF()
Destructor.
Definition: SHF.C:109
Namespace for OpenFOAM.