Loading...
Searching...
No Matches
facDiv.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) 2016-2017 Wikki Ltd
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::fac
28
29Description
30 Calculate the divergence of the given field.
31
32SourceFiles
33 facDiv.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef facDiv_H
38#define facDiv_H
39
40#include "areaFieldsFwd.H"
41#include "edgeFieldsFwd.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48/*---------------------------------------------------------------------------*\
49 Namespace fac functions Declaration
50\*---------------------------------------------------------------------------*/
51
52namespace fac
53{
54 template<class Type>
55 tmp<GeometricField<Type, faPatchField, areaMesh>> div
56 (
57 const GeometricField<Type, faePatchField, edgeMesh>&
58 );
59
60 template<class Type>
61 tmp<GeometricField<Type, faPatchField, areaMesh>> div
62 (
63 const tmp<GeometricField<Type, faePatchField, edgeMesh>>&
64 );
65
66
67 template<class Type>
68 tmp
69 <
70 GeometricField
71 <typename innerProduct<vector, Type>::type, faPatchField, areaMesh>
72 > div
73 (
74 const GeometricField<Type, faPatchField, areaMesh>&,
75 const word& name
76 );
77
78 template<class Type>
79 tmp
80 <
81 GeometricField
82 <typename innerProduct<vector, Type>::type, faPatchField, areaMesh>
83 > div
84 (
85 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
86 const word& name
87 );
88
89
90 template<class Type>
91 tmp
92 <
93 GeometricField
94 <typename innerProduct<vector, Type>::type, faPatchField, areaMesh>
95 > div
96 (
97 const GeometricField<Type, faPatchField, areaMesh>&
98 );
99
100 template<class Type>
101 tmp
102 <
103 GeometricField
104 <typename innerProduct<vector, Type>::type, faPatchField, areaMesh>
105 > div
106 (
107 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
108 );
109
110
111 template<class Type>
112 tmp<GeometricField<Type, faPatchField, areaMesh>> div
113 (
114 const edgeScalarField&,
115 const GeometricField<Type, faPatchField, areaMesh>&,
116 const word& name
117 );
118
119 template<class Type>
120 tmp<GeometricField<Type, faPatchField, areaMesh>> div
121 (
122 const tmp<edgeScalarField>&,
123 const GeometricField<Type, faPatchField, areaMesh>&,
124 const word& name
125 );
126
127 template<class Type>
128 tmp<GeometricField<Type, faPatchField, areaMesh>> div
129 (
130 const edgeScalarField&,
131 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
132 const word& name
133 );
134
135 template<class Type>
136 tmp<GeometricField<Type, faPatchField, areaMesh>> div
137 (
138 const tmp<edgeScalarField>&,
139 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
140 const word& name
141 );
142
143
144 template<class Type>
145 tmp<GeometricField<Type, faPatchField, areaMesh>> div
146 (
147 const edgeScalarField&,
148 const GeometricField<Type, faPatchField, areaMesh>&
149 );
150
151 template<class Type>
152 tmp<GeometricField<Type, faPatchField, areaMesh>> div
153 (
154 const tmp<edgeScalarField>&,
155 const GeometricField<Type, faPatchField, areaMesh>&
156 );
157
158 template<class Type>
159 tmp<GeometricField<Type, faPatchField, areaMesh>> div
160 (
161 const edgeScalarField&,
162 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
163 );
164
165 template<class Type>
166 tmp<GeometricField<Type, faPatchField, areaMesh>> div
167 (
168 const tmp<edgeScalarField>&,
169 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
170 );
171}
172
173
174// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175
176} // End namespace Foam
177
178// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179
180#ifdef NoRepository
181 #include "facDiv.C"
182#endif
183
184// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185
186#endif
187
188// ************************************************************************* //
Forwards and collection of common area field types.
typeOfRank< typenamepTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) -2 >::type type
Definition products.H:155
Forwards for edge field types.
auto & name
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition facDiv.C:43
Namespace for OpenFOAM.
GeometricField< scalar, faePatchField, edgeMesh > edgeScalarField