fvcDiv.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 | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2016 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26InNamespace
27 Foam::fvc
28
29Description
30 Calculate the divergence of the given field.
31
32SourceFiles
33 fvcDiv.C
34
35\*---------------------------------------------------------------------------*/
36
37
38#ifndef fvcDiv_H
39#define fvcDiv_H
40
41#include "volFieldsFwd.H"
42#include "surfaceFieldsFwd.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48
49/*---------------------------------------------------------------------------*\
50 Namespace fvc functions Declaration
51\*---------------------------------------------------------------------------*/
52
53namespace fvc
54{
55 template<class Type>
56 tmp<GeometricField<Type, fvPatchField, volMesh>> div
57 (
58 const GeometricField<Type, fvsPatchField, surfaceMesh>&
59 );
60
61 template<class Type>
62 tmp<GeometricField<Type, fvPatchField, volMesh>> div
63 (
64 const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>&
65 );
66
67
68 template<class Type>
69 tmp
70 <
71 GeometricField
72 <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
73 > div
74 (
75 const GeometricField<Type, fvPatchField, volMesh>&,
76 const word& name
77 );
78
79 template<class Type>
80 tmp
81 <
82 GeometricField
83 <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
84 > div
85 (
86 const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
87 const word& name
88 );
89
90
91 template<class Type>
92 tmp
93 <
94 GeometricField
95 <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
96 > div
97 (
98 const GeometricField<Type, fvPatchField, volMesh>&
99 );
100
101 template<class Type>
102 tmp
103 <
104 GeometricField
105 <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
106 > div
107 (
108 const tmp<GeometricField<Type, fvPatchField, volMesh>>&
109 );
110
111
112 template<class Type>
113 tmp<GeometricField<Type, fvPatchField, volMesh>> div
114 (
115 const surfaceScalarField&,
116 const GeometricField<Type, fvPatchField, volMesh>&,
117 const word& name
118 );
119
120 template<class Type>
121 tmp<GeometricField<Type, fvPatchField, volMesh>> div
122 (
123 const tmp<surfaceScalarField>&,
124 const GeometricField<Type, fvPatchField, volMesh>&,
125 const word& name
126 );
127
128 template<class Type>
129 tmp<GeometricField<Type, fvPatchField, volMesh>> div
130 (
131 const surfaceScalarField&,
132 const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
133 const word& name
134 );
135
136 template<class Type>
137 tmp<GeometricField<Type, fvPatchField, volMesh>> div
138 (
139 const tmp<surfaceScalarField>&,
140 const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
141 const word& name
142 );
143
144
145 template<class Type>
146 tmp<GeometricField<Type, fvPatchField, volMesh>> div
147 (
148 const surfaceScalarField&,
149 const GeometricField<Type, fvPatchField, volMesh>&
150 );
151
152 template<class Type>
153 tmp<GeometricField<Type, fvPatchField, volMesh>> div
154 (
155 const tmp<surfaceScalarField>&,
156 const GeometricField<Type, fvPatchField, volMesh>&
157 );
158
159 template<class Type>
160 tmp<GeometricField<Type, fvPatchField, volMesh>> div
161 (
162 const surfaceScalarField&,
163 const tmp<GeometricField<Type, fvPatchField, volMesh>>&
164 );
165
166 template<class Type>
167 tmp<GeometricField<Type, fvPatchField, volMesh>> div
168 (
169 const tmp<surfaceScalarField>&,
170 const tmp<GeometricField<Type, fvPatchField, volMesh>>&
171 );
172}
173
174
175// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176
177} // End namespace Foam
178
179// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
180
181#ifdef NoRepository
182 #include "fvcDiv.C"
183#endif
184
185// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186
187#endif
188
189// ************************************************************************* //
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:49
Namespace for OpenFOAM.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59