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

fvcMeshPhi.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) 1991-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 InNamespace
00025     Foam::fvc
00026 
00027 Description
00028     Calculate the mesh motion flux and convert fluxes from absolute to relative
00029     and back.
00030 
00031 SourceFiles
00032     fvcMeshPhi.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 
00037 #ifndef fvcMeshPhi_H
00038 #define fvcMeshPhi_H
00039 
00040 #include <finiteVolume/volFieldsFwd.H>
00041 #include <finiteVolume/surfaceFieldsFwd.H>
00042 #include <OpenFOAM/dimensionedTypes.H>
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 namespace Foam
00047 {
00048 
00049 /*---------------------------------------------------------------------------*\
00050                      Namespace fvc functions Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 namespace fvc
00054 {
00055     tmp<surfaceScalarField> meshPhi
00056     (
00057         const volVectorField& U
00058     );
00059 
00060     tmp<surfaceScalarField> meshPhi
00061     (
00062         const dimensionedScalar& rho,
00063         const volVectorField& U
00064     );
00065 
00066     tmp<surfaceScalarField> meshPhi
00067     (
00068         const volScalarField& rho,
00069         const volVectorField& U
00070     );
00071 
00072 
00073     //- Make the given flux relative
00074     void makeRelative
00075     (
00076         surfaceScalarField& phi,
00077         const volVectorField& U
00078     );
00079 
00080     //- Make the given flux relative
00081     void makeRelative
00082     (
00083         surfaceScalarField& phi,
00084         const dimensionedScalar& rho,
00085         const volVectorField& U
00086     );
00087 
00088     //- Make the given flux relative
00089     void makeRelative
00090     (
00091         surfaceScalarField& phi,
00092         const volScalarField& rho,
00093         const volVectorField& U
00094     );
00095 
00096 
00097     //- Make the given flux absolute
00098     void makeAbsolute
00099     (
00100         surfaceScalarField& phi,
00101         const volVectorField& U
00102     );
00103 
00104     //- Make the given flux absolute
00105     void makeAbsolute
00106     (
00107         surfaceScalarField& phi,
00108         const dimensionedScalar& rho,
00109         const volVectorField& U
00110     );
00111 
00112     //- Make the given flux absolute
00113     void makeAbsolute
00114     (
00115         surfaceScalarField& phi,
00116         const volScalarField& rho,
00117         const volVectorField& U
00118     );
00119 }
00120 
00121 
00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00123 
00124 } // End namespace Foam
00125 
00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00127 
00128 #endif
00129 
00130 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines