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