OpenFOAM: API Guide
v1912
The open source CFD toolbox
tensor.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-2014 OpenFOAM Foundation
9
Copyright (C) 2019 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
Typedef
28
Foam::tensor
29
30
Description
31
Tensor of scalars.
32
33
SourceFiles
34
tensor.C
35
36
\*---------------------------------------------------------------------------*/
37
38
#ifndef tensor_H
39
#define tensor_H
40
41
#include "
Tensor.H
"
42
#include "
vector.H
"
43
#include "
sphericalTensor.H
"
44
#include "
symmTensor.H
"
45
46
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48
namespace
Foam
49
{
50
51
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52
53
typedef
Tensor<scalar>
tensor
;
54
55
vector
eigenValues
(
const
tensor
&
T
);
56
vector
eigenVector
57
(
58
const
tensor
&
T
,
59
const
scalar
lambda
,
60
const
vector
& direction1,
61
const
vector
& direction2
62
);
63
tensor
eigenVectors
(
const
tensor
&
T
,
const
vector
& lambdas);
64
tensor
eigenVectors
(
const
tensor
&
T
);
65
66
vector
eigenValues
(
const
symmTensor
&
T
);
67
vector
eigenVector
68
(
69
const
symmTensor
&
T
,
70
const
scalar
lambda
,
71
const
vector
& direction1,
72
const
vector
& direction2
73
);
74
tensor
eigenVectors
(
const
symmTensor
&
T
,
const
vector
& lambdas);
75
tensor
eigenVectors
(
const
symmTensor
&
T
);
76
77
78
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
79
80
}
// End namespace Foam
81
82
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
83
84
#endif
85
86
// ************************************************************************* //
Foam::Tensor< scalar >
Foam::SymmTensor< scalar >
Foam::eigenVectors
dimensionedTensor eigenVectors(const dimensionedTensor &dt)
Definition:
dimensionedTensor.C:159
Foam::tensor
Tensor< scalar > tensor
Tensor of scalars.
Definition:
tensor.H:53
Foam::eigenVector
vector eigenVector(const tensor &T, const scalar lambda, const vector &direction1, const vector &direction2)
Definition:
tensor.C:139
sphericalTensor.H
symmTensor.H
Foam::eigenValues
dimensionedVector eigenValues(const dimensionedTensor &dt)
Definition:
dimensionedTensor.C:148
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition:
FieldFieldFunctions.C:58
lambda
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Tensor.H
Foam::Vector
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
Definition:
Vector.H:62
vector.H
src
OpenFOAM
primitives
Tensor
tensor
tensor.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.