Loading...
Searching...
No Matches
fvmSup.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 Copyright (C) 2022 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27InNamespace
28 Foam::fvm
29
30Description
31 Calculate the finiteVolume matrix for implicit and explicit sources.
32
33SourceFiles
34 fvmSup.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef Foam_fvmSup_H
39#define Foam_fvmSup_H
40
41#include "volFieldsFwd.H"
42#include "fvMatrix.H"
43#include "zeroField.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49
50/*---------------------------------------------------------------------------*\
51 Namespace fvm Functions
52\*---------------------------------------------------------------------------*/
53
54namespace fvm
55{
56 // Explicit source
57
58 //- A no-op source
59 template<class Type>
61 (
62 const Foam::zero,
64 );
65
66 //- A uniform source (no-op for small values)
67 template<class Type>
69 (
70 const dimensioned<Type>& su,
72 );
73
74 template<class Type>
76 (
79 );
80
81 template<class Type>
83 (
86 );
87
88 template<class Type>
90 (
93 );
94
95
96 // Implicit source
97
98 //- A no-op source
99 template<class Type>
101 (
104 );
105
106 //- A uniform source (no-op for small values)
107 template<class Type>
109 (
110 const dimensionedScalar& sp,
112 );
113
114 template<class Type>
116 (
119 );
120
121 template<class Type>
123 (
126 );
127
128 template<class Type>
130 (
131 const tmp<volScalarField>&,
133 );
134
135
136 // Implicit/Explicit source depending on sign of coefficient
137
138 //- A no-op source
139 template<class Type>
141 (
142 const Foam::zero,
144 );
145
146 //- A uniform source (no-op for small values)
147 template<class Type>
149 (
150 const dimensionedScalar& susp,
152 );
153
154 template<class Type>
159 );
160
161 template<class Type>
166 );
167
168 template<class Type>
171 const tmp<volScalarField>&,
173 );
174}
175
176
177// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178
179} // End namespace Foam
180
181// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182
183#ifdef NoRepository
184 #include "fvmSup.C"
185#endif
186
187// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188
189#endif
190
191// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
Generic dimensioned Type class.
A class for managing temporary objects.
Definition tmp.H:75
A class representing the concept of a field of 0 used to avoid unnecessary manipulations for objects ...
Definition zeroField.H:50
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Definition zero.H:58
zeroField Su
Definition alphaSuSp.H:1
zeroField Sp
Definition alphaSuSp.H:2
Namespace of functions to calculate implicit derivatives returning a matrix.
zeroField SuSp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Forwards and collection of common volume field types.