SecondaryPropertyModel.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) 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 Class
25  Foam::populationBalance::SecondaryPropertyModel
26 
27 Description
28  Base class for modelling evolution of secondary representative properties
29  of a size class. By default, transport between size classes due to
30  coalescence and breakup conserve the property. This behaviour can be
31  overridden in a derived class.
32 
33 See also
34  Foam::populationBalanceModel
35 
36 SourceFiles
37  SecondaryPropertyModel.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef SecondaryPropertyModel_H
42 #define SecondaryPropertyModel_H
43 
44 #include "populationBalanceModel.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace populationBalance
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class SecondaryPropertyModel Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 template<class ModelType>
59 :
60  public ModelType
61 {
62 public:
63 
64  //- Runtime type information
65  virtual const word& type() const = 0;
66 
67 
68  // Constructors
69 
70  //- Construct from a population balance model
72 
73  //- Disallow default bitwise copy construction
75  (
77  ) = delete;
78 
79 
80  //- Destructor
81  virtual ~SecondaryPropertyModel();
82 
83 
84  // Member Functions
85 
86  // Access
87 
88  //- Return reference to secondary property field
89  virtual const volScalarField& fld(const label i) const = 0;
90 
91  //- Access to secondary property source
92  virtual volScalarField::Internal& src(const label i) = 0;
93 
94 
95  // Edit
96 
97  //- Add coalescence contribution to secondary property source
98  virtual void addCoalescence
99  (
101  const label i,
102  const label j,
103  const label k
104  );
105 
106  //- Add breakup contribution to secondary property source
107  virtual void addBreakup
108  (
110  const label i,
111  const label j
112  );
113 
114  //- Reset secondary property source
115  virtual void reset();
116 
117 
118  // Member Operators
119 
120  //- Disallow default bitwise assignment
121  void operator=(const SecondaryPropertyModel<ModelType>&) = delete;
122 };
123 
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 } // End namespace populationBalance
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #ifdef NoRepository
133  #include "SecondaryPropertyModel.C"
134 #endif
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #endif
139 
140 // ************************************************************************* //
label k
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
Base class for modelling evolution of secondary representative properties of a size class....
virtual const volScalarField & fld(const label i) const =0
Return reference to secondary property field.
virtual const word & type() const =0
Runtime type information.
void operator=(const SecondaryPropertyModel< ModelType > &)=delete
Disallow default bitwise assignment.
SecondaryPropertyModel(const populationBalanceModel &popBal)
Construct from a population balance model.
virtual void addCoalescence(const volScalarField::Internal &Su, const label i, const label j, const label k)
Add coalescence contribution to secondary property source.
virtual volScalarField::Internal & src(const label i)=0
Access to secondary property source.
virtual void reset()
Reset secondary property source.
virtual void addBreakup(const volScalarField::Internal &Su, const label i, const label j)
Add breakup contribution to secondary property source.
A class for handling words, derived from string.
Definition: word.H:63
tmp< VolField< Type > > Su(const VolField< Type > &su, const VolField< Type > &vf)
Definition: fvcSup.C:44
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