departureFrequencyModel.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 | Copyright (C) 2016 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::departureFrequencyModel
26 
27 Description
28  Base class for bubble departure frequency models
29 
30 SourceFiles
31  departureFrequencyModel.C
32  newdepartureFrequencyModel.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef departureFrequencyModel_H
37 #define departureFrequencyModel_H
38 
39 #include "volFields.H"
40 #include "dictionary.H"
41 #include "runTimeSelectionTables.H"
42 
43 #include "phaseModel.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace wallBoilingModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class departureFrequencyModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 {
58  // Private Member Functions
59 
60  //- Disallow default bitwise copy construct
62 
63  //- Disallow default bitwise assignment
64  void operator=(const departureFrequencyModel&);
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("departureFrequencyModel");
71 
72 
73  //- Declare runtime construction
75  (
76  autoPtr,
78  dictionary,
79  (
80  const dictionary& dict
81  ),
82  (dict)
83  );
84 
85 
86  // Constructors
87 
88  //- Construct null
90 
91 
92  // Selectors
93 
94  //- Select null constructed
96 
97 
98  //- Destructor
99  virtual ~departureFrequencyModel();
100 
101 
102  // Member Functions
103 
104  //- Calculate and return the bubble departure frequency
106  (
107  const phaseModel& liquid,
108  const phaseModel& vapor,
109  const label patchi,
110  const scalarField& dDep
111  ) const = 0;
112 
113  virtual void write(Ostream& os) const;
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 } // End namespace wallBoilingModels
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
dictionary dict
virtual tmp< scalarField > fDeparture(const phaseModel &liquid, const phaseModel &vapor, const label patchi, const scalarField &dDep) const =0
Calculate and return the bubble departure frequency.
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
declareRunTimeSelectionTable(autoPtr, departureFrequencyModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual void write(Ostream &os) const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
label patchi
static autoPtr< departureFrequencyModel > New(const dictionary &dict)
Select null constructed.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Definition: PtrList.H:53
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:53
TypeName("departureFrequencyModel")
Runtime type information.
Namespace for OpenFOAM.