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  Copyright (C) 2020-2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::wallBoilingModels::partitioningModel
29 
30 Description
31  Base class for wall heat flux partitioning models.
32 
33 SourceFiles
34  partitioningModel.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 public:
59 
60  //- Runtime type information
61  TypeName("partitioningModel");
62 
63 
64  //- Declare runtime construction
66  (
67  autoPtr,
69  dictionary,
70  (
71  const dictionary& dict
72  ),
73  (dict)
74  );
75 
76 
77  // Constructors
78 
79  //- Default construct
80  partitioningModel() = default;
81 
82 
83  // Selectors
84 
85  //- Select default constructed
87 
88 
89  //- Destructor
90  virtual ~partitioningModel() = default;
91 
92 
93  // Member Functions
94 
95  //- Calculate and return the wall heat-flux partitioning
97  (
98  const scalarField& alphaLiquid
99  ) const = 0;
100 
101  // I-O
102 
103  //- Write
104  virtual void write(Ostream& os) const;
105 };
106 
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 } // End namespace wallBoilingModels
111 } // End namespace Foam
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #endif
116 
117 // ************************************************************************* //
volFields.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::wallBoilingModels::partitioningModel
Base class for wall heat flux partitioning models.
Definition: partitioningModel.H:55
Foam::wallBoilingModels::partitioningModel::TypeName
TypeName("partitioningModel")
Runtime type information.
Foam::wallBoilingModels::partitioningModel::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, partitioningModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
Foam::Field< scalar >
Foam::wallBoilingModels::partitioningModel::partitioningModel
partitioningModel()=default
Default construct.
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:123
os
OBJstream os(runTime.globalPath()/outputName)
Foam::wallBoilingModels::partitioningModel::fLiquid
virtual tmp< scalarField > fLiquid(const scalarField &alphaLiquid) const =0
Calculate and return the wall heat-flux partitioning.
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
Write.
Definition: partitioningModel.C:75
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 default constructed.
Definition: partitioningModel.C:47
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::wallBoilingModels::partitioningModel::~partitioningModel
virtual ~partitioningModel()=default
Destructor.