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-2018 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  newpartitioningModel.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  // Private Member Functions
57 
58  //- Disallow default bitwise copy construct
60 
61  //- Disallow default bitwise assignment
62  void operator=(const partitioningModel&);
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("partitioningModel");
69 
70 
71  //- Declare runtime construction
73  (
74  autoPtr,
76  dictionary,
77  (
78  const dictionary& dict
79  ),
80  (dict)
81  );
82 
83 
84  // Constructors
85 
86  //- Construct null
88 
89 
90  // Selectors
91 
92  //- Select null constructed
93  static autoPtr<partitioningModel> New(const dictionary& dict);
94 
95 
96  //- Destructor
97  virtual ~partitioningModel();
98 
99 
100  // Member Functions
101 
102  //- Calculate and return the wall heat-flux partitioning
103  virtual tmp<scalarField> fLiquid
104  (
105  const scalarField& alphaLiquid
106  ) const = 0;
107 
108  virtual void write(Ostream& os) const;
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace wallBoilingModels
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
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:137
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
TypeName("partitioningModel")
Runtime type information.
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.