BreakupModel.C
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-2015 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 \*---------------------------------------------------------------------------*/
27 
28 #include "BreakupModel.H"
29 
30 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31 
32 template<class CloudType>
34 (
35  CloudType& owner
36 )
37 :
39  solveOscillationEq_(false),
40  y0_(0.0),
41  yDot0_(0.0),
42  TABComega_(0.0),
43  TABCmu_(0.0),
44  TABtwoWeCrit_(0.0)
45 {}
46 
47 
48 template<class CloudType>
50 (
51  const BreakupModel<CloudType>& bum
52 )
53 :
55  solveOscillationEq_(bum.solveOscillationEq_),
56  y0_(bum.y0_),
57  yDot0_(bum.yDot0_),
58  TABComega_(bum.TABComega_),
59  TABCmu_(bum.TABCmu_),
60  TABtwoWeCrit_(bum.TABtwoWeCrit_)
61 {}
62 
63 
64 template<class CloudType>
66 (
67  const dictionary& dict,
68  CloudType& owner,
69  const word& type,
70  bool solveOscillationEq
71 )
72 :
73  CloudSubModelBase<CloudType>(owner, dict, typeName, type),
74  solveOscillationEq_(solveOscillationEq),
75  y0_(this->coeffDict().template lookupOrDefault<scalar>("y0", 0)),
76  yDot0_(this->coeffDict().template lookupOrDefault<scalar>("yDot0", 0)),
77  TABComega_(8),
78  TABCmu_(5),
79  TABtwoWeCrit_(12)
80 {
81  if (solveOscillationEq_ && dict.found("TABCoeffs"))
82  {
83  const dictionary coeffs(dict.subDict("TABCoeffs"));
84  coeffs.readEntry("Comega", TABComega_);
85  coeffs.readEntry("Cmu", TABCmu_);
86 
87  const scalar WeCrit(coeffs.get<scalar>("WeCrit"));
88  TABtwoWeCrit_ = 2*WeCrit;
89  }
90 }
91 
92 
93 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
94 
95 template<class CloudType>
97 {}
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 #include "BreakupModelNew.C"
103 
104 // ************************************************************************* //
Foam::BreakupModel::solveOscillationEq_
Switch solveOscillationEq_
Definition: BreakupModel.H:66
Foam::BreakupModel::TABComega_
scalar TABComega_
Definition: BreakupModel.H:71
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::CloudSubModelBase
Base class for cloud sub-models.
Definition: CloudSubModelBase.H:51
Foam::BreakupModel::~BreakupModel
virtual ~BreakupModel()
Destructor.
Definition: BreakupModel.C:96
Foam::dictionary::readEntry
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
Definition: dictionaryTemplates.C:314
Foam::DSMCCloud
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:71
BreakupModelNew.C
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::BreakupModel::TABCmu_
scalar TABCmu_
Definition: BreakupModel.H:72
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam::BreakupModel::TABtwoWeCrit_
scalar TABtwoWeCrit_
Definition: BreakupModel.H:73
Foam::BreakupModel
Templated break-up model class.
Definition: SprayCloud.H:49
BreakupModel.H
Foam::BreakupModel::yDot0_
scalar yDot0_
Definition: BreakupModel.H:69
Foam::BreakupModel::y0_
scalar y0_
Definition: BreakupModel.H:68
Foam::roots::type
type
Types of root.
Definition: Roots.H:54
Foam::BreakupModel::BreakupModel
BreakupModel(CloudType &owner)
Construct null from owner.
Definition: BreakupModel.C:34