NoAtomization.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::NoAtomization
28 
29 Group
30  grpLagrangianIntermediateAtomizationSubModels
31 
32 Description
33  Dummy phase change model for 'none'
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef NoAtomization_H
38 #define NoAtomization_H
39 
40 #include "AtomizationModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 /*---------------------------------------------------------------------------*\
47  Class NoAtomization Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 template<class CloudType>
51 class NoAtomization
52 :
53  public AtomizationModel<CloudType>
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("none");
59 
60 
61  // Constructors
62 
63  //- Construct from dictionary
65 
66  //- Construct copy
68 
69  //- Construct and return a clone
71  {
73  (
74  new NoAtomization<CloudType>(*this)
75  );
76  }
77 
78 
79  //- Destructor
80  virtual ~NoAtomization();
81 
82 
83  // Member Functions
84 
85  //- Flag to indicate whether model activates atomization model
86  virtual bool active() const;
87 
88  //- Initial value of liquidCore
89  virtual scalar initLiquidCore() const;
90 
91  //- Flag to indicate if chi needs to be calculated
92  virtual bool calcChi() const;
93 
94  virtual void update
95  (
96  const scalar dt,
97  scalar& d,
98  scalar& liquidCore,
99  scalar& tc,
100  const scalar rho,
101  const scalar mu,
102  const scalar sigma,
103  const scalar volFlowRate,
104  const scalar rhoAv,
105  const scalar Urel,
106  const vector& pos,
107  const vector& injectionPos,
108  const scalar pAmbient,
109  const scalar chi,
110  Random& rndGen
111  ) const;
112 };
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #ifdef NoRepository
122  #include "NoAtomization.C"
123 #endif
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #endif
128 
129 // ************************************************************************* //
Foam::Random
Random number generator.
Definition: Random.H:59
Foam::NoAtomization::~NoAtomization
virtual ~NoAtomization()
Destructor.
Definition: NoAtomization.C:56
Foam::NoAtomization::clone
virtual autoPtr< AtomizationModel< CloudType > > clone() const
Construct and return a clone.
Definition: NoAtomization.H:69
Foam::NoAtomization::NoAtomization
NoAtomization(const dictionary &dict, CloudType &cloud)
Construct from dictionary.
Definition: NoAtomization.C:34
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
Urel
Urel
Definition: pEqn.H:56
NoAtomization.C
Foam::AtomizationModel
Templated atomization model class.
Definition: SprayCloud.H:49
rho
rho
Definition: readInitialConditions.H:88
Foam::NoAtomization::active
virtual bool active() const
Flag to indicate whether model activates atomization model.
Definition: NoAtomization.C:63
Foam::NoAtomization::calcChi
virtual bool calcChi() const
Flag to indicate if chi needs to be calculated.
Definition: NoAtomization.C:77
AtomizationModel.H
Foam::NoAtomization
Dummy phase change model for 'none'.
Definition: NoAtomization.H:50
Foam::DSMCCloud
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:71
Foam::NoAtomization::TypeName
TypeName("none")
Runtime type information.
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::NoAtomization::initLiquidCore
virtual scalar initLiquidCore() const
Initial value of liquidCore.
Definition: NoAtomization.C:70
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::cloud
A cloud is a registry collection of lagrangian particles.
Definition: cloud.H:57
Foam::Vector< scalar >
rndGen
Random rndGen
Definition: createFields.H:23
sigma
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
Foam::NoAtomization::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: NoAtomization.C:85
Foam::pos
dimensionedScalar pos(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:177