FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

backwardsCompatibilityWallFunctions.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 2008-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::incompressible
00026 
00027 Description
00028     Auto creation of fields to provide backwards compatibility with
00029     runtime selectable wall functions
00030 
00031 SourceFiles
00032     backwardsCompatibilityWallFunctions.C
00033     backwardsCompatibilityWallFunctionsTemplates.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef backwardsCompatibilityWallFunctions_H
00038 #define backwardsCompatibilityWallFunctions_H
00039 
00040 #include <finiteVolume/fvMesh.H>
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 namespace incompressible
00047 {
00048     //- nut
00049     tmp<volScalarField> autoCreateNut
00050     (
00051         const word& fieldName,
00052         const fvMesh& mesh
00053     );
00054 
00055     //- nut for Low-Reynolds number models
00056     tmp<volScalarField> autoCreateLowReNut
00057     (
00058         const word& fieldName,
00059         const fvMesh& mesh
00060     );
00061 
00062     //- epsilon
00063     tmp<volScalarField> autoCreateEpsilon
00064     (
00065         const word& fieldName,
00066         const fvMesh& mesh
00067     );
00068 
00069     //- omega
00070     tmp<volScalarField> autoCreateOmega
00071     (
00072         const word& fieldName,
00073         const fvMesh& mesh
00074     );
00075 
00076     //- k
00077     tmp<volScalarField> autoCreateK
00078     (
00079         const word& fieldName,
00080         const fvMesh& mesh
00081     );
00082 
00083     //- Q
00084     tmp<volScalarField> autoCreateQ
00085     (
00086         const word& fieldName,
00087         const fvMesh& mesh
00088     );
00089 
00090     //- R
00091     tmp<volSymmTensorField> autoCreateR
00092     (
00093         const word& fieldName,
00094         const fvMesh& mesh
00095     );
00096 
00097     //- Helper function to create the new field
00098     template<class Type, class PatchType>
00099     tmp<GeometricField<Type, fvPatchField, volMesh> >
00100     autoCreateWallFunctionField
00101     (
00102         const word& fieldName,
00103         const fvMesh& mesh
00104     );
00105 
00106 
00107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00108 
00109 } // End namespace incompressible
00110 } // End namespace Foam
00111 
00112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00113 
00114 #ifdef NoRepository
00115 #   include "backwardsCompatibilityWallFunctionsTemplates.C"
00116 #endif
00117 
00118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00119 
00120 #endif
00121 
00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines