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::compressible
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 compressible
00047 {
00048     //- mut
00049     tmp<volScalarField> autoCreateMut
00050     (
00051         const word& fieldName,
00052         const fvMesh& mesh
00053     );
00054 
00055     //- mut for Low-Reynolds number models
00056     tmp<volScalarField> autoCreateLowReMut
00057     (
00058         const word& fieldName,
00059         const fvMesh& mesh
00060     );
00061 
00062     //- alphat
00063     tmp<volScalarField> autoCreateAlphat
00064     (
00065         const word& fieldName,
00066         const fvMesh& mesh
00067     );
00068 
00069     //- epsilon
00070     tmp<volScalarField> autoCreateEpsilon
00071     (
00072         const word& fieldName,
00073         const fvMesh& mesh
00074     );
00075 
00076     //- omega
00077     tmp<volScalarField> autoCreateOmega
00078     (
00079         const word& fieldName,
00080         const fvMesh& mesh
00081     );
00082 
00083     //- k
00084     tmp<volScalarField> autoCreateK
00085     (
00086         const word& fieldName,
00087         const fvMesh& mesh
00088     );
00089 
00090     //- Q
00091     tmp<volScalarField> autoCreateQ
00092     (
00093         const word& fieldName,
00094         const fvMesh& mesh
00095     );
00096 
00097     //- R
00098     tmp<volSymmTensorField> autoCreateR
00099     (
00100         const word& fieldName,
00101         const fvMesh& mesh
00102     );
00103 
00104     //- Helper function to create the new field
00105     template<class Type, class PatchType>
00106     tmp<GeometricField<Type, fvPatchField, volMesh> >
00107     autoCreateWallFunctionField
00108     (
00109         const word& fieldName,
00110         const fvMesh& mesh
00111     );
00112 
00113 
00114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00115 
00116 } // End namespace compressible
00117 } // End namespace Foam
00118 
00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00120 
00121 #ifdef NoRepository
00122 #   include "backwardsCompatibilityWallFunctionsTemplates.C"
00123 #endif
00124 
00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00126 
00127 #endif
00128 
00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines