Loading...
Searching...
No Matches
fvmDiv.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 divergence of the given field and flux.
31
32SourceFiles
33 fvmDiv.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef fvmDiv_H
38#define fvmDiv_H
39
40#include "volFieldsFwd.H"
41#include "surfaceFieldsFwd.H"
43#include "fvMatrix.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>> div
58 (
59 const surfaceScalarField&,
60 const GeometricField<Type, fvPatchField, volMesh>&,
61 const word& name
62 );
63
64 template<class Type>
65 tmp<fvMatrix<Type>> div
66 (
67 const tmp<surfaceScalarField>&,
68 const GeometricField<Type, fvPatchField, volMesh>&,
69 const word& name
70 );
71
72
73 template<class Type>
74 tmp<fvMatrix<Type>> div
75 (
76 const surfaceScalarField&,
77 const GeometricField<Type, fvPatchField, volMesh>&
78 );
79
80 template<class Type>
81 tmp<fvMatrix<Type>> div
82 (
83 const tmp<surfaceScalarField>&,
84 const GeometricField<Type, fvPatchField, volMesh>&
85 );
86}
87
88
89// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90
91} // End namespace Foam
92
93// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94
95#ifdef NoRepository
96 #include "fvmDiv.C"
97#endif
98
99// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100
101#endif
102
103// ************************************************************************* //
auto & name
Namespace of functions to calculate implicit derivatives returning a matrix.
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition fvmDiv.C:41
Namespace for OpenFOAM.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Forwards and collection of common volume field types.