daughterSizeDistributionModel.H
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) 2017-2018 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 Class
25  Foam::diameterModels::daughterSizeDistributionModel
26 
27 Description
28  Base class for daughter size distribution models.
29 
30 SourceFiles
31  daughterSizeDistributionModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef daughterSizeDistributionModel_H
36 #define daughterSizeDistributionModel_H
37 
38 #include "dictionary.H"
39 #include "dimensionedScalar.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace diameterModels
46 {
47 
48 class breakupModel;
49 
50 /*---------------------------------------------------------------------------*\
51  Class daughterSizeDistributionModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 {
56 protected:
57 
58  // Protected data
59 
60  //- Reference to the breakupModel
61  const breakupModel& breakup_;
62 
63  //- nik
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("daughterSizeDistributionModel");
71 
72 
73  // Declare runtime construction
74 
76  (
77  autoPtr,
79  dictionary,
80  (
81  const breakupModel& breakup,
82  const dictionary& dict
83  ),
84  (breakup, dict)
85  );
86 
87 
88  // Constructor
89 
91  (
92  const breakupModel& breakup,
93  const dictionary& dict
94  );
95 
96 
97  //- Destructor
99 
100 
101  // Selectors
102 
104  (
105  const breakupModel& breakup,
106  const dictionary& dict
107  );
108 
109 
110  // Member Functions
111 
112  //- Return total number of particles assigned to class i when a particle
113  // of class k breaks
114  const dimensionedScalar& nik(const label i, const label k) const;
115 
116  //- Correct field independent expressions
117  void correct();
118 
119  //- Calculate and return total number of particles assigned to class i
120  // when a particle of class k breaks
121  virtual dimensionedScalar calcNik
122  (
123  const label i,
124  const label k
125  ) const = 0;
126 };
127 
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 } // End namespace diameterModels
132 } // End namespace Foam
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
TypeName("daughterSizeDistributionModel")
Runtime type information.
dictionary dict
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
void correct()
Correct field independent expressions.
declareRunTimeSelectionTable(autoPtr, daughterSizeDistributionModel, dictionary,(const breakupModel &breakup, const dictionary &dict),(breakup, dict))
label k
Boltzmann constant.
Base class for breakup models which give a total breakup rate and a separate daughter size distributi...
Definition: breakupModel.H:52
Base class for daughter size distribution models.
daughterSizeDistributionModel(const breakupModel &breakup, const dictionary &dict)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: List.H:63
static autoPtr< daughterSizeDistributionModel > New(const breakupModel &breakup, const dictionary &dict)
virtual dimensionedScalar calcNik(const label i, const label k) const =0
Calculate and return total number of particles assigned to class i.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
const breakupModel & breakup_
Reference to the breakupModel.
const dimensionedScalar & nik(const label i, const label k) const
Return total number of particles assigned to class i when a particle.
Namespace for OpenFOAM.