Loading...
Searching...
No Matches
alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.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) 2015-2018 OpenFOAM Foundation
9 Copyright (C) 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::compressible::
29 alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField
30
31Description
32 A simple \c alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField with
33 a fixed volumetric phase-change mass flux.
34
35Usage
36 Example of the boundary condition specification:
37 \verbatim
38 <patch>
39 {
40 // Mandatory entries
41 type compressible::alphatFixedDmdtWallBoilingWallFunction;
42 vaporPhase <word>;
43
44 // Optional entries
45 relax <scalar>;
46 fixedDmdt <scalar>;
47 L <scalar>;
48
49 // Inherited entries
50 ...
51 }
52 \endverbatim
53
54 where the entries mean:
55 \table
56 Property | Description | Type | Reqd | Deflt
57 type | Type name: <!--
58 --> compressible::alphatFixedDmdtWallBoilingWallFunction <!--
59 --> | word | yes | -
60 vaporPhase | Name of the vapor phase | word | yes | -
61 relax | Relaxation factor for dmdt | scalar | no | 1.0
62 fixedDmdt | Volumetric phase-change mass flux in near wall cells <!--
63 --> | scalar | no | 0.0
64 L | Latent heat | scalar | no | 0.0
65 \endtable
66
67 The inherited entries are elaborated in:
68 -\link alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H\endlink
69
70See also
71 Foam::compressible::
72 alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField
73
74SourceFiles
75 alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C
76
77\*---------------------------------------------------------------------------*/
78
79#ifndef alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField_H
80#define alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField_H
81
83
84// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85
86namespace Foam
87{
88namespace compressible
89{
90
91/*---------------------------------------------------------------------------*\
92 Class alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField Declaration
93\*---------------------------------------------------------------------------*/
94
96:
98{
99 // Private Data
100
101 //- Name of the vapor phase
102 word vaporPhaseName_;
103
104 //- Relaxation factor for dmdt
105 scalar relax_;
106
107 //- Volumetric phase-change mass flux in near wall cells
108 scalar fixedDmdt_;
109
110 //- Latent heat
111 scalar L_;
112
113
114public:
115
116 //- Runtime type information
117 TypeName("compressible::alphatFixedDmdtWallBoilingWallFunction");
118
119
120 // Constructors
121
122 //- Construct from patch and internal field
124 (
125 const fvPatch&,
126 const DimensionedField<scalar, volMesh>&
127 );
128
129 //- Construct from patch, internal field and dictionary
132 const fvPatch&,
134 const dictionary&
135 );
136
137 //- Construct by mapping given
138 //- alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField
139 //- onto a new patch
141 (
143 const fvPatch&,
145 const fvPatchFieldMapper&
146 );
147
148 //- Construct as copy
150 (
152 );
153
154 //- Construct as copy setting internal field reference
156 (
159 );
160
161 //- Return a clone
162 virtual tmp<fvPatchField<scalar>> clone() const
164 return fvPatchField<scalar>::Clone(*this);
165 }
166
167 //- Clone with an internal field reference
169 (
171 ) const
172 {
173 return fvPatchField<scalar>::Clone(*this, iF);
174 }
175
176
177 // Member Functions
178
179 //- Is there phase change mass transfer for this phasePair
180 virtual bool activePhasePair(const phasePairKey&) const;
181
182 //- Return the rate of phase-change for specific phase pair
183 virtual const scalarField& dmdt(const phasePairKey&) const;
184
185 //- Return the rate of phase-change for specific phase pair
186 virtual const scalarField& mDotL(const phasePairKey&) const;
187
188
189 // Evaluation
190
191 //- Update the coefficients associated with the patch field
192 virtual void updateCoeffs();
193
194
195 // I-O
196
197 //- Write
198 virtual void write(Ostream&) const;
199};
200
201
202// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
203
204} // End namespace compressible
205} // End namespace Foam
206
207// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
208
209#endif
210
211// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition Ostream.H:59
A simple alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField with a fixed volumetric phase-cha...
virtual tmp< fvPatchField< scalar > > clone(const DimensionedField< scalar, volMesh > &iF) const
Clone with an internal field reference.
TypeName("compressible::alphatFixedDmdtWallBoilingWallFunction")
Runtime type information.
virtual bool activePhasePair(const phasePairKey &) const
Is there phase change mass transfer for this phasePair.
alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
This boundary condition provides a thermal wall function for turbulent thermal diffusivity (usuallyal...
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual const scalarField & mDotL() const
Return the enthalpy source due to phase-change.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A FieldMapper for finite-volume patch fields.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition fvPatch.H:71
An ordered or unorder pair of phase names. Typically specified as follows.
A class for managing temporary objects.
Definition tmp.H:75
A class for handling words, derived from Foam::string.
Definition word.H:66
Namespace for OpenFOAM.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
runTime write()
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68