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 Replaces functionality in wallFunctionsI.H
32 omegaWallFunctionFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef omegaWallFunctionFvPatchScalarField_H
37 #define omegaWallFunctionFvPatchScalarField_H
39 #include "fixedInternalValueFvPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace incompressible
50 /*---------------------------------------------------------------------------*\
51 Class omegaWallFunctionFvPatchScalarField Declaration
52 \*---------------------------------------------------------------------------*/
54 class omegaWallFunctionFvPatchScalarField
56 public fixedInternalValueFvPatchField<scalar>
60 //- Name of velocity field
63 //- Name of turbulence kinetic energy field
66 //- Name of turbulence generation field
69 //- Name of laminar viscosity field
72 //- Name of turbulent viscosity field
78 //- Von Karman constant
85 // Private member functions
87 //- Check the type of the patch
93 //- Runtime type information
94 TypeName("omegaWallFunction");
99 //- Construct from patch and internal field
100 omegaWallFunctionFvPatchScalarField
103 const DimensionedField<scalar, volMesh>&
106 //- Construct from patch, internal field and dictionary
107 omegaWallFunctionFvPatchScalarField
110 const DimensionedField<scalar, volMesh>&,
114 //- Construct by mapping given
115 // omegaWallFunctionFvPatchScalarField
117 omegaWallFunctionFvPatchScalarField
119 const omegaWallFunctionFvPatchScalarField&,
121 const DimensionedField<scalar, volMesh>&,
122 const fvPatchFieldMapper&
125 //- Construct as copy
126 omegaWallFunctionFvPatchScalarField
128 const omegaWallFunctionFvPatchScalarField&
131 //- Construct and return a clone
132 virtual tmp<fvPatchScalarField> clone() const
134 return tmp<fvPatchScalarField>
136 new omegaWallFunctionFvPatchScalarField(*this)
140 //- Construct as copy setting internal field reference
141 omegaWallFunctionFvPatchScalarField
143 const omegaWallFunctionFvPatchScalarField&,
144 const DimensionedField<scalar, volMesh>&
147 //- Construct and return a clone setting internal field reference
148 virtual tmp<fvPatchScalarField> clone
150 const DimensionedField<scalar, volMesh>& iF
153 return tmp<fvPatchScalarField>
155 new omegaWallFunctionFvPatchScalarField(*this, iF)
162 // Evaluation functions
164 //- Update the coefficients associated with the patch field
165 virtual void updateCoeffs();
171 void write(Ostream&) const;
175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 } // End namespace RASModels
178 } // End namespace incompressible
179 } // End namespace Foam
181 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 // ************************************************************************* //