OpenFOAM
v2406
The open source CFD toolbox
vector.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 OpenFOAM Foundation
9
Copyright (C) 2019-2022 OpenCFD Ltd.
10
-------------------------------------------------------------------------------
11
License
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
27
Class
28
Foam::vector
29
30
Description
31
A Vector of values with scalar precision,
32
where scalar is float/double depending on the compilation flags.
33
34
SourceFiles
35
floatVectors.C
36
37
\*---------------------------------------------------------------------------*/
38
39
#ifndef Foam_vector_H
40
#define Foam_vector_H
41
42
#include "
scalar.H
"
43
#include "
Vector.H
"
44
45
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47
namespace
Foam
48
{
49
50
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51
52
55
typedef
Vector<float>
floatVector
;
56
59
typedef
Vector<double>
doubleVector
;
60
61
// With float or double precision (depending on compilation)
62
typedef
Vector<scalar>
vector
;
63
64
// With float or double precision (depending on compilation)
65
typedef
Vector<solveScalar>
solveVector
;
66
67
68
// Traits
69
70
template
<
class
Type>
71
class
flux
72
:
73
public
innerProduct
<vector, Type>
74
{};
75
76
77
template
<>
78
class
flux
<scalar>
79
{
80
public
:
81
82
typedef
scalar
type
;
83
};
84
85
86
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87
88
}
// End namespace Foam
89
90
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91
92
#endif
93
94
// ************************************************************************* //
Foam::flux
Definition:
vector.H:66
Foam::solveVector
Vector< solveScalar > solveVector
Definition:
vector.H:60
scalar.H
Foam::doubleVector
Vector< double > doubleVector
Definition:
vector.H:54
Foam::vector
Vector< scalar > vector
Definition:
vector.H:57
Foam::Vector< float >
Foam::innerProduct
Definition:
products.H:147
Vector.H
Foam::innerProduct< vector, Type >::type
typeOfRank< typename pTraits< vector >::cmptType, direction(pTraits< vector >::rank)+direction(pTraits< Type >::rank) - 2 >::type type
Definition:
products.H:155
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:26
Foam::floatVector
Vector< float > floatVector
Definition:
vector.H:50
src
OpenFOAM
primitives
Vector
floats
vector.H
Generated by
1.8.14