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::incompressible
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 incompressible
00048 {
00049     //- nut
00050     tmp<volScalarField> autoCreateNut
00051     (
00052         const word& fieldName,
00053         const fvMesh& mesh
00054     );
00055 
00056     //- epsilon
00057     tmp<volScalarField> autoCreateEpsilon
00058     (
00059         const word& fieldName,
00060         const fvMesh& mesh
00061     );
00062 
00063     //- omega
00064     tmp<volScalarField> autoCreateOmega
00065     (
00066         const word& fieldName,
00067         const fvMesh& mesh
00068     );
00069 
00070     //- k
00071     tmp<volScalarField> autoCreateK
00072     (
00073         const word& fieldName,
00074         const fvMesh& mesh
00075     );
00076 
00077     //- Q
00078     tmp<volScalarField> autoCreateQ
00079     (
00080         const word& fieldName,
00081         const fvMesh& mesh
00082     );
00083 
00084     //- R
00085     tmp<volSymmTensorField> autoCreateR
00086     (
00087         const word& fieldName,
00088         const fvMesh& mesh
00089     );
00090 
00091     //- Helper function to create the new field
00092     template<class Type, class PatchType>
00093     tmp<GeometricField<Type, fvPatchField, volMesh> >
00094     autoCreateWallFunctionField
00095     (
00096         const word& fieldName,
00097         const fvMesh& mesh
00098     );
00099 
00100 
00101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00102 
00103 } // End namespace incompressible
00104 } // End namespace Foam
00105 
00106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00107 
00108 #ifdef NoRepository
00109 #   include "backwardsCompatibilityWallFunctionsTemplates.C"
00110 #endif
00111 
00112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00113 
00114 #endif
00115 
00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Copyright © 2000-2009 OpenCFD Ltd