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