LISAAtomization.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::LISAAtomization
28 
29 Group
30  grpLagrangianIntermediateAtomizationSubModels
31 
32 Description
33  Primary Breakup Model for pressure swirl atomizers.
34 
35  Accurate description in
36  @verbatim
37  P.K. Senecal, D.P. Schmidt, I. Nouar, C.J. Rutland, R.D. Reitz, M. Corradini
38  "Modeling high-speed viscous liquid sheet atomization"
39  International Journal of Multiphase Flow 25 (1999) pags. 1073-1097
40  @endverbatim
41 
42  and
43 
44  @verbatim
45  D.P. Schmidt, I. Nouar, P.K. Senecal, C.J. Rutland, J.K. Martin, R.D. Reitz
46  "Pressure-Swirl Atomization in the Near Field"
47  SAE Techical Paper Series 1999-01-0496
48  @endverbatim
49 
50 \*---------------------------------------------------------------------------*/
51 
52 #ifndef LISAAtomization_H
53 #define LISAAtomization_H
54 
55 #include "AtomizationModel.H"
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61 /*---------------------------------------------------------------------------*\
62  Class LISAAtomization Declaration
63 \*---------------------------------------------------------------------------*/
64 
65 template<class CloudType>
66 class LISAAtomization
67 :
68  public AtomizationModel<CloudType>
69 {
70 
71 public:
72 
73  //- Enumeration for SMD calculations
74  enum SMDMethods
75  {
77  method2
78  };
79 
80 
81 private:
82 
83  // Private data
84 
85  scalar Cl_;
86  scalar cTau_;
87  scalar Q_;
88  scalar lisaExp_;
89  vector injectorDirection_;
90  word SMDCalcMethod_;
91 
92  SMDMethods SMDMethod_;
93 
94 
95 public:
96 
97  //- Runtime type information
98  TypeName("LISA");
99 
100 
101  // Constructors
102 
103  //- Construct from dictionary
105 
106  //- Construct copy
108 
109  //- Construct and return a clone
111  {
113  (
114  new LISAAtomization<CloudType>(*this)
115  );
116  }
117 
118 
119  //- Destructor
120  virtual ~LISAAtomization();
121 
122 
123  // Member Functions
124 
125  //- Initial value of liquidCore
126  virtual scalar initLiquidCore() const;
127 
128  //- Flag to indicate if chi needs to be calculated
129  virtual bool calcChi() const;
130 
131  virtual void update
132  (
133  const scalar dt,
134  scalar& d,
135  scalar& liquidCore,
136  scalar& tc,
137  const scalar rho,
138  const scalar mu,
139  const scalar sigma,
140  const scalar volFlowRate,
141  const scalar rhoAv,
142  const scalar Urel,
143  const vector& pos,
144  const vector& injectionPos,
145  const scalar pAmbient,
146  const scalar chi,
147  Random& rndGen
148  ) const;
149 };
150 
151 
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 
154 } // End namespace Foam
155 
156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 
158 #ifdef NoRepository
159  #include "LISAAtomization.C"
160 #endif
161 
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 
164 #endif
165 
166 // ************************************************************************* //
Foam::Random
Random number generator.
Definition: Random.H:59
Foam::LISAAtomization::clone
virtual autoPtr< AtomizationModel< CloudType > > clone() const
Construct and return a clone.
Definition: LISAAtomization.H:109
Foam::LISAAtomization::calcChi
virtual bool calcChi() const
Flag to indicate if chi needs to be calculated.
Definition: LISAAtomization.C:103
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
Urel
Urel
Definition: pEqn.H:56
Foam::AtomizationModel
Templated atomization model class.
Definition: SprayCloud.H:48
rho
rho
Definition: readInitialConditions.H:96
AtomizationModel.H
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:121
Foam::LISAAtomization::update
virtual void update(const scalar dt, scalar &d, scalar &liquidCore, scalar &tc, const scalar rho, const scalar mu, const scalar sigma, const scalar volFlowRate, const scalar rhoAv, const scalar Urel, const vector &pos, const vector &injectionPos, const scalar pAmbient, const scalar chi, Random &rndGen) const
Definition: LISAAtomization.C:111
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::LISAAtomization::TypeName
TypeName("LISA")
Runtime type information.
Foam::LISAAtomization::LISAAtomization
LISAAtomization(const dictionary &, CloudType &)
Construct from dictionary.
Definition: LISAAtomization.C:34
Foam::LISAAtomization::method1
Definition: LISAAtomization.H:75
LISAAtomization.C
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::LISAAtomization
Primary Breakup Model for pressure swirl atomizers.
Definition: LISAAtomization.H:65
Foam::LISAAtomization::SMDMethods
SMDMethods
Enumeration for SMD calculations.
Definition: LISAAtomization.H:73
Foam::Vector< scalar >
Foam::LISAAtomization::initLiquidCore
virtual scalar initLiquidCore() const
Initial value of liquidCore.
Definition: LISAAtomization.C:96
Foam::LISAAtomization::method2
Definition: LISAAtomization.H:76
rndGen
Random rndGen
Definition: createFields.H:23
sigma
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
Foam::LISAAtomization::~LISAAtomization
virtual ~LISAAtomization()
Destructor.
Definition: LISAAtomization.C:89
Foam::pos
dimensionedScalar pos(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:177