Lavieville.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) 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::partitioningModels::Lavieville
29 
30 Description
31  A model for wall heat flux partitioning based on
32  Lavieville et al. (2006) for boiling flows.
33 
34  Reference:
35  \verbatim
36  Lavieville, J., Quemerais, E., Mimouni, S.,
37  Boucker, M., & Mechitoua, N. (2006).
38  NEPTUNE CFD V1.0 theory manual.
39  NEPTUNE report Nept_2004_L1, 2(3).
40  \endverbatim
41 
42 Usage
43  Example of the model specification:
44  \verbatim
45  partitioningModel
46  {
47  // Mandatory entries
48  type Lavieville;
49  alphaCrit <scalar>;
50  }
51  \endverbatim
52 
53  where the entries mean:
54  \table
55  Property | Description | Type | Reqd | Deflt
56  type | Type name: Lavieville | word | yes | -
57  alphaCrit | Critical liquid fraction | scalar | yes | -
58  \endtable
59 
60 SourceFiles
61  Lavieville.C
62 
63 \*---------------------------------------------------------------------------*/
64 
65 #ifndef Lavieville_H
66 #define Lavieville_H
67 
68 #include "partitioningModel.H"
69 
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 
72 namespace Foam
73 {
74 namespace wallBoilingModels
75 {
76 namespace partitioningModels
77 {
78 
79 /*---------------------------------------------------------------------------*\
80  Class Lavieville Declaration
81 \*---------------------------------------------------------------------------*/
82 
83 class Lavieville
84 :
85  public partitioningModel
86 {
87  // Private data
88 
89  //- Critical liquid fraction
90  scalar alphaCrit_;
91 
92 
93 public:
94 
95  //- Runtime type information
96  TypeName("Lavieville");
97 
98 
99  // Constructors
100 
101  //- Construct from a dictionary
102  Lavieville(const dictionary& dict);
103 
104 
105  //- Destructor
106  virtual ~Lavieville();
107 
108 
109  // Member Functions
110 
111  //- Liquid blending function
112  virtual tmp<scalarField> fLiquid(const scalarField& alphaLiquid) const;
113 
114  virtual void write(Ostream& os) const;
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace partitioningModels
121 } // End namespace wallBoilingModels
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
Foam::wallBoilingModels::partitioningModels::Lavieville::fLiquid
virtual tmp< scalarField > fLiquid(const scalarField &alphaLiquid) const
Liquid blending function.
Definition: Lavieville.C:74
Foam::wallBoilingModels::partitioningModels::Lavieville::TypeName
TypeName("Lavieville")
Runtime type information.
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
partitioningModel.H
Foam::wallBoilingModels::partitioningModels::Lavieville::~Lavieville
virtual ~Lavieville()
Destructor.
Definition: Lavieville.C:65
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:123
os
OBJstream os(runTime.globalPath()/outputName)
Foam::wallBoilingModels::partitioningModels::Lavieville::Lavieville
Lavieville(const dictionary &dict)
Construct from a dictionary.
Definition: Lavieville.C:55
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::wallBoilingModels::partitioningModels::Lavieville
A model for wall heat flux partitioning based on Lavieville et al. (2006) for boiling flows.
Definition: Lavieville.H:100
Foam::wallBoilingModels::partitioningModels::Lavieville::write
virtual void write(Ostream &os) const
Write.
Definition: Lavieville.C:91
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56