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 alphaSgsJayatillekeWallFunctionFvPatchScalarField
28 Thermal wall function for turbulent thermal diffusivity based on the
29 Jayatilleke thermal wall function
32 alphaSgsJayatillekeWallFunctionFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef alphaSgsJayatillekeWallFunctionFvPatchScalarField_H
37 #define alphaSgsJayatillekeWallFunctionFvPatchScalarField_H
39 #include "fixedValueFvPatchFields.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace compressible
50 /*---------------------------------------------------------------------------*\
51 Class alphaSgsJayatillekeWallFunctionFvPatchScalarField Declaration
52 \*---------------------------------------------------------------------------*/
54 class alphaSgsJayatillekeWallFunctionFvPatchScalarField
56 public fixedValueFvPatchScalarField
60 //- Turbulent Prandtl number
63 //- Von Karman constant
69 //- Name of (sensible/total) enthalpy field
73 // Solution parameters
75 static scalar maxExp_;
76 static scalar tolerance_;
77 static label maxIters_;
80 // Private Member Functions
82 //- Check the type of the patch
86 scalar Psmooth(const scalar Prat) const;
88 //- Calculate y+ at the edge of the thermal laminar sublayer
98 //- Runtime type information
99 TypeName("alphaSgsJayatillekeWallFunction");
104 //- Construct from patch and internal field
105 alphaSgsJayatillekeWallFunctionFvPatchScalarField
108 const DimensionedField<scalar, volMesh>&
111 //- Construct from patch, internal field and dictionary
112 alphaSgsJayatillekeWallFunctionFvPatchScalarField
115 const DimensionedField<scalar, volMesh>&,
119 //- Construct by mapping given an
120 // alphaSgsJayatillekeWallFunctionFvPatchScalarField
122 alphaSgsJayatillekeWallFunctionFvPatchScalarField
124 const alphaSgsJayatillekeWallFunctionFvPatchScalarField&,
126 const DimensionedField<scalar, volMesh>&,
127 const fvPatchFieldMapper&
130 //- Construct as copy
131 alphaSgsJayatillekeWallFunctionFvPatchScalarField
133 const alphaSgsJayatillekeWallFunctionFvPatchScalarField&
136 //- Construct and return a clone
137 virtual tmp<fvPatchScalarField> clone() const
139 return tmp<fvPatchScalarField>
141 new alphaSgsJayatillekeWallFunctionFvPatchScalarField(*this)
145 //- Construct as copy setting internal field reference
146 alphaSgsJayatillekeWallFunctionFvPatchScalarField
148 const alphaSgsJayatillekeWallFunctionFvPatchScalarField&,
149 const DimensionedField<scalar, volMesh>&
152 //- Construct and return a clone setting internal field reference
153 virtual tmp<fvPatchScalarField> clone
155 const DimensionedField<scalar, volMesh>& iF
158 return tmp<fvPatchScalarField>
160 new alphaSgsJayatillekeWallFunctionFvPatchScalarField
171 // Evaluation functions
173 //- Evaluate the patchField
174 virtual void evaluate
176 const Pstream::commsTypes commsType=Pstream::Pstream::blocking
183 void write(Ostream&) const;
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 } // End namespace LESModels
190 } // End namespace compressible
191 } // End namespace Foam
193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
197 // ************************************************************************* //