interfacialGrowthSizeGroupFvScalarFieldSource.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) 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 Class
25  Foam::interfacialGrowthSizeGroupFvScalarFieldSource
26 
27 Description
28  This source condition creates a interfacial mass transfer source term in
29  the size group equations of a population balance.
30 
31 Usage
32  Example of the source condition specification:
33  \verbatim
34  <sourceName>
35  {
36  type interfacialGrowthSizeGroup;
37  libs ("libmultiphaseEulerFvModels.so");
38  }
39  \endverbatim
40 
41 SourceFiles
42  interfacialGrowthSizeGroupFvScalarFieldSource.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef interfacialGrowthSizeGroupFvScalarFieldSource_H
47 #define interfacialGrowthSizeGroupFvScalarFieldSource_H
48 
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class interfacialGrowthSizeGroupFvScalarFieldSource Declaration
58 \*---------------------------------------------------------------------------*/
59 
61 :
63 {
64 private:
65 
66  // Private Member Functions
67 
68  //- Return the moment of the diameter with which the source term scales
69  virtual label q() const
70  {
71  return 2;
72  }
73 
74 
75 public:
76 
77  //- Runtime type information
78  TypeName("interfacialGrowthSizeGroup");
79 
80 
81  // Constructors
82 
83  //- Inherit constructors
84  using
85  growthSizeGroupFvScalarFieldSource::
86  growthSizeGroupFvScalarFieldSource;
87 
88  //- Construct and return a clone setting internal field reference
90  (
92  ) const
93  {
95  (
97  (
98  *this,
99  iF
100  )
101  );
102  }
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Base class for source conditions which create a growth source terms in the size group equations of a ...
This source condition creates a interfacial mass transfer source term in the size group equations of ...
virtual autoPtr< fvScalarFieldSource > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
TypeName("interfacialGrowthSizeGroup")
Runtime type information.
Namespace for OpenFOAM.
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