fvcDiv.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2020 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 divergence of the given field.
29 
30 SourceFiles
31  fvcDiv.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 
36 #ifndef fvcDiv_H
37 #define fvcDiv_H
38 
39 #include "volFieldsFwd.H"
40 #include "surfaceFieldsFwd.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Namespace fvc functions Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 namespace fvc
52 {
53  template<class Type>
54  tmp<GeometricField<Type, fvPatchField, volMesh>> div
55  (
56  const GeometricField<Type, fvsPatchField, surfaceMesh>&
57  );
58 
59  template<class Type>
60  tmp<GeometricField<Type, fvPatchField, volMesh>> div
61  (
62  const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>&
63  );
64 
65 
66  template<class Type>
67  tmp
68  <
69  GeometricField
70  <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
71  > div
72  (
73  const GeometricField<Type, fvPatchField, volMesh>&,
74  const word& name
75  );
76 
77  template<class Type>
78  tmp
79  <
80  GeometricField
81  <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
82  > div
83  (
84  const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
85  const word& name
86  );
87 
88 
89  template<class Type>
90  tmp
91  <
92  GeometricField
93  <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
94  > div
95  (
96  const GeometricField<Type, fvPatchField, volMesh>&
97  );
98 
99  template<class Type>
100  tmp
101  <
102  GeometricField
103  <typename innerProduct<vector, Type>::type, fvPatchField, volMesh>
104  > div
105  (
106  const tmp<GeometricField<Type, fvPatchField, volMesh>>&
107  );
108 
109 
110  template<class Type>
111  tmp<GeometricField<Type, fvPatchField, volMesh>> div
112  (
113  const surfaceScalarField&,
114  const GeometricField<Type, fvPatchField, volMesh>&,
115  const word& name
116  );
117 
118  template<class Type>
119  tmp<GeometricField<Type, fvPatchField, volMesh>> div
120  (
121  const tmp<surfaceScalarField>&,
122  const GeometricField<Type, fvPatchField, volMesh>&,
123  const word& name
124  );
125 
126  template<class Type>
127  tmp<GeometricField<Type, fvPatchField, volMesh>> div
128  (
129  const surfaceScalarField&,
130  const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
131  const word& name
132  );
133 
134  template<class Type>
135  tmp<GeometricField<Type, fvPatchField, volMesh>> div
136  (
137  const tmp<surfaceScalarField>&,
138  const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
139  const word& name
140  );
141 
142 
143  template<class Type>
144  tmp<GeometricField<Type, fvPatchField, volMesh>> div
145  (
146  const surfaceScalarField&,
147  const GeometricField<Type, fvPatchField, volMesh>&
148  );
149 
150  template<class Type>
151  tmp<GeometricField<Type, fvPatchField, volMesh>> div
152  (
153  const tmp<surfaceScalarField>&,
154  const GeometricField<Type, fvPatchField, volMesh>&
155  );
156 
157  template<class Type>
158  tmp<GeometricField<Type, fvPatchField, volMesh>> div
159  (
160  const surfaceScalarField&,
161  const tmp<GeometricField<Type, fvPatchField, volMesh>>&
162  );
163 
164  template<class Type>
165  tmp<GeometricField<Type, fvPatchField, volMesh>> div
166  (
167  const tmp<surfaceScalarField>&,
168  const tmp<GeometricField<Type, fvPatchField, volMesh>>&
169  );
170 }
171 
172 
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 
175 } // End namespace Foam
176 
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 
179 #ifdef NoRepository
180  #include "fvcDiv.C"
181 #endif
182 
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184 
185 #endif
186 
187 // ************************************************************************* //
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
typeOfRank< typename pTraits< vector >::cmptType, direction(pTraits< vector >::rank)+direction(pTraits< Type >::rank) - 2 >::type type
Definition: products.H:115
Namespace for OpenFOAM.