partitioningModel.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) 2016-2020 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::wallBoilingModels::partitioningModel
26 
27 Description
28  Base class for wall heat flux partitioning models
29 
30 SourceFiles
31  partitioningModel.C
32  partitioningModelNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef partitioningModel_H
37 #define partitioningModel_H
38 
39 #include "volFields.H"
40 #include "dictionary.H"
41 #include "runTimeSelectionTables.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace wallBoilingModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class partitioningModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 {
56 public:
57 
58  //- Runtime type information
59  TypeName("partitioningModel");
60 
61 
62  //- Declare runtime construction
64  (
65  autoPtr,
67  dictionary,
68  (
69  const dictionary& dict
70  ),
71  (dict)
72  );
73 
74 
75  // Constructors
76 
77  //- Construct null
79 
80  //- Copy construct
82 
83  //- Construct and return a clone
84  virtual autoPtr<partitioningModel> clone() const = 0;
85 
86 
87  // Selectors
88 
89  //- Select null constructed
90  static autoPtr<partitioningModel> New(const dictionary& dict);
91 
92 
93  //- Destructor
94  virtual ~partitioningModel();
95 
96 
97  // Member Functions
98 
99  //- Calculate and return the wall heat-flux partitioning
100  virtual tmp<scalarField> fLiquid
101  (
102  const scalarField& alphaLiquid
103  ) const = 0;
104 
105  virtual void write(Ostream& os) const;
106 
107 
108  // Member Operators
109 
110  //- Disallow default bitwise assignment
111  void operator=(const partitioningModel&) = delete;
112 };
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 } // End namespace wallBoilingModels
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
dictionary dict
static autoPtr< partitioningModel > New(const dictionary &dict)
Select null constructed.
declareRunTimeSelectionTable(autoPtr, partitioningModel, 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:158
void operator=(const partitioningModel &)=delete
Disallow default bitwise assignment.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
TypeName("partitioningModel")
Runtime type information.
virtual autoPtr< partitioningModel > clone() const =0
Construct and return a clone.
virtual void write(Ostream &os) const
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
virtual tmp< scalarField > fLiquid(const scalarField &alphaLiquid) const =0
Calculate and return the wall heat-flux partitioning.
Base class for wall heat flux partitioning models.
Namespace for OpenFOAM.