ReitzKHRT.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::ReitzKHRT
28 
29 Group
30  grpLagrangianIntermediateBreakupSubModels
31 
32 Description
33  Secondary breakup model which uses the Kelvin-Helmholtz
34  instability theory to predict the 'stripped' droplets... and
35  the Raleigh-Taylor instability as well.
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef ReitzKHRT_H
40 #define ReitzKHRT_H
41 
42 #include "BreakupModel.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 /*---------------------------------------------------------------------------*\
49  Class ReitzKHRT Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 template<class CloudType>
53 class ReitzKHRT
54 :
55  public BreakupModel<CloudType>
56 {
57 private:
58 
59  // Private data
60 
61  // model constants
62  scalar b0_;
63  scalar b1_;
64  scalar cTau_;
65  scalar cRT_;
66  scalar msLimit_;
67  scalar weberLimit_;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("ReitzKHRT");
74 
75 
76  // Constructors
77 
78  //- Construct from dictionary
79  ReitzKHRT(const dictionary&, CloudType&);
80 
81  //- Construct copy
82  ReitzKHRT(const ReitzKHRT<CloudType>& bum);
83 
84  //- Construct and return a clone
85  virtual autoPtr<BreakupModel<CloudType>> clone() const
86  {
88  (
89  new ReitzKHRT<CloudType>(*this)
90  );
91  }
92 
93 
94  //- Destructor
95  virtual ~ReitzKHRT();
96 
97 
98  // Member Functions
99 
100  //- Update the parcel diameter
101  virtual bool update
102  (
103  const scalar dt,
104  const vector& g,
105  scalar& d,
106  scalar& tc,
107  scalar& ms,
108  scalar& nParticle,
109  scalar& KHindex,
110  scalar& y,
111  scalar& yDot,
112  const scalar d0,
113  const scalar rho,
114  const scalar mu,
115  const scalar sigma,
116  const vector& U,
117  const scalar rhoc,
118  const scalar muc,
119  const vector& Urel,
120  const scalar Urmag,
121  const scalar tMom,
122  scalar& dChild,
123  scalar& massChild
124  );
125 };
126 
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 } // End namespace Foam
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 #ifdef NoRepository
135  #include "ReitzKHRT.C"
136 #endif
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 #endif
141 
142 // ************************************************************************* //
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
Urel
Urel
Definition: pEqn.H:56
rho
rho
Definition: readInitialConditions.H:88
ReitzKHRT.C
Foam::ReitzKHRT::TypeName
TypeName("ReitzKHRT")
Runtime type information.
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::ReitzKHRT
Secondary breakup model which uses the Kelvin-Helmholtz instability theory to predict the 'stripped' ...
Definition: ReitzKHRT.H:52
Foam::BreakupModel
Templated break-up model class.
Definition: SprayCloud.H:50
Foam::ReitzKHRT::~ReitzKHRT
virtual ~ReitzKHRT()
Destructor.
Definition: ReitzKHRT.C:75
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
Foam::Vector< scalar >
Foam::ReitzKHRT::clone
virtual autoPtr< BreakupModel< CloudType > > clone() const
Construct and return a clone.
Definition: ReitzKHRT.H:84
sigma
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
Foam::ReitzKHRT::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 diameter.
Definition: ReitzKHRT.C:83
y
scalar y
Definition: LISASMDCalcMethod1.H:14
Foam::ReitzKHRT::ReitzKHRT
ReitzKHRT(const dictionary &, CloudType &)
Construct from dictionary.
Definition: ReitzKHRT.C:34