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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::wallBoilingModels::partitioningModel
29
30Description
31 Base class for wall heat flux partitioning models.
32
33SourceFiles
34 partitioningModel.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef partitioningModel_H
39#define partitioningModel_H
40
41#include "volFields.H"
42#include "dictionary.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace wallBoilingModels
50{
51
52/*---------------------------------------------------------------------------*\
53 Class partitioningModel Declaration
54\*---------------------------------------------------------------------------*/
57{
58public:
59
60 //- Runtime type information
61 TypeName("partitioningModel");
62
63
64 //- Declare runtime construction
66 (
67 autoPtr,
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// ************************************************************************* //
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A class for managing temporary objects.
Definition: tmp.H:65
Base class for wall heat flux partitioning models.
TypeName("partitioningModel")
Runtime type information.
virtual tmp< scalarField > fLiquid(const scalarField &alphaLiquid) const =0
Calculate and return the wall heat-flux partitioning.
static autoPtr< partitioningModel > New(const dictionary &dict)
Select default constructed.
declareRunTimeSelectionTable(autoPtr, partitioningModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
virtual ~partitioningModel()=default
Destructor.
partitioningModel()=default
Default construct.
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
runTime write()
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73