famSup.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) 2016-2017 Wikki Ltd
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::fam
29
30Description
31 Calculate the finiteArea matrix for implicit and explicit sources.
32
33SourceFiles
34 famSup.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef Foam_famSup_H
39#define Foam_famSup_H
40
41#include "areaFieldsFwd.H"
42#include "faMatrix.H"
43#include "zeroField.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49
50/*---------------------------------------------------------------------------*\
51 Namespace fam Functions
52\*---------------------------------------------------------------------------*/
53
54namespace fam
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 (
102 const Foam::zero,
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 (
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>
156 (
159 );
160
161 template<class Type>
163 (
166 );
167
168 template<class Type>
170 (
173 );
174}
175
176
177// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178
179} // End namespace Foam
180
181// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182
183#ifdef NoRepository
184 #include "famSup.C"
185#endif
186
187// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188
189#endif
190
191// ************************************************************************* //
Forwards and collection of common area field types.
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:65
A class representing the concept of a field of 0 used to avoid unnecessary manipulations for objects ...
Definition: zeroField.H:56
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Definition: zero.H:63
zeroField Su
Definition: alphaSuSp.H:1
zeroField Sp
Definition: alphaSuSp.H:2
zeroField SuSp(const Foam::zero, const GeometricField< Type, faPatchField, areaMesh > &)
A no-op source.
Namespace for OpenFOAM.
Calculate the matrix for the second temporal derivative.