alphatPhaseChangeWallFunctionFvPatchScalarField.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 | Copyright (C) 2015-2016 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::compressible::alphatPhaseChangeWallFunctionFvPatchScalarField
26 
27 Group
28  grpCmpWallFunctions
29 
30 Description
31  Abstract base-class for all alphatWallFunctions supporting phase-change.
32 
33 See also
34  Foam::fixedValueFvPatchScalarField
35  Foam::alphatWallFunctionFvPatchScalarField
36 
37 SourceFiles
38  alphatPhaseChangeWallFunctionFvPatchScalarField.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef compressibleAlphatPhaseChangeWallFunctionFvPatchScalarField_H
43 #define compressibleAlphatPhaseChangeWallFunctionFvPatchScalarField_H
44 
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 namespace compressible
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class alphatPhaseChangeWallFunctionFvPatchScalarField Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 :
60  public fixedValueFvPatchScalarField
61 {
62 protected:
63 
64  // Protected data
65 
66  //- Rate of phase-change
68 
69  //- Latent heat of the phase-change
71 
72 
73 public:
74 
75  //- Runtime type information
76  TypeName("compressible::alphatPhaseChangeWallFunction");
77 
78 
79  // Constructors
80 
81  //- Construct from patch and internal field
83  (
84  const fvPatch&,
86  );
87 
88  //- Construct from patch, internal field and dictionary
90  (
91  const fvPatch&,
93  const dictionary&
94  );
95 
96  //- Construct by mapping given
97  // alphatPhaseChangeWallFunctionFvPatchScalarField
98  // onto a new patch
100  (
102  const fvPatch&,
104  const fvPatchFieldMapper&
105  );
106 
107  //- Construct as copy
109  (
111  );
112 
113  //- Construct as copy setting internal field reference
115  (
118  );
119 
120 
121  // Member functions
122 
123  //- Return the rate of phase-change
124  const scalarField& dmdt() const
125  {
126  return dmdt_;
127  }
128 
129  //- Return the enthelpy source due to phase-change
130  const scalarField& mDotL() const
131  {
132  return mDotL_;
133  }
134 
135  // Evaluation functions
136 
137  //- Update the coefficients associated with the patch field
138  virtual void updateCoeffs() = 0;
139 
140 
141  // I-O
142 
143  //- Write
144  virtual void write(Ostream&) const;
145 };
146 
147 
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 
150 } // End namespace compressible
151 } // End namespace Foam
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 #endif
156 
157 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
virtual void updateCoeffs()=0
Update the coefficients associated with the patch field.
Foam::fvPatchFieldMapper.
const scalarField & mDotL() const
Return the enthelpy source due to phase-change.
Abstract base-class for all alphatWallFunctions supporting phase-change.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
alphatPhaseChangeWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
TypeName("compressible::alphatPhaseChangeWallFunction")
Runtime type information.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Namespace for OpenFOAM.
bool compressible
Definition: pEqn.H:30