partitioningModel.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) 2016-2018 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::wallBoilingModels::partitioningModel
28 
29 Description
30  Base class for wall heat flux partitioning models
31 
32 SourceFiles
33  partitioningModel.C
34  newpartitioningModel.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef partitioningModel_H
39 #define partitioningModel_H
40 
41 #include "volFields.H"
42 #include "dictionary.H"
43 #include "runTimeSelectionTables.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace wallBoilingModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class partitioningModel 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 partitioningModel&);
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("partitioningModel");
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 ~partitioningModel();
100 
101 
102  // Member Functions
103 
104  //- Calculate and return the wall heat-flux partitioning
105  virtual tmp<scalarField> fLiquid
106  (
107  const scalarField& alphaLiquid
108  ) const = 0;
109 
110  virtual void write(Ostream& os) const;
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 } // End namespace wallBoilingModels
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
volFields.H
Foam::wallBoilingModels::partitioningModel::~partitioningModel
virtual ~partitioningModel()
Destructor.
Definition: partitioningModel.C:50
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
Foam::wallBoilingModels::partitioningModel
Base class for wall heat flux partitioning models.
Definition: partitioningModel.H:55
Foam::wallBoilingModels::partitioningModel::TypeName
TypeName("partitioningModel")
Runtime type information.
wallBoilingModels
Critical heat flux (CHF) correlation.
Foam::wallBoilingModels::partitioningModel::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, partitioningModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
Foam::Field< scalar >
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::wallBoilingModels::partitioningModel::fLiquid
virtual tmp< scalarField > fLiquid(const scalarField &alphaLiquid) const =0
Calculate and return the wall heat-flux partitioning.
Foam::wallBoilingModels::partitioningModel::partitioningModel
partitioningModel()
Construct null.
Definition: partitioningModel.C:44
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::wallBoilingModels::partitioningModel::write
virtual void write(Ostream &os) const
Definition: partitioningModel.C:56
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
dictionary.H
Foam::wallBoilingModels::partitioningModel::New
static autoPtr< partitioningModel > New(const dictionary &dict)
Select null constructed.
Definition: newPartitioningModel.C:35
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56