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::
26 mutkFilmWallFunctionFvPatchScalarField
29 Wall function boundary condition for use with surface film models.
32 mutkFilmWallFunctionFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef compressibleMutSpalartAllmarasWallFunctionFvPatchScalarField_H
37 #define compressibleMutSpalartAllmarasWallFunctionFvPatchScalarField_H
39 #include "mutkWallFunctionFvPatchScalarField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace compressible
50 /*---------------------------------------------------------------------------*\
51 Class mutkFilmWallFunctionFvPatchScalarField Declaration
52 \*---------------------------------------------------------------------------*/
54 class mutkFilmWallFunctionFvPatchScalarField
56 public mutkWallFunctionFvPatchScalarField
62 //- B Coefficient (default = 5.5)
65 //- y+ value for laminar -> turbulent transition (default = 11.05)
69 // Protected member functions
71 //- Calculate the turbulence viscosity
72 virtual tmp<scalarField> calcMut() const;
74 //- Calculate the friction velocity
75 virtual tmp<scalarField> calcUTau(const scalarField& magGradU) const;
80 //- Runtime type information
81 TypeName("mutkFilmWallFunction");
86 //- Construct from patch and internal field
87 mutkFilmWallFunctionFvPatchScalarField
90 const DimensionedField<scalar, volMesh>&
93 //- Construct from patch, internal field and dictionary
94 mutkFilmWallFunctionFvPatchScalarField
97 const DimensionedField<scalar, volMesh>&,
101 //- Construct by mapping given
102 // mutkFilmWallFunctionFvPatchScalarField
104 mutkFilmWallFunctionFvPatchScalarField
106 const mutkFilmWallFunctionFvPatchScalarField&,
108 const DimensionedField<scalar, volMesh>&,
109 const fvPatchFieldMapper&
112 //- Construct as copy
113 mutkFilmWallFunctionFvPatchScalarField
115 const mutkFilmWallFunctionFvPatchScalarField&
118 //- Construct and return a clone
119 virtual tmp<fvPatchScalarField> clone() const
121 return tmp<fvPatchScalarField>
123 new mutkFilmWallFunctionFvPatchScalarField(*this)
127 //- Construct as copy setting internal field reference
128 mutkFilmWallFunctionFvPatchScalarField
130 const mutkFilmWallFunctionFvPatchScalarField&,
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 mutkFilmWallFunctionFvPatchScalarField(*this, iF)
149 // Evaluation functions
151 //- Calculate and return the yPlus at the boundary
152 virtual tmp<scalarField> yPlus() const;
158 virtual void write(Ostream& os) const;
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 } // End namespace RASModels
165 } // End namespace compressible
166 } // End namespace Foam
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172 // ************************************************************************* //