1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2010-2011 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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::compressible::RASModels::htcConvFvPatchScalarField
28 Convective heat transfer boundary condition
31 htcConvFvPatchScalarField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef compressibleMutRoughWallFunctionFvPatchScalarField_H
36 #define compressibleMutRoughWallFunctionFvPatchScalarField_H
38 #include "fixedValueFvPatchFields.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace compressible
49 /*---------------------------------------------------------------------------*\
50 Class htcConvFvPatchScalarField Declaration
51 \*---------------------------------------------------------------------------*/
53 class htcConvFvPatchScalarField
55 public fixedValueFvPatchScalarField
61 //- L Length scale [m]
67 //- Runtime type information
68 TypeName("htcConvection");
73 //- Construct from patch and internal field
74 htcConvFvPatchScalarField
77 const DimensionedField<scalar, volMesh>&
80 //- Construct from patch, internal field and dictionary
81 htcConvFvPatchScalarField
84 const DimensionedField<scalar, volMesh>&,
88 //- Construct by mapping given
89 // htcConvFvPatchScalarField
91 htcConvFvPatchScalarField
93 const htcConvFvPatchScalarField&,
95 const DimensionedField<scalar, volMesh>&,
96 const fvPatchFieldMapper&
100 htcConvFvPatchScalarField
102 const htcConvFvPatchScalarField&
105 //- Construct and return a clone
106 virtual tmp<fvPatchScalarField> clone() const
108 return tmp<fvPatchScalarField>
110 new htcConvFvPatchScalarField(*this)
114 //- Construct as copy setting internal field reference
115 htcConvFvPatchScalarField
117 const htcConvFvPatchScalarField&,
118 const DimensionedField<scalar, volMesh>&
121 //- Construct and return a clone setting internal field reference
122 virtual tmp<fvPatchScalarField> clone
124 const DimensionedField<scalar, volMesh>& iF
127 return tmp<fvPatchScalarField>
129 new htcConvFvPatchScalarField(*this, iF)
136 // Evaluation functions
138 //- Update the coefficients associated with the patch field
139 virtual void updateCoeffs();
145 virtual void write(Ostream&) const;
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 } // End namespace RASModels
152 } // End namespace compressible
153 } // End namespace Foam
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 // ************************************************************************* //