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 -------------------------------------------------------------------------------
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::compressible::
28  alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField
29 
30 Description
31  A simple alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField with
32  a fixed volumetric phase-change mass flux.
33 
34 See also
35  Foam::compressible::
36  alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField
37 
38 SourceFiles
39  alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField_H
44 #define alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField_H
45 
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace compressible
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
62 {
63  // Private data
64 
65  //- name on the phase
66  word vaporPhaseName_;
67 
68  //- dmdt relaxationFactor
69  scalar relax_;
70 
71  //- Volumetric phase-change mass flux in near wall cells
72  scalar fixedDmdt_;
73 
74  //- Latent heat
75  scalar L_;
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("compressible::alphatFixedDmdtWallBoilingWallFunction");
82 
83 
84  // Constructors
85 
86  //- Construct from patch and internal field
88  (
89  const fvPatch&,
91  );
92 
93  //- Construct from patch, internal field and dictionary
95  (
96  const fvPatch&,
98  const dictionary&
99  );
100 
101  //- Construct by mapping given
102  // alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField
103  // onto a new patch
105  (
107  const fvPatch&,
109  const fvPatchFieldMapper&
110  );
111 
112  //- Construct as copy
114  (
116  );
117 
118  //- Construct and return a clone
119  virtual tmp<fvPatchScalarField> clone() const
120  {
122  (
124  (
125  *this
126  )
127  );
128  }
129 
130  //- Construct as copy setting internal field reference
132  (
135  );
136 
137  //- Construct and return a clone setting internal field reference
139  (
141  ) const
142  {
144  (
146  (
147  *this,
148  iF
149  )
150  );
151  }
152 
153 
154  // Member functions
155 
156  //- Is there phase change mass transfer for this phasePair
157  virtual bool activePhasePair(const phasePairKey&) const;
158 
159  //- Return the rate of phase-change for specific phase pair
160  virtual const scalarField& dmdt(const phasePairKey&) const;
161 
162  //- Return the rate of phase-change for specific phase pair
163  virtual const scalarField& mDotL(const phasePairKey&) const;
164 
165  // Evaluation functions
166 
167  //- Update the coefficients associated with the patch field
168  virtual void updateCoeffs();
169 
170 
171  // I-O
172 
173  //- Write
174  virtual void write(Ostream&) const;
175 };
176 
177 
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 
180 } // End namespace compressible
181 } // End namespace Foam
182 
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184 
185 #endif
186 
187 // ************************************************************************* //
Foam::compressible::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField
A simple alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField with a fixed volumetric phase-cha...
Definition: alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.H:57
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::compressible::alphatPhaseChangeWallFunctionFvPatchScalarField::mDotL
virtual const scalarField & mDotL() const
Return the enthalpy source due to phase-change.
Definition: alphatPhaseChangeWallFunctionFvPatchScalarField.H:131
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::compressible::alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField
This boundary condition provides a thermal wall function for turbulent thermal diffusivity (usuallyal...
Definition: alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H:103
Foam::compressible::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::activePhasePair
virtual bool activePhasePair(const phasePairKey &) const
Is there phase change mass transfer for this phasePair.
Definition: alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C:126
alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField.H
Foam::compressible::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Definition: alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C:192
Foam::Field< scalar >
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:65
Foam::compressible::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.H:117
Foam::phasePairKey
Definition: phasePairKey.H:57
compressible
bool compressible
Definition: pEqn.H:2
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::compressible::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C:175
Foam::compressible::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField
alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField.C:44
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:47
Foam::compressible::alphatPhaseChangeWallFunctionFvPatchScalarField::dmdt
virtual const scalarField & dmdt() const
Return the rate of phase-change.
Definition: alphatPhaseChangeWallFunctionFvPatchScalarField.H:125
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::compressible::alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::TypeName
TypeName("compressible::alphatFixedDmdtWallBoilingWallFunction")
Runtime type information.
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:54