fvcDdt.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 InNamespace
25  Foam::fvc
26 
27 Description
28  Calculate the first temporal derivative.
29 
30 SourceFiles
31  fvcDdt.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 
36 #ifndef fvcDdt_H
37 #define fvcDdt_H
38 
39 #include "volFieldsFwd.H"
40 #include "surfaceFieldsFwd.H"
41 #include "dimensionedTypes.H"
42 #include "one.H"
43 #include "geometricZeroField.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Namespace fvc functions Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 namespace fvc
55 {
56  template<class Type>
57  tmp<GeometricField<Type, fvPatchField, volMesh>> ddt
58  (
59  const dimensioned<Type>,
60  const fvMesh&
61  );
62 
63  template<class Type>
64  tmp<GeometricField<Type, fvPatchField, volMesh>> ddt
65  (
66  const GeometricField<Type, fvPatchField, volMesh>&
67  );
68 
69  template<class Type>
70  tmp<GeometricField<Type, fvPatchField, volMesh>> ddt
71  (
72  const dimensionedScalar&,
73  const GeometricField<Type, fvPatchField, volMesh>&
74  );
75 
76  template<class Type>
77  tmp<GeometricField<Type, fvPatchField, volMesh>> ddt
78  (
79  const volScalarField&,
80  const GeometricField<Type, fvPatchField, volMesh>&
81  );
82 
83  template<class Type>
84  tmp<GeometricField<Type, fvPatchField, volMesh>> ddt
85  (
86  const volScalarField&,
87  const volScalarField&,
88  const GeometricField<Type, fvPatchField, volMesh>&
89  );
90 
91  template<class Type>
92  tmp<GeometricField<Type, fvPatchField, volMesh>> ddt
93  (
94  const one&,
95  const GeometricField<Type, fvPatchField, volMesh>&
96  );
97 
98  template<class Type>
99  tmp<GeometricField<Type, fvPatchField, volMesh>> ddt
100  (
101  const GeometricField<Type, fvPatchField, volMesh>&,
102  const one&
103  );
104 
105  inline geometricZeroField ddt
106  (
107  const one&,
108  const one&
109  )
110  {
111  return geometricZeroField();
112  }
113 
114  template<class Type>
115  tmp
116  <
118  <
119  typename Foam::flux<Type>::type,
122  >
123  >
124  ddtCorr
125  (
128  );
129 
130  template<class Type>
131  tmp
132  <
134  <
135  typename Foam::flux<Type>::type,
136  fvsPatchField,
138  >
139  >
140  ddtCorr
141  (
143  const GeometricField
144  <
145  typename Foam::flux<Type>::type,
146  fvsPatchField,
148  >& phi
149  );
150 
151  template<class Type>
152  tmp
153  <
155  <
156  typename Foam::flux<Type>::type,
157  fvsPatchField,
159  >
160  >
161  ddtCorr
162  (
163  const volScalarField& rho,
166  );
167 
168  template<class Type>
169  tmp
170  <
172  <
173  typename Foam::flux<Type>::type,
174  fvsPatchField,
176  >
177  >
178  ddtCorr
179  (
180  const volScalarField& rho,
182  const GeometricField
183  <
184  typename Foam::flux<Type>::type,
185  fvsPatchField,
187  >& phi
188  );
189 }
190 
191 
192 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 
194 } // End namespace Foam
195 
196 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
197 
198 #ifdef NoRepository
199  #include "fvcDdt.C"
200 #endif
201 
202 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
203 
204 #endif
205 
206 // ************************************************************************* //
surfaceScalarField & phi
U
Definition: pEqn.H:83
Mesh data needed to do the Finite Volume discretisation.
Definition: surfaceMesh.H:47
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
Definition: fvcDdt.C:155
Uf
Definition: pEqn.H:67
Generic GeometricField class.
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A class for managing temporary objects.
Definition: PtrList.H:54
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
typeOfRank< typename pTraits< vector >::cmptType, direction(pTraits< vector >::rank)+direction(pTraits< Type >::rank)-2 >::type type
Definition: products.H:115
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Definition: fvsPatchField.H:65
Namespace for OpenFOAM.
A class representing the concept of 1 (scalar(1.0)) used to avoid unnecessary manipulations for objec...
Definition: one.H:50