symmTensor2D.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2013 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 #include "symmTensor2D.H"
27 
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
32 
33 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 
35 template<>
36 const char* const symmTensor2D::typeName = "symmTensor2D";
37 
38 template<>
39 const char* symmTensor2D::componentNames[] =
40 {
41  "xx", "xy",
42  "yy"
43 };
44 
45 template<>
47 (
48  0, 0,
49  0
50 );
51 
52 template<>
54 (
55  1, 1,
56  1
57 );
58 
59 template<>
61 (
62  VGREAT, VGREAT,
63  VGREAT
64 );
65 
66 template<>
68 (
69  -VGREAT, -VGREAT,
70  -VGREAT
71 );
72 
73 template<>
75 (
76  1, 0,
77  1
78 );
79 
80 
81 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
82 
83 } // End namespace Foam
84 
85 // ************************************************************************* //
static const char * componentNames[]
Definition: SymmTensor2D.H:75
SymmTensor2D< scalar > symmTensor2D
SymmTensor2D of scalars.
Definition: symmTensor2D.H:48
static const SymmTensor2D zero
Definition: SymmTensor2D.H:77
static const SymmTensor2D I
Definition: SymmTensor2D.H:81
static const char *const typeName
Definition: SymmTensor2D.H:74
static const SymmTensor2D one
Definition: SymmTensor2D.H:78
static const SymmTensor2D max
Definition: SymmTensor2D.H:79
static const SymmTensor2D min
Definition: SymmTensor2D.H:80