1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-2010 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/>.
28 Auto creation of fields to provide backwards compatibility with
29 runtime selectable wall functions
32 backwardsCompatibilityWallFunctions.C
33 backwardsCompatibilityWallFunctionsTemplates.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef backwardsCompatibilityWallFunctions_H
38 #define backwardsCompatibilityWallFunctions_H
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace incompressible
49 tmp<volScalarField> autoCreateNut
51 const word& fieldName,
55 //- nut for Low-Reynolds number models
56 tmp<volScalarField> autoCreateLowReNut
58 const word& fieldName,
63 tmp<volScalarField> autoCreateEpsilon
65 const word& fieldName,
70 tmp<volScalarField> autoCreateOmega
72 const word& fieldName,
77 tmp<volScalarField> autoCreateK
79 const word& fieldName,
84 tmp<volScalarField> autoCreateQ
86 const word& fieldName,
91 tmp<volSymmTensorField> autoCreateR
93 const word& fieldName,
97 //- Helper function to create the new field
98 template<class Type, class PatchType>
99 tmp<GeometricField<Type, fvPatchField, volMesh> >
100 autoCreateWallFunctionField
102 const word& fieldName,
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 } // End namespace incompressible
110 } // End namespace Foam
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 # include "backwardsCompatibilityWallFunctionsTemplates.C"
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //