OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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-2009 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::compressible
00027 
00028 Description
00029     Auto creation of fields to provide backwards compatibility with
00030     runtime selectable wall functions
00031 
00032 SourceFiles
00033     backwardsCompatibilityWallFunctions.C
00034     backwardsCompatibilityWallFunctionsTemplates.C
00035 
00036 \*---------------------------------------------------------------------------*/
00037 
00038 #ifndef backwardsCompatibilityWallFunctions_H
00039 #define backwardsCompatibilityWallFunctions_H
00040 
00041 #include "fvMesh.H"
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 namespace compressible
00048 {
00049     //- mut
00050     tmp<volScalarField> autoCreateMut
00051     (
00052         const word& fieldName,
00053         const fvMesh& mesh
00054     );
00055 
00056     //- alphat
00057     tmp<volScalarField> autoCreateAlphat
00058     (
00059         const word& fieldName,
00060         const fvMesh& mesh
00061     );
00062 
00063     //- epsilon
00064     tmp<volScalarField> autoCreateEpsilon
00065     (
00066         const word& fieldName,
00067         const fvMesh& mesh
00068     );
00069 
00070     //- omega
00071     tmp<volScalarField> autoCreateOmega
00072     (
00073         const word& fieldName,
00074         const fvMesh& mesh
00075     );
00076 
00077     //- k
00078     tmp<volScalarField> autoCreateK
00079     (
00080         const word& fieldName,
00081         const fvMesh& mesh
00082     );
00083 
00084     //- Q
00085     tmp<volScalarField> autoCreateQ
00086     (
00087         const word& fieldName,
00088         const fvMesh& mesh
00089     );
00090 
00091     //- R
00092     tmp<volSymmTensorField> autoCreateR
00093     (
00094         const word& fieldName,
00095         const fvMesh& mesh
00096     );
00097 
00098     //- Helper function to create the new field
00099     template<class Type, class PatchType>
00100     tmp<GeometricField<Type, fvPatchField, volMesh> >
00101     autoCreateWallFunctionField
00102     (
00103         const word& fieldName,
00104         const fvMesh& mesh
00105     );
00106 
00107 
00108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00109 
00110 } // End namespace compressible
00111 } // End namespace Foam
00112 
00113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00114 
00115 #ifdef NoRepository
00116 #   include "backwardsCompatibilityWallFunctionsTemplates.C"
00117 #endif
00118 
00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00120 
00121 #endif
00122 
00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Copyright © 2000-2009 OpenCFD Ltd