1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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
25 \*---------------------------------------------------------------------------*/
29 #include "ddtScheme.H"
31 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 tmp<GeometricField<Type, fvPatchField, volMesh> >
47 const dimensioned<Type> dt,
51 return fv::ddtScheme<Type>::New
54 mesh.ddtScheme("ddt(" + dt.name() + ')')
60 tmp<GeometricField<Type, fvPatchField, volMesh> >
63 const GeometricField<Type, fvPatchField, volMesh>& vf
66 return fv::ddtScheme<Type>::New
69 vf.mesh().ddtScheme("ddt(" + vf.name() + ')')
75 tmp<GeometricField<Type, fvPatchField, volMesh> >
78 const dimensionedScalar& rho,
79 const GeometricField<Type, fvPatchField, volMesh>& vf
82 return fv::ddtScheme<Type>::New
85 vf.mesh().ddtScheme("ddt(" + rho.name() + ',' + vf.name() + ')')
91 tmp<GeometricField<Type, fvPatchField, volMesh> >
94 const volScalarField& rho,
95 const GeometricField<Type, fvPatchField, volMesh>& vf
98 return fv::ddtScheme<Type>::New
101 vf.mesh().ddtScheme("ddt(" + rho.name() + ',' + vf.name() + ')')
107 tmp<GeometricField<typename flux<Type>::type, fvsPatchField, surfaceMesh> >
110 const volScalarField& rA,
111 const GeometricField<Type, fvPatchField, volMesh>& U,
114 typename flux<Type>::type,
120 return fv::ddtScheme<Type>::New
123 U.mesh().ddtScheme("ddt(" + U.name() + ')')
124 )().fvcDdtPhiCorr(rA, U, phi);
129 tmp<GeometricField<typename flux<Type>::type, fvsPatchField, surfaceMesh> >
132 const volScalarField& rA,
133 const volScalarField& rho,
134 const GeometricField<Type, fvPatchField, volMesh>& U,
137 typename flux<Type>::type,
143 return fv::ddtScheme<Type>::New
146 U.mesh().ddtScheme("ddt(" + rho.name() + ',' + U.name() + ')')
147 )().fvcDdtPhiCorr(rA, rho, U, phi);
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 } // End namespace fvc
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 } // End namespace Foam
159 // ************************************************************************* //