OpenFOAM: API Guide
v2112
The open source CFD toolbox
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
Copyright (C) 2020 OpenCFD Ltd.
10
-------------------------------------------------------------------------------
11
License
12
This file is part of OpenFOAM.
13
14
OpenFOAM is free software: you can redistribute it and/or modify it
15
under the terms of the GNU General Public License as published by
16
the Free Software Foundation, either version 3 of the License, or
17
(at your option) any later version.
18
19
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
for more details.
23
24
You should have received a copy of the GNU General Public License
25
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27
\*---------------------------------------------------------------------------*/
28
29
#include "
BreakupModel.H
"
30
31
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32
33
template
<
class
CloudType>
34
Foam::BreakupModel<CloudType>::BreakupModel
35
(
36
CloudType
& owner
37
)
38
:
39
CloudSubModelBase<CloudType>
(owner),
40
solveOscillationEq_(
false
),
41
y0_(0.0),
42
yDot0_(0.0),
43
TABComega_(0.0),
44
TABCmu_(0.0),
45
TABtwoWeCrit_(0.0)
46
{}
47
48
49
template
<
class
CloudType>
50
Foam::BreakupModel<CloudType>::BreakupModel
51
(
52
const
BreakupModel<CloudType>
& bum
53
)
54
:
55
CloudSubModelBase<CloudType>
(bum),
56
solveOscillationEq_(bum.
solveOscillationEq_
),
57
y0_(bum.
y0_
),
58
yDot0_(bum.
yDot0_
),
59
TABComega_(bum.
TABComega_
),
60
TABCmu_(bum.
TABCmu_
),
61
TABtwoWeCrit_(bum.
TABtwoWeCrit_
)
62
{}
63
64
65
template
<
class
CloudType>
66
Foam::BreakupModel<CloudType>::BreakupModel
67
(
68
const
dictionary
&
dict
,
69
CloudType
& owner,
70
const
word
&
type
,
71
bool
solveOscillationEq
72
)
73
:
74
CloudSubModelBase<CloudType>
(owner,
dict
, typeName,
type
),
75
solveOscillationEq_(solveOscillationEq),
76
y0_(this->coeffDict().
template
getOrDefault<scalar>(
"y0"
, 0)),
77
yDot0_(this->coeffDict().
template
getOrDefault<scalar>(
"yDot0"
, 0)),
78
TABComega_(8),
79
TABCmu_(5),
80
TABtwoWeCrit_(12)
81
{
82
if
(solveOscillationEq_ &&
dict
.found(
"TABCoeffs"
))
83
{
84
const
dictionary
coeffs(
dict
.subDict(
"TABCoeffs"
));
85
coeffs.
readEntry
(
"Comega"
, TABComega_);
86
coeffs.readEntry(
"Cmu"
, TABCmu_);
87
88
const
scalar WeCrit(coeffs.get<scalar>(
"WeCrit"
));
89
TABtwoWeCrit_ = 2*WeCrit;
90
}
91
}
92
93
94
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
95
96
template
<
class
CloudType>
97
Foam::BreakupModel<CloudType>::~BreakupModel
()
98
{}
99
100
101
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102
103
#include "
BreakupModelNew.C
"
104
105
// ************************************************************************* //
Foam::BreakupModel::TABComega_
scalar TABComega_
Definition:
BreakupModel.H:72
Foam::word
A class for handling words, derived from Foam::string.
Definition:
word.H:65
Foam::CloudSubModelBase
Base class for cloud sub-models.
Definition:
CloudSubModelBase.H:51
Foam::BreakupModel::solveOscillationEq_
bool solveOscillationEq_
Definition:
BreakupModel.H:67
Foam::BreakupModel::~BreakupModel
virtual ~BreakupModel()
Destructor.
Definition:
BreakupModel.C:97
Foam::dictionary::readEntry
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
Definition:
dictionaryTemplates.C:302
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:73
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition:
dictionary.H:123
Foam::BreakupModel::TABtwoWeCrit_
scalar TABtwoWeCrit_
Definition:
BreakupModel.H:74
Foam::BreakupModel
Templated break-up model class.
Definition:
SprayCloud.H:50
BreakupModel.H
Foam::BreakupModel::yDot0_
scalar yDot0_
Definition:
BreakupModel.H:70
Foam::BreakupModel::y0_
scalar y0_
Definition:
BreakupModel.H:69
Foam::roots::type
type
Types of root.
Definition:
Roots.H:54
Foam::BreakupModel::BreakupModel
BreakupModel(CloudType &owner)
Construct null from owner.
Definition:
BreakupModel.C:35
src
lagrangian
spray
submodels
BreakupModel
BreakupModel
BreakupModel.C
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.