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