1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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::alphatFilmWallFunctionFvPatchScalarField
28 Turbulent thermal diffusivity boundary conditions for use with surface
32 alphatFilmWallFunctionFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef compressibleMutRoughWallFunctionFvPatchScalarField_H
37 #define compressibleMutRoughWallFunctionFvPatchScalarField_H
39 #include "fixedValueFvPatchFields.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace compressible
50 /*---------------------------------------------------------------------------*\
51 Class alphatFilmWallFunctionFvPatchScalarField Declaration
52 \*---------------------------------------------------------------------------*/
54 class alphatFilmWallFunctionFvPatchScalarField
56 public fixedValueFvPatchScalarField
62 //- B Coefficient (default = 5.5)
65 //- y+ value for laminar -> turbulent transition (default = 11.05)
68 //- Turbulent Cmu coefficient (default = 0.09)
71 //- Von-Karman constant (default = 0.41)
74 //- Turbulent Prandtl number (default = 0.85)
80 //- Runtime type information
81 TypeName("alphatFilmWallFunction");
86 //- Construct from patch and internal field
87 alphatFilmWallFunctionFvPatchScalarField
90 const DimensionedField<scalar, volMesh>&
93 //- Construct from patch, internal field and dictionary
94 alphatFilmWallFunctionFvPatchScalarField
97 const DimensionedField<scalar, volMesh>&,
101 //- Construct by mapping given
102 // alphatFilmWallFunctionFvPatchScalarField
104 alphatFilmWallFunctionFvPatchScalarField
106 const alphatFilmWallFunctionFvPatchScalarField&,
108 const DimensionedField<scalar, volMesh>&,
109 const fvPatchFieldMapper&
112 //- Construct as copy
113 alphatFilmWallFunctionFvPatchScalarField
115 const alphatFilmWallFunctionFvPatchScalarField&
118 //- Construct and return a clone
119 virtual tmp<fvPatchScalarField> clone() const
121 return tmp<fvPatchScalarField>
123 new alphatFilmWallFunctionFvPatchScalarField(*this)
127 //- Construct as copy setting internal field reference
128 alphatFilmWallFunctionFvPatchScalarField
130 const alphatFilmWallFunctionFvPatchScalarField&,
131 const DimensionedField<scalar, volMesh>&
134 //- Construct and return a clone setting internal field reference
135 virtual tmp<fvPatchScalarField> clone
137 const DimensionedField<scalar, volMesh>& iF
140 return tmp<fvPatchScalarField>
142 new alphatFilmWallFunctionFvPatchScalarField(*this, iF)
149 // Evaluation functions
151 //- Update the coefficients associated with the patch field
152 virtual void updateCoeffs();
158 virtual void write(Ostream&) const;
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 } // End namespace RASModels
165 } // End namespace compressible
166 } // End namespace Foam
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172 // ************************************************************************* //