initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / finiteVolume / finiteVolume / fvc / fvcDdt.H
blob2d6cc3b7459371243dcb2219aebe454ee846276e
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 InNamespace
26     Foam::fvc
28 Description
29     Calculate the first temporal derivative.
31 SourceFiles
32     fvcDdt.C
34 \*---------------------------------------------------------------------------*/
37 #ifndef fvcDdt_H
38 #define fvcDdt_H
40 #include "volFieldsFwd.H"
41 #include "surfaceFieldsFwd.H"
42 #include "dimensionedTypes.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace Foam
49 /*---------------------------------------------------------------------------*\
50                      Namespace fvc functions Declaration
51 \*---------------------------------------------------------------------------*/
53 namespace fvc
55     template<class Type>
56     tmp<GeometricField<Type, fvPatchField, volMesh> > ddt
57     (
58         const dimensioned<Type>,
59         const fvMesh&
60     );
62     template<class Type>
63     tmp<GeometricField<Type, fvPatchField, volMesh> > ddt
64     (
65         const GeometricField<Type, fvPatchField, volMesh>&
66     );
68     template<class Type>
69     tmp<GeometricField<Type, fvPatchField, volMesh> > ddt
70     (
71         const dimensionedScalar&,
72         const GeometricField<Type, fvPatchField, volMesh>&
73     );
75     template<class Type>
76     tmp<GeometricField<Type, fvPatchField, volMesh> > ddt
77     (
78         const volScalarField&,
79         const GeometricField<Type, fvPatchField, volMesh>&
80     );
82     template<class Type>
83     tmp
84     <
85         GeometricField
86         <
87             typename Foam::flux<Type>::type,
88             fvsPatchField,
89             surfaceMesh
90         >
91     >
92     ddtPhiCorr
93     (
94         const volScalarField& rA,
95         const GeometricField<Type, fvPatchField, volMesh>& U,
96         const GeometricField
97         <
98             typename Foam::flux<Type>::type,
99             fvsPatchField,
100             surfaceMesh
101         >& phi
102     );
104     template<class Type>
105     tmp
106     <
107         GeometricField
108         <
109             typename Foam::flux<Type>::type,
110             fvsPatchField,
111             surfaceMesh
112         >
113     >
114     ddtPhiCorr
115     (
116         const volScalarField& rA,
117         const volScalarField& rho,
118         const GeometricField<Type, fvPatchField, volMesh>& U,
119         const GeometricField
120         <
121             typename Foam::flux<Type>::type,
122             fvsPatchField,
123             surfaceMesh
124         >& phi
125     );
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 } // End namespace Foam
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 #ifdef NoRepository
136 #   include "fvcDdt.C"
137 #endif
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 #endif
143 // ************************************************************************* //