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 VolField<Type>&,
60  const word&
61  );
62 
63  template<class Type>
64  tmp<fvMatrix<Type>> laplacian
65  (
66  const VolField<Type>&
67  );
68 
69 
70  template<class Type>
71  tmp<fvMatrix<Type>> laplacian
72  (
73  const zero&,
74  const VolField<Type>&,
75  const word&
76  );
77 
78  template<class Type>
79  tmp<fvMatrix<Type>> laplacian
80  (
81  const zero&,
82  const VolField<Type>&
83  );
84 
85 
86  template<class Type>
87  tmp<fvMatrix<Type>> laplacian
88  (
89  const one&,
90  const VolField<Type>&,
91  const word&
92  );
93 
94  template<class Type>
95  tmp<fvMatrix<Type>> laplacian
96  (
97  const one&,
98  const VolField<Type>&
99  );
100 
101 
102  template<class Type, class GType>
103  tmp<fvMatrix<Type>> laplacian
104  (
105  const dimensioned<GType>&,
106  const VolField<Type>&,
107  const word&
108  );
109 
110  template<class Type, class GType>
111  tmp<fvMatrix<Type>> laplacian
112  (
113  const dimensioned<GType>&,
114  const VolField<Type>&
115  );
116 
117 
118  template<class Type, class GType>
119  tmp<fvMatrix<Type>> laplacian
120  (
121  const VolField<GType>&,
122  const VolField<Type>&,
123  const word&
124  );
125 
126  template<class Type, class GType>
127  tmp<fvMatrix<Type>> laplacian
128  (
129  const VolField<GType>&,
130  const VolField<Type>&
131  );
132 
133 
134  template<class Type, class GType>
135  tmp<fvMatrix<Type>> laplacian
136  (
137  const tmp<VolField<GType>>&,
138  const VolField<Type>&,
139  const word&
140  );
141 
142  template<class Type, class GType>
143  tmp<fvMatrix<Type>> laplacian
144  (
145  const tmp<VolField<GType>>&,
146  const VolField<Type>&
147  );
148 
149 
150  template<class Type, class GType>
151  tmp<fvMatrix<Type>> laplacian
152  (
153  const SurfaceField<GType>&,
154  const VolField<Type>&,
155  const word&
156  );
157 
158  template<class Type, class GType>
159  tmp<fvMatrix<Type>> laplacian
160  (
161  const tmp<SurfaceField<GType>>&,
162  const VolField<Type>&,
163  const word&
164  );
165 
166  template<class Type, class GType>
167  tmp<fvMatrix<Type>> laplacian
168  (
169  const SurfaceField<GType>&,
170  const VolField<Type>&
171  );
172 
173  template<class Type, class GType>
174  tmp<fvMatrix<Type>> laplacian
175  (
176  const tmp<SurfaceField<GType>>&,
177  const VolField<Type>&
178  );
179 
180 
181  template<class Type>
182  tmp<fvMatrix<Type>> laplacianCorrection
183  (
184  const VolField<scalar>&,
185  const VolField<Type>&
186  );
187 
188  template<class Type>
189  tmp<fvMatrix<Type>> laplacianCorrection
190  (
191  const tmp<VolField<scalar>>&,
192  const VolField<Type>&
193  );
194 
195 
196  template<class Type>
197  tmp<fvMatrix<Type>> laplacianCorrection
198  (
199  const SurfaceField<scalar>&,
200  const VolField<Type>&
201  );
202 
203  template<class Type>
204  tmp<fvMatrix<Type>> laplacianCorrection
205  (
206  const tmp<SurfaceField<scalar>>&,
207  const VolField<Type>&
208  );
209 }
210 
211 
212 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
213 
214 } // End namespace Foam
215 
216 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
217 
218 #ifdef NoRepository
219  #include "fvmLaplacian.C"
220 #endif
221 
222 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
223 
224 #endif
225 
226 // ************************************************************************* //
tmp< fvMatrix< Type > > laplacian(const VolField< Type > &vf, const word &name)
Definition: fvmLaplacian.C:47
tmp< fvMatrix< Type > > laplacianCorrection(const VolField< scalar > &gamma, const VolField< Type > &vf)
Definition: fvmLaplacian.C:340
Namespace for OpenFOAM.