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-2019 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, solutionmode, 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 Data
60 
61  // Model constants
62 
63  scalar weCorrCoeff_;
64 
65  scalar weBuCrit_;
66  scalar weBuBag_;
67  scalar weBuMM_;
68 
69  scalar ohnCoeffCrit_;
70  scalar ohnCoeffBag_;
71  scalar ohnCoeffMM_;
72 
73  scalar ohnExpCrit_;
74  scalar ohnExpBag_;
75  scalar ohnExpMM_;
76 
77  scalar cInit_;
78 
79  scalar c1_;
80  scalar c2_;
81  scalar c3_;
82 
83  scalar cExp1_;
84  scalar cExp2_;
85  scalar cExp3_;
86 
87  scalar weConst_;
88  scalar weCrit1_;
89  scalar weCrit2_;
90 
91  scalar coeffD_;
92  scalar onExpD_;
93  scalar weExpD_;
94 
95  scalar mu_;
96  scalar sigma_;
97 
98  scalar d32Coeff_;
99  scalar cDmaxBM_;
100  scalar cDmaxS_;
101 
102  scalar corePerc_;
103 
104 
105 public:
106 
107  //- Runtime type information
108  TypeName("SHF");
109 
110 
111  // Constructors
112 
113  //- Construct from dictionary
114  SHF(const dictionary&, CloudType&);
115 
116  //- Construct copy
117  SHF(const SHF<CloudType>& bum);
118 
119  //- Construct and return a clone
120  virtual autoPtr<BreakupModel<CloudType>> clone() const
121  {
123  (
124  new SHF<CloudType>(*this)
125  );
126  }
127 
128 
129  //- Destructor
130  virtual ~SHF();
131 
132 
133  // Member Functions
134 
135  //- Update the parcel properties
136  virtual bool update
137  (
138  const scalar dt,
139  const vector& g,
140  scalar& d,
141  scalar& tc,
142  scalar& ms,
143  scalar& nParticle,
144  scalar& KHindex,
145  scalar& y,
146  scalar& yDot,
147  const scalar d0,
148  const scalar rho,
149  const scalar mu,
150  const scalar sigma,
151  const vector& U,
152  const scalar rhoc,
153  const scalar muc,
154  const vector& Urel,
155  const scalar Urmag,
156  const scalar tMom,
157  scalar& dChild,
158  scalar& massChild
159  );
160 };
161 
162 
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 
165 } // End namespace Foam
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 #ifdef NoRepository
170  #include "SHF.C"
171 #endif
172 
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 
175 #endif
176 
177 // ************************************************************************* //
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:158
const dimensionedScalar & sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
Secondary Breakup Model to take account of the different breakup regimes, bag, solutionmode, shear....
Definition: SHF.H:54
scalar y
Urel
Definition: pEqn.H:56
TypeName("SHF")
Runtime type information.
virtual autoPtr< BreakupModel< CloudType > > clone() const
Construct and return a clone.
Definition: SHF.H:119
U
Definition: pEqn.H:72
const dimensionedScalar & mu
Atomic mass unit.
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.