facLaplacian.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 -------------------------------------------------------------------------------
10 License
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 
26 InNamespace
27  Foam::fac
28 
29 Description
30  Calculate the laplacian of the given field.
31 
32 SourceFiles
33  facLaplacian.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef facLaplacian_H
38 #define facLaplacian_H
39 
40 #include "areaFieldsFwd.H"
41 #include "edgeFieldsFwd.H"
42 #include "dimensionedTypes.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Namespace fac functions Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 namespace fac
54 {
55  template<class Type>
56  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
57  (
58  const GeometricField<Type, faPatchField, areaMesh>&,
59  const word&
60  );
61 
62  template<class Type>
63  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
64  (
65  const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
66  const word&
67  );
68 
69 
70  template<class Type>
71  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
72  (
73  const GeometricField<Type, faPatchField, areaMesh>&
74  );
75 
76  template<class Type>
77  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
78  (
79  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
80  );
81 
82 
83  template<class Type>
84  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
85  (
86  const dimensionedScalar&,
87  const GeometricField<Type, faPatchField, areaMesh>&,
88  const word&
89  );
90 
91  template<class Type>
92  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
93  (
94  const dimensionedScalar&,
95  const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
96  const word&
97  );
98 
99 
100  template<class Type>
101  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
102  (
103  const dimensionedScalar&,
104  const GeometricField<Type, faPatchField, areaMesh>&
105  );
106 
107  template<class Type>
108  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
109  (
110  const dimensionedScalar&,
111  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
112  );
113 
114 
115  template<class Type>
116  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
117  (
118  const areaScalarField&,
119  const GeometricField<Type, faPatchField, areaMesh>&,
120  const word&
121  );
122 
123  template<class Type>
124  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
125  (
126  const tmp<areaScalarField>&,
127  const GeometricField<Type, faPatchField, areaMesh>&,
128  const word&
129  );
130 
131  template<class Type>
132  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
133  (
134  const areaScalarField&,
135  const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
136  const word&
137  );
138 
139  template<class Type>
140  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
141  (
142  const tmp<areaScalarField>&,
143  const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
144  const word&
145  );
146 
147 
148  template<class Type>
149  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
150  (
151  const areaScalarField&,
152  const GeometricField<Type, faPatchField, areaMesh>&
153  );
154 
155  template<class Type>
156  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
157  (
158  const tmp<areaScalarField>&,
159  const GeometricField<Type, faPatchField, areaMesh>&
160  );
161 
162  template<class Type>
163  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
164  (
165  const areaScalarField&,
166  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
167  );
168 
169  template<class Type>
170  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
171  (
172  const tmp<areaScalarField>&,
173  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
174  );
175 
176 
177  template<class Type>
178  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
179  (
180  const edgeScalarField&,
181  const GeometricField<Type, faPatchField, areaMesh>&,
182  const word&
183  );
184 
185  template<class Type>
186  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
187  (
188  const tmp<edgeScalarField>&,
189  const GeometricField<Type, faPatchField, areaMesh>&,
190  const word&
191  );
192 
193  template<class Type>
194  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
195  (
196  const edgeScalarField&,
197  const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
198  const word&
199  );
200 
201  template<class Type>
202  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
203  (
204  const tmp<edgeScalarField>&,
205  const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
206  const word&
207  );
208 
209 
210  template<class Type>
211  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
212  (
213  const edgeScalarField&,
214  const GeometricField<Type, faPatchField, areaMesh>&
215  );
216 
217  template<class Type>
218  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
219  (
220  const tmp<edgeScalarField>&,
221  const GeometricField<Type, faPatchField, areaMesh>&
222  );
223 
224  template<class Type>
225  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
226  (
227  const edgeScalarField&,
228  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
229  );
230 
231  template<class Type>
232  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
233  (
234  const tmp<edgeScalarField>&,
235  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
236  );
237 
238  /*
239  template<class Type>
240  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
241  (
242  const areaTensorField&,
243  const GeometricField<Type, faPatchField, areaMesh>&
244  );
245 
246  template<class Type>
247  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
248  (
249  const tmp<areaTensorField>&,
250  const GeometricField<Type, faPatchField, areaMesh>&
251  );
252 
253  template<class Type>
254  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
255  (
256  const areaTensorField&,
257  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
258  );
259 
260  template<class Type>
261  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
262  (
263  const tmp<areaTensorField>&,
264  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
265  );
266 
267 
268  template<class Type>
269  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
270  (
271  const edgeTensorField&,
272  const GeometricField<Type, faPatchField, areaMesh>&
273  );
274 
275  template<class Type>
276  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
277  (
278  const tmp<edgeTensorField>&,
279  const GeometricField<Type, faPatchField, areaMesh>&
280  );
281 
282  template<class Type>
283  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
284  (
285  const edgeTensorField&,
286  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
287  );
288 
289  template<class Type>
290  tmp<GeometricField<Type, faPatchField, areaMesh>> laplacian
291  (
292  const tmp<edgeTensorField>&,
293  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
294  );
295  */
296 }
297 
298 
299 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
300 
301 } // End namespace Foam
302 
303 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
304 
305 #ifdef NoRepository
306  #include "facLaplacian.C"
307 #else
308  #ifdef xlC
309  #pragma implementation("facLaplacian.C")
310  #endif
311 #endif
312 
313 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
314 
315 #endif
316 
317 // ************************************************************************* //
Calculate the second temporal derivative.
Forwards for edge field types.
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
Definition: facLaplacian.C:40
GeometricField< scalar, faePatchField, edgeMesh > edgeScalarField
Definition: edgeFieldsFwd.H:43
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Forwards and collection of common area field types.
Namespace for OpenFOAM.
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
Definition: areaFieldsFwd.H:72