diameterModel.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2013 OpenFOAM Foundation
9  Copyright (C) 2020-2022 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::multiphaseEuler::diameterModel
29 
30 Description
31  Abstract base-class for dispersed-phase particle diameter models.
32 
33 SourceFiles
34  diameterModel.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef Foam_multiphaseEuler_diameterModel_H
39 #define Foam_multiphaseEuler_diameterModel_H
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 #include "dictionary.H"
44 #include "phaseModel.H"
45 #include "runTimeSelectionTables.H"
46 
47 namespace Foam
48 {
49 namespace multiphaseEuler
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class diameterModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class diameterModel
57 {
58 protected:
59 
60  // Protected Data
61 
62  const dictionary& dict_;
63 
64  const phaseModel& phase_;
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("diameterModel");
71 
72 
73  // Declare runtime construction
74 
76  (
77  autoPtr,
79  dictionary,
80  (
81  const dictionary& dict,
82  const phaseModel& phase
83  ),
84  (dict, phase)
85  );
86 
87 
88  // Constructors
89 
91  (
92  const dictionary& dict,
93  const phaseModel& phase
94  );
95 
96 
97  //- Destructor
98  virtual ~diameterModel() = default;
99 
100 
101  // Selectors
102 
104  (
105  const dictionary& dict,
106  const phaseModel& phase
107  );
108 
109 
110  // Member Functions
111 
112  //- Return the phase mean diameter field
113  virtual tmp<volScalarField> d() const = 0;
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace Foam
120 } // End namespace multiphaseEuler
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
dictionary dict
virtual ~diameterModel()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
Abstract base-class for dispersed-phase particle diameter models.
Definition: diameterModel.H:51
TypeName("diameterModel")
Runtime type information.
static autoPtr< diameterModel > New(const dictionary &dict, const phaseModel &phase)
Definition: diameterModel.C:53
declareRunTimeSelectionTable(autoPtr, diameterModel, dictionary,(const dictionary &dict, const phaseModel &phase),(dict, phase))
virtual tmp< volScalarField > d() const =0
Return the phase mean diameter field.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phase.H:50
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Definition: HashPtrTable.H:50
diameterModel(const dictionary &dict, const phaseModel &phase)
Definition: diameterModel.C:39
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:53
Namespace for OpenFOAM.