1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-2009 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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::incompressible::RASModels::omegaWallFunctionFvPatchScalarField
29 Provides a wall function boundary condition/constraint on omega
33 omega = sqrt(omega_vis^2 + omega_log^2)
36 omega_vis = omega in viscous region
37 omega_log = omega in logarithmic region
39 Model described by Eq.(15) of:
42 "Elements of Industrial Heat Transfer Prediction"
43 16th Brazilian Congress of Mechanical Engineering (COBEM),
48 omegaWallFunctionFvPatchScalarField.C
50 \*---------------------------------------------------------------------------*/
52 #ifndef omegaWallFunctionFvPatchScalarField_H
53 #define omegaWallFunctionFvPatchScalarField_H
55 #include "fixedInternalValueFvPatchField.H"
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 namespace incompressible
66 /*---------------------------------------------------------------------------*\
67 Class omegaWallFunctionFvPatchScalarField Declaration
68 \*---------------------------------------------------------------------------*/
70 class omegaWallFunctionFvPatchScalarField
72 public fixedInternalValueFvPatchField<scalar>
76 //- Name of velocity field
79 //- Name of turbulence kinetic energy field
82 //- Name of turbulence generation field
85 //- Name of laminar viscosity field
88 //- Name of turbulent viscosity field
94 //- Von Karman constant
100 //- beta1 coefficient
104 // Private member functions
106 //- Check the type of the patch
112 //- Runtime type information
113 TypeName("omegaWallFunction");
118 //- Construct from patch and internal field
119 omegaWallFunctionFvPatchScalarField
122 const DimensionedField<scalar, volMesh>&
125 //- Construct from patch, internal field and dictionary
126 omegaWallFunctionFvPatchScalarField
129 const DimensionedField<scalar, volMesh>&,
133 //- Construct by mapping given
134 // omegaWallFunctionFvPatchScalarField
136 omegaWallFunctionFvPatchScalarField
138 const omegaWallFunctionFvPatchScalarField&,
140 const DimensionedField<scalar, volMesh>&,
141 const fvPatchFieldMapper&
144 //- Construct as copy
145 omegaWallFunctionFvPatchScalarField
147 const omegaWallFunctionFvPatchScalarField&
150 //- Construct and return a clone
151 virtual tmp<fvPatchScalarField> clone() const
153 return tmp<fvPatchScalarField>
155 new omegaWallFunctionFvPatchScalarField(*this)
159 //- Construct as copy setting internal field reference
160 omegaWallFunctionFvPatchScalarField
162 const omegaWallFunctionFvPatchScalarField&,
163 const DimensionedField<scalar, volMesh>&
166 //- Construct and return a clone setting internal field reference
167 virtual tmp<fvPatchScalarField> clone
169 const DimensionedField<scalar, volMesh>& iF
172 return tmp<fvPatchScalarField>
174 new omegaWallFunctionFvPatchScalarField(*this, iF)
181 // Evaluation functions
183 //- Update the coefficients associated with the patch field
184 virtual void updateCoeffs();
190 void write(Ostream&) const;
194 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
196 } // End namespace RASModels
197 } // End namespace incompressible
198 } // End namespace Foam
200 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
204 // ************************************************************************* //