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 alphaSgsWallFunctionFvPatchScalarField
28 Boundary condition for thermal diffusivity when using wall functions
29 - replicates OpenFOAM v1.5 (and earlier) behaviour
32 alphaSgsWallFunctionFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef alphaSgsWallFunctionFvPatchScalarField_H
37 #define alphaSgsWallFunctionFvPatchScalarField_H
39 #include "fixedValueFvPatchFields.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace compressible
50 /*---------------------------------------------------------------------------*\
51 Class alphaSgsWallFunctionFvPatchScalarField Declaration
52 \*---------------------------------------------------------------------------*/
54 class alphaSgsWallFunctionFvPatchScalarField
56 public fixedValueFvPatchScalarField
60 //- Turbulent Prandtl number
64 // Private Member Functions
66 //- Check the type of the patch
72 //- Runtime type information
73 TypeName("alphaSgsWallFunction");
78 //- Construct from patch and internal field
79 alphaSgsWallFunctionFvPatchScalarField
82 const DimensionedField<scalar, volMesh>&
85 //- Construct from patch, internal field and dictionary
86 alphaSgsWallFunctionFvPatchScalarField
89 const DimensionedField<scalar, volMesh>&,
93 //- Construct by mapping given alphaSgsWallFunctionFvPatchScalarField
95 alphaSgsWallFunctionFvPatchScalarField
97 const alphaSgsWallFunctionFvPatchScalarField&,
99 const DimensionedField<scalar, volMesh>&,
100 const fvPatchFieldMapper&
103 //- Construct as copy
104 alphaSgsWallFunctionFvPatchScalarField
106 const alphaSgsWallFunctionFvPatchScalarField&
109 //- Construct and return a clone
110 virtual tmp<fvPatchScalarField> clone() const
112 return tmp<fvPatchScalarField>
114 new alphaSgsWallFunctionFvPatchScalarField(*this)
118 //- Construct as copy setting internal field reference
119 alphaSgsWallFunctionFvPatchScalarField
121 const alphaSgsWallFunctionFvPatchScalarField&,
122 const DimensionedField<scalar, volMesh>&
125 //- Construct and return a clone setting internal field reference
126 virtual tmp<fvPatchScalarField> clone
128 const DimensionedField<scalar, volMesh>& iF
131 return tmp<fvPatchScalarField>
133 new alphaSgsWallFunctionFvPatchScalarField(*this, iF)
140 // Evaluation functions
142 //- Evaluate the patchField
143 virtual void evaluate
145 const Pstream::commsTypes commsType=Pstream::Pstream::blocking
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 } // End namespace LESModels
153 } // End namespace compressible
154 } // End namespace Foam
156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 // ************************************************************************* //