CompactSpatialTensorI.H
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) 2016-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 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
27 
28 template<class Cmpt>
30 {}
31 
32 
33 template<class Cmpt>
35 (
36  const Foam::zero
37 )
38 :
40 {}
41 
42 
43 template<class Cmpt>
45 (
46  const typename CompactSpatialTensor::msType& ms
47 )
48 :
50 {}
51 
52 
53 template<class Cmpt>
55 (
56  const Cmpt& t00, const Cmpt& t01, const Cmpt& t02,
57  const Cmpt& t10, const Cmpt& t11, const Cmpt& t12,
58  const Cmpt& t20, const Cmpt& t21, const Cmpt& t22,
59  const Cmpt& t30, const Cmpt& t31, const Cmpt& t32,
60  const Cmpt& t40, const Cmpt& t41, const Cmpt& t42,
61  const Cmpt& t50, const Cmpt& t51, const Cmpt& t52
62 )
63 {
64  this->v_[0] = t00;
65  this->v_[1] = t01;
66  this->v_[2] = t02;
67 
68  this->v_[3 + 0] = t10;
69  this->v_[3 + 1] = t11;
70  this->v_[3 + 2] = t12;
71 
72  this->v_[6 + 0] = t20;
73  this->v_[6 + 1] = t21;
74  this->v_[6 + 2] = t22;
75 
76  this->v_[9 + 0] = t30;
77  this->v_[9 + 1] = t31;
78  this->v_[9 + 2] = t32;
79 
80  this->v_[12 + 0] = t40;
81  this->v_[12 + 1] = t41;
82  this->v_[12 + 2] = t42;
83 
84  this->v_[15 + 0] = t50;
85  this->v_[15 + 1] = t51;
86  this->v_[15 + 2] = t52;
87 }
88 
89 
90 template<class Cmpt>
92 :
94 {}
95 
96 
97 // ************************************************************************* //
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:57
CompactSpatialTensor()
Construct null.
Templated matrix space.
Definition: MatrixSpace.H:55
static const zero Zero
Definition: zero.H:97
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
Definition: zero.H:49