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::compressible::RASModels::omegaWallFunctionFvPatchScalarField
29 Replaces functionality in wallFunctionsI.H
32 omegaWallFunctionFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef compressibleOmegaWallFunctionFvPatchScalarField_H
37 #define compressibleOmegaWallFunctionFvPatchScalarField_H
39 #include "fixedInternalValueFvPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace compressible
50 /*---------------------------------------------------------------------------*\
51 Class omegaWallFunctionFvPatchScalarField Declaration
52 \*---------------------------------------------------------------------------*/
54 class omegaWallFunctionFvPatchScalarField
56 public fixedInternalValueFvPatchField<scalar>
60 //- Name of velocity field
63 //- Name of density field
66 //- Name of turbulence kinetic energy field
69 //- Name of turbulence generation field
72 //- Name of laminar viscosity field
75 //- Name of turbulent viscosity field
81 //- Von Karman constant
88 // Private member functions
90 //- Check the type of the patch
96 //- Runtime type information
97 TypeName("compressible::omegaWallFunction");
102 //- Construct from patch and internal field
103 omegaWallFunctionFvPatchScalarField
106 const DimensionedField<scalar, volMesh>&
109 //- Construct from patch, internal field and dictionary
110 omegaWallFunctionFvPatchScalarField
113 const DimensionedField<scalar, volMesh>&,
117 //- Construct by mapping given
118 // omegaWallFunctionFvPatchScalarField
120 omegaWallFunctionFvPatchScalarField
122 const omegaWallFunctionFvPatchScalarField&,
124 const DimensionedField<scalar, volMesh>&,
125 const fvPatchFieldMapper&
128 //- Construct as copy
129 omegaWallFunctionFvPatchScalarField
131 const omegaWallFunctionFvPatchScalarField&
134 //- Construct and return a clone
135 virtual tmp<fvPatchScalarField> clone() const
137 return tmp<fvPatchScalarField>
139 new omegaWallFunctionFvPatchScalarField(*this)
143 //- Construct as copy setting internal field reference
144 omegaWallFunctionFvPatchScalarField
146 const omegaWallFunctionFvPatchScalarField&,
147 const DimensionedField<scalar, volMesh>&
150 //- Construct and return a clone setting internal field reference
151 virtual tmp<fvPatchScalarField> clone
153 const DimensionedField<scalar, volMesh>& iF
156 return tmp<fvPatchScalarField>
158 new omegaWallFunctionFvPatchScalarField(*this, iF)
165 // Evaluation functions
167 //- Update the coefficients associated with the patch field
168 virtual void updateCoeffs();
174 void write(Ostream&) const;
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
180 } // End namespace RASModels
181 } // End namespace compressible
182 } // End namespace Foam
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 // ************************************************************************* //