CompactSpatialTensorI.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) 2016-2017 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
28// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29
30template<class Cmpt>
32{}
33
34
35template<class Cmpt>
37(
38 const Foam::zero
39)
40:
42{}
43
44
45template<class Cmpt>
47(
48 const typename CompactSpatialTensor::msType& ms
49)
50:
52{}
53
54
55template<class Cmpt>
57(
58 const Cmpt& t00, const Cmpt& t01, const Cmpt& t02,
59 const Cmpt& t10, const Cmpt& t11, const Cmpt& t12,
60 const Cmpt& t20, const Cmpt& t21, const Cmpt& t22,
61 const Cmpt& t30, const Cmpt& t31, const Cmpt& t32,
62 const Cmpt& t40, const Cmpt& t41, const Cmpt& t42,
63 const Cmpt& t50, const Cmpt& t51, const Cmpt& t52
64)
65{
66 this->v_[0] = t00;
67 this->v_[1] = t01;
68 this->v_[2] = t02;
69
70 this->v_[3 + 0] = t10;
71 this->v_[3 + 1] = t11;
72 this->v_[3 + 2] = t12;
73
74 this->v_[6 + 0] = t20;
75 this->v_[6 + 1] = t21;
76 this->v_[6 + 2] = t22;
78 this->v_[9 + 0] = t30;
79 this->v_[9 + 1] = t31;
80 this->v_[9 + 2] = t32;
81
82 this->v_[12 + 0] = t40;
83 this->v_[12 + 1] = t41;
84 this->v_[12 + 2] = t42;
85
86 this->v_[15 + 0] = t50;
87 this->v_[15 + 1] = t51;
88 this->v_[15 + 2] = t52;
89}
90
91
92template<class Cmpt>
94:
96{}
98
99// ************************************************************************* //
Templated 3D compact spatial tensor derived from MatrixSpace used to represent transformations of spa...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
Templated matrix space.
Definition: MatrixSpace.H:61
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Definition: zero.H:63