1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Calculate the mesh motion flux and convert fluxes from absolute to relative
35 \*---------------------------------------------------------------------------*/
41 #include "volFieldsFwd.H"
42 #include "surfaceFieldsFwd.H"
43 #include "dimensionedTypes.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Namespace fvc functions Declaration
52 \*---------------------------------------------------------------------------*/
56 tmp<surfaceScalarField> meshPhi
58 const volVectorField& U
61 tmp<surfaceScalarField> meshPhi
63 const dimensionedScalar& rho,
64 const volVectorField& U
67 tmp<surfaceScalarField> meshPhi
69 const volScalarField& rho,
70 const volVectorField& U
74 //- Make the given flux relative
77 surfaceScalarField& phi,
78 const volVectorField& U
81 //- Make the given flux relative
84 surfaceScalarField& phi,
85 const dimensionedScalar& rho,
86 const volVectorField& U
89 //- Make the given flux relative
92 surfaceScalarField& phi,
93 const volScalarField& rho,
94 const volVectorField& U
98 //- Make the given flux absolute
101 surfaceScalarField& phi,
102 const volVectorField& U
105 //- Make the given flux absolute
108 surfaceScalarField& phi,
109 const dimensionedScalar& rho,
110 const volVectorField& U
113 //- Make the given flux absolute
116 surfaceScalarField& phi,
117 const volScalarField& rho,
118 const volVectorField& U
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 } // End namespace Foam
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 // ************************************************************************* //