Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
finiteVolume
finiteVolume
fvm
fvmD2dt2.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
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
Description
25
26
27
\*---------------------------------------------------------------------------*/
28
29
#include <
finiteVolume/volFields.H
>
30
#include <
finiteVolume/surfaceFields.H
>
31
#include <
finiteVolume/fvMatrix.H
>
32
#include <
finiteVolume/d2dt2Scheme.H
>
33
34
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35
36
namespace
Foam
37
{
38
39
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40
41
namespace
fvm
42
{
43
44
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46
template
<
class
Type>
47
tmp<fvMatrix<Type> >
48
d2dt2
49
(
50
GeometricField<Type, fvPatchField, volMesh>
& vf
51
)
52
{
53
return
fv::d2dt2Scheme<Type>::New
54
(
55
vf.
mesh
(),
56
vf.
mesh
().
d2dt2Scheme
(
"d2dt2("
+ vf.
name
() +
')'
)
57
)().fvmD2dt2(vf);
58
}
59
60
61
template
<
class
Type>
62
tmp<fvMatrix<Type>
>
63
d2dt2
64
(
65
const
dimensionedScalar
&
rho
,
66
GeometricField<Type, fvPatchField, volMesh>
& vf
67
)
68
{
69
return
fv::d2dt2Scheme<Type>::New
70
(
71
vf.
mesh
(),
72
vf.
mesh
().
d2dt2Scheme
(
"d2dt2("
+ rho.
name
() +
','
+ vf.
name
() +
')'
)
73
)().fvmD2dt2(rho, vf);
74
}
75
76
77
template
<
class
Type>
78
tmp<fvMatrix<Type>
>
79
d2dt2
80
(
81
const
volScalarField
& rho,
82
GeometricField<Type, fvPatchField, volMesh>
& vf
83
)
84
{
85
return
fv::d2dt2Scheme<Type>::New
86
(
87
vf.
mesh
(),
88
vf.
mesh
().
d2dt2Scheme
(
"d2dt2("
+ rho.
name
() +
','
+ vf.
name
() +
')'
)
89
)().fvmD2dt2(rho, vf);
90
}
91
92
93
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94
95
}
// End namespace fvm
96
97
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98
99
}
// End namespace Foam
100
101
// ************************ vim: set sw=4 sts=4 et: ************************ //