symmTensor.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-2012 OpenFOAM Foundation
9 Copyright (C) 2019-2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
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
27Typedef
28 Foam::symmTensor
29
30Description
31 SymmTensor of scalars, i.e. SymmTensor<scalar>.
32
33 Analytical functions for the computation of real eigenvalues and
34 real eigenvectors from a given symmTensor.
35
36See also
37 Test-SymmTensor.C
38
39SourceFiles
40 symmTensor.C
41
42\*---------------------------------------------------------------------------*/
43
44#ifndef symmTensor_H
45#define symmTensor_H
46
47#include "SymmTensor.H"
48#include "vector.H"
49#include "sphericalTensor.H"
50#include "tensor.H"
51
52// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53
54namespace Foam
55{
56
57// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58
60
62
63// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64
65//- Return real ascending-order eigenvalues of a given symmTensor
66// \param T symmTensor
67//
68// \return vector real eigenvalues
70
71
72//- Return a real eigenvector corresponding to
73//- a given real eigenvalue of a given symmTensor
74// \param T symmTensor
75// \param eVal real eigenvalue
76// \param standardBasis1 symmTensor orthogonal component 1
77// \param standardBasis2 symmTensor orthogonal component 2
78//
79// \return vector real eigenvector
81(
82 const symmTensor& T,
83 const scalar eVal,
84 const vector& standardBasis1,
85 const vector& standardBasis2
86);
87
88
89//- Return real eigenvectors corresponding to
90//- given real eigenvalues of a given symmTensor
91// \param T symmTensor
92// \param eVals real eigenvalues
93//
94// \return tensor real eigenvectors, each row is an eigenvector
96(
97 const symmTensor& T,
98 const vector& eVals
99);
100
101
102//- Return real eigenvectors of a given symmTensor by computing
103//- the real eigenvalues of the tensor in the background
104// \param T symmTensor
105//
106// \return tensor real eigenvectors, each row is an eigenvector
108
109
110// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111
112} // End namespace Foam
113
114// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115
116#endif
117
118// ************************************************************************* //
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements,...
Definition: SymmTensor.H:57
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
Definition: Tensor.H:64
const volScalarField & T
Namespace for OpenFOAM.
dimensionedTensor eigenVectors(const dimensionedSymmTensor &dt)
dimensionedVector eigenValues(const dimensionedSymmTensor &dt)
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
Definition: symmTensor.H:59
vector eigenVector(const symmTensor &T, const scalar eVal, const vector &standardBasis1, const vector &standardBasis2)
Definition: symmTensor.C:152
Tensor< scalar > tensor
Definition: symmTensor.H:61