OpenFOAM
9
The OpenFOAM Foundation
flipOp.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration | Website: https://openfoam.org
5
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
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
\*---------------------------------------------------------------------------*/
25
26
#include "
flipOp.H
"
27
28
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
29
30
template
<>
31
Foam::scalar
Foam::flipOp::operator()
(
const
scalar& v)
const
32
{
33
return
-v;
34
}
35
36
37
template
<>
Foam::vector
Foam::flipOp::operator()
(
const
vector
& v)
const
38
{
39
return
-v;
40
}
41
42
43
template
<>
Foam::sphericalTensor
Foam::flipOp::operator()
44
(
45
const
sphericalTensor
& v
46
)
const
47
{
48
return
-v;
49
}
50
51
52
template
<>
Foam::symmTensor
Foam::flipOp::operator()
53
(
54
const
symmTensor
& v
55
)
const
56
{
57
return
-v;
58
}
59
60
61
template
<>
Foam::tensor
Foam::flipOp::operator()
(
const
tensor
& v)
const
62
{
63
return
-v;
64
}
65
66
67
template
<>
Foam::triad
Foam::flipOp::operator()
68
(
69
const
triad
& v
70
)
const
71
{
72
return
-v;
73
}
74
75
76
// ************************************************************************* //
Foam::SymmTensor< scalar >
Foam::flipOp::operator()
Type operator()(const Type &val) const
Definition:
flipOp.H:55
flipOp.H
Foam::SphericalTensor
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators.
Definition:
SphericalTensor.H:51
Foam::Vector< scalar >
Foam::triad
Representation of a 3D Cartesian coordinate system as a Vector of vectors.
Definition:
triad.H:65
Foam::Tensor< scalar >
src
OpenFOAM
primitives
ops
flipOp.C
Generated by
1.8.13