fvmLaplacian.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 -------------------------------------------------------------------------------
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::fvm
28 
29 Description
30  Calculate the matrix for the laplacian of the field.
31 
32 SourceFiles
33  fvmLaplacian.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef fvmLaplacian_H
38 #define fvmLaplacian_H
39 
40 #include "volFieldsFwd.H"
41 #include "surfaceFieldsFwd.H"
42 #include "fvMatrix.H"
43 #include "zero.H"
44 #include "one.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Namespace fvm functions Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 namespace fvm
56 {
57  template<class Type>
58  tmp<fvMatrix<Type>> laplacian
59  (
60  const GeometricField<Type, fvPatchField, volMesh>&,
61  const word&
62  );
63 
64  template<class Type>
65  tmp<fvMatrix<Type>> laplacian
66  (
67  const GeometricField<Type, fvPatchField, volMesh>&
68  );
69 
70 
71  template<class Type>
72  tmp<fvMatrix<Type>> laplacian
73  (
74  const zero&,
75  const GeometricField<Type, fvPatchField, volMesh>&,
76  const word&
77  );
78 
79  template<class Type>
80  tmp<fvMatrix<Type>> laplacian
81  (
82  const zero&,
83  const GeometricField<Type, fvPatchField, volMesh>&
84  );
85 
86 
87  template<class Type>
88  tmp<fvMatrix<Type>> laplacian
89  (
90  const one&,
91  const GeometricField<Type, fvPatchField, volMesh>&,
92  const word&
93  );
94 
95  template<class Type>
96  tmp<fvMatrix<Type>> laplacian
97  (
98  const one&,
99  const GeometricField<Type, fvPatchField, volMesh>&
100  );
101 
102 
103  template<class Type, class GType>
104  tmp<fvMatrix<Type>> laplacian
105  (
106  const dimensioned<GType>&,
107  const GeometricField<Type, fvPatchField, volMesh>&,
108  const word&
109  );
110 
111  template<class Type, class GType>
112  tmp<fvMatrix<Type>> laplacian
113  (
114  const dimensioned<GType>&,
115  const GeometricField<Type, fvPatchField, volMesh>&
116  );
117 
118 
119  template<class Type, class GType>
120  tmp<fvMatrix<Type>> laplacian
121  (
122  const GeometricField<GType, fvPatchField, volMesh>&,
123  const GeometricField<Type, fvPatchField, volMesh>&,
124  const word&
125  );
126 
127  template<class Type, class GType>
128  tmp<fvMatrix<Type>> laplacian
129  (
130  const GeometricField<GType, fvPatchField, volMesh>&,
131  const GeometricField<Type, fvPatchField, volMesh>&
132  );
133 
134 
135  template<class Type, class GType>
136  tmp<fvMatrix<Type>> laplacian
137  (
138  const tmp<GeometricField<GType, fvPatchField, volMesh>>&,
139  const GeometricField<Type, fvPatchField, volMesh>&,
140  const word&
141  );
142 
143  template<class Type, class GType>
144  tmp<fvMatrix<Type>> laplacian
145  (
146  const tmp<GeometricField<GType, fvPatchField, volMesh>>&,
147  const GeometricField<Type, fvPatchField, volMesh>&
148  );
149 
150 
151  template<class Type, class GType>
152  tmp<fvMatrix<Type>> laplacian
153  (
154  const GeometricField<GType, fvsPatchField, surfaceMesh>&,
155  const GeometricField<Type, fvPatchField, volMesh>&,
156  const word&
157  );
158 
159  template<class Type, class GType>
160  tmp<fvMatrix<Type>> laplacian
161  (
162  const tmp<GeometricField<GType, fvsPatchField, surfaceMesh>>&,
163  const GeometricField<Type, fvPatchField, volMesh>&,
164  const word&
165  );
166 
167  template<class Type, class GType>
168  tmp<fvMatrix<Type>> laplacian
169  (
170  const GeometricField<GType, fvsPatchField, surfaceMesh>&,
171  const GeometricField<Type, fvPatchField, volMesh>&
172  );
173 
174  template<class Type, class GType>
175  tmp<fvMatrix<Type>> laplacian
176  (
177  const tmp<GeometricField<GType, fvsPatchField, surfaceMesh>>&,
178  const GeometricField<Type, fvPatchField, volMesh>&
179  );
180 }
181 
182 
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184 
185 } // End namespace Foam
186 
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 
189 #ifdef NoRepository
190  #include "fvmLaplacian.C"
191 #endif
192 
193 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
194 
195 #endif
196 
197 // ************************************************************************* //
volFieldsFwd.H
fvmLaplacian.C
fvMatrix.H
one.H
Foam::fvm::laplacian
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvmLaplacian.C:48
zero.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
surfaceFieldsFwd.H