1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::wallHeatTransferFvPatchScalarField
29 Enthalpy boundary conditions for wall heat transfer
32 wallHeatTransferFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef wallHeatTransferFvPatchScalarField_H
37 #define wallHeatTransferFvPatchScalarField_H
39 #include "mixedFvPatchFields.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class wallHeatTransferFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
50 class wallHeatTransferFvPatchScalarField
52 public mixedFvPatchScalarField
60 scalarField alphaWall_;
65 //- Runtime type information
66 TypeName("wallHeatTransfer");
71 //- Construct from patch and internal field
72 wallHeatTransferFvPatchScalarField
75 const DimensionedField<scalar, volMesh>&
78 //- Construct from patch, internal field and dictionary
79 wallHeatTransferFvPatchScalarField
82 const DimensionedField<scalar, volMesh>&,
86 //- Construct by mapping given wallHeatTransferFvPatchScalarField
88 wallHeatTransferFvPatchScalarField
90 const wallHeatTransferFvPatchScalarField&,
92 const DimensionedField<scalar, volMesh>&,
93 const fvPatchFieldMapper&
97 wallHeatTransferFvPatchScalarField
99 const wallHeatTransferFvPatchScalarField&
102 //- Construct and return a clone
103 virtual tmp<fvPatchScalarField> clone() const
105 return tmp<fvPatchScalarField>
107 new wallHeatTransferFvPatchScalarField(*this)
111 //- Construct as copy setting internal field reference
112 wallHeatTransferFvPatchScalarField
114 const wallHeatTransferFvPatchScalarField&,
115 const DimensionedField<scalar, volMesh>&
118 //- Construct and return a clone setting internal field reference
119 virtual tmp<fvPatchScalarField> clone
121 const DimensionedField<scalar, volMesh>& iF
124 return tmp<fvPatchScalarField>
126 new wallHeatTransferFvPatchScalarField(*this, iF)
136 const scalarField& Tinf() const
141 //- Return reference to Tinf to allow adjustment
148 const scalarField& alphaWall() const
153 //- Return reference to alphaWall to allow adjustment
154 scalarField& alphaWall()
162 //- Map (and resize as needed) from self given a mapping object
165 const fvPatchFieldMapper&
168 //- Reverse map the given fvPatchField onto this fvPatchField
171 const fvPatchScalarField&,
176 // Evaluation functions
178 //- Update the coefficients associated with the patch field
179 virtual void updateCoeffs();
183 virtual void write(Ostream&) const;
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 } // End namespace Foam
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
195 // ************************************************************************* //