Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
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::fvm
28
29Description
30 Calculate the matrix for the laplacian of the field.
31
32SourceFiles
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 "one.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49
50/*---------------------------------------------------------------------------*\
51 Namespace fvm functions Declaration
52\*---------------------------------------------------------------------------*/
53
54namespace 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 Foam::zero,
74 const GeometricField<Type, fvPatchField, volMesh>&,
75 const word&
76 );
77
78 template<class Type>
79 tmp<fvMatrix<Type>> laplacian
80 (
81 const Foam::zero,
82 const GeometricField<Type, fvPatchField, volMesh>&
83 );
84
85
86 template<class Type>
87 tmp<fvMatrix<Type>> laplacian
88 (
89 const Foam::one,
90 const GeometricField<Type, fvPatchField, volMesh>&,
91 const word&
92 );
93
94 template<class Type>
95 tmp<fvMatrix<Type>> laplacian
96 (
97 const Foam::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// ************************************************************************* //
Namespace of functions to calculate implicit derivatives returning a matrix.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Namespace for OpenFOAM.
Forwards and collection of common volume field types.