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-2025 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 #include "populationBalanceModel.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33 namespace diameterModels
34 {
37 }
38 }
39 
40 
41 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
42 
44 :
45  group_(group)
46 {}
47 
48 
49 // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
50 
53 (
54  const dictionary& dict,
55  const sizeGroup& group,
56  const dictionary& groupDict
57 )
58 {
59  word shapeModelType(dict.lookup("shapeModel"));
60 
61  dictionaryConstructorTable::iterator cstrIter =
62  dictionaryConstructorTablePtr_->find(shapeModelType);
63 
64  if (cstrIter == dictionaryConstructorTablePtr_->end())
65  {
67  << "Unknown shapeModel type "
68  << shapeModelType << endl << endl
69  << "Valid shapeModel types are : " << endl
70  << dictionaryConstructorTablePtr_->sortedToc()
71  << exit(FatalError);
72  }
73 
74  return cstrIter()(dict, group, groupDict);
75 }
76 
77 
78 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
79 
81 {}
82 
83 
84 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
85 
88 {
89  return group.group().popBal().sizeGroups()[group.i()].shape();
90 }
91 
92 
95 {
96  return group_;
97 }
98 
99 
101 {}
102 
103 
105 (
107  const sizeGroup& fj,
108  const sizeGroup& fk
109 )
110 {}
111 
112 
114 (
116  const sizeGroup& fj
117 )
118 {}
119 
120 
122 {}
123 
124 
125 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Base class for modelling the shape of the particles belonging to a size class through alternative dia...
Definition: shapeModel.H:61
shapeModel(const sizeGroup &group)
Construct from sizeGroup.
Definition: shapeModel.C:43
static const shapeModel & model(const sizeGroup &)
Return the shape model for a given size group.
Definition: shapeModel.C:87
virtual void correct()
Correct physical diameter.
Definition: shapeModel.C:100
const sizeGroup & group() const
Return reference to size group.
Definition: shapeModel.C:94
virtual void addCoalescence(const volScalarField::Internal &Su, const sizeGroup &fj, const sizeGroup &fk)
Add coalescence contribution to secondary property source.
Definition: shapeModel.C:105
static autoPtr< shapeModel > New(const dictionary &dict, const sizeGroup &group, const dictionary &groupDict)
Definition: shapeModel.C:53
virtual void reset()
Reset secondary property source.
Definition: shapeModel.C:121
virtual ~shapeModel()
Destructor.
Definition: shapeModel.C:80
virtual void addBreakup(const volScalarField::Internal &Su, const sizeGroup &fj)
Add breakup contribution to secondary property source.
Definition: shapeModel.C:114
Single size class fraction field representing a fixed particle volume as defined by the user through ...
Definition: sizeGroup.H:96
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A class for handling words, derived from string.
Definition: word.H:62
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:334
const char *const group
Group name for atomic constants.
defineRunTimeSelectionTable(IATEsource, dictionary)
defineTypeNameAndDebug(constant, 0)
tmp< VolField< Type > > Su(const VolField< Type > &su, const VolField< Type > &vf)
Definition: fvcSup.C:44
Namespace for OpenFOAM.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:124
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:258
error FatalError
dictionary dict