shapeModel.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "shapeModel.H"
27 
28 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
32 namespace diameterModels
33 {
34  defineTypeNameAndDebug(shapeModel, 0);
35  defineRunTimeSelectionTable(shapeModel, dictionary);
36 }
37 }
38 
39 
40 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 
43 (
44  const dictionary& dict,
45  const sizeGroup& group
46 )
47 :
48  sizeGroup_(group)
49 {}
50 
51 
52 // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
53 
56 (
57  const dictionary& dict,
58  const sizeGroup& group
59 )
60 {
61  word shapeModelType(dict.lookup("shapeModel"));
62 
63  dictionaryConstructorTable::iterator cstrIter =
64  dictionaryConstructorTablePtr_->find(shapeModelType);
65 
66  if (cstrIter == dictionaryConstructorTablePtr_->end())
67  {
69  << "Unknown shapeModelType type "
70  << shapeModelType << endl << endl
71  << "Valid shapeModel types are : " << endl
72  << dictionaryConstructorTablePtr_->sortedToc()
73  << exit(FatalError);
74  }
75 
76  return cstrIter()(dict, group);
77 }
78 
79 
80 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
81 
83 {}
84 
85 
86 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
87 
89 SizeGroup() const
90 {
91  return sizeGroup_;
92 }
93 
94 
96 {}
97 
98 
100 (
101  const volScalarField& Su,
102  const sizeGroup& fj,
103  const sizeGroup& fk
104 )
105 {}
106 
107 
109 (
110  const volScalarField& Su,
111  const sizeGroup& fj
112 )
113 {}
114 
115 
117 (
118  const volScalarField& Su,
119  const sizeGroup& fu,
120  const driftModel& model
121 )
122 {}
123 
124 
126 (
127  const volScalarField& Su,
128  const sizeGroup& fi,
129  const nucleationModel& model
130 )
131 {}
132 
133 
135 {}
136 
137 
138 // ************************************************************************* //
const char *const group
Group name for atomic constants.
dictionary dict
zeroField Su
Definition: alphaSuSp.H:1
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:124
error FatalError
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:319
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
virtual ~shapeModel()
Destructor.
virtual void addCoalescence(const volScalarField &Su, const sizeGroup &fj, const sizeGroup &fk)
Add coalescence contribution to secondary property source.
virtual void correct()
Correct physical diameter.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
This class represents a single sizeGroup belonging to a velocityGroup. The main property of a sizeGro...
Definition: sizeGroup.H:100
virtual void reset()
Reset secondary property source.
const sizeGroup & SizeGroup() const
Return reference to size group.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
static autoPtr< shapeModel > New(const dictionary &dict, const sizeGroup &group)
virtual void addNucleation(const volScalarField &Su, const sizeGroup &fi, const nucleationModel &model)
Add nucleation contribution to secondary property source.
virtual void addDrift(const volScalarField &Su, const sizeGroup &fu, const driftModel &model)
Add drift contribution to secondary property source.
shapeModel(const dictionary &dict, const sizeGroup &group)
Construct from dictionary and sizeGroup.
virtual void addBreakup(const volScalarField &Su, const sizeGroup &fj)
Add breakup contribution to secondary property source.
Namespace for OpenFOAM.