OpenFOAM
4.1
The OpenFOAM Foundation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
sampling
sampledSurface
writers
ensight
ensightPTraits.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 | Copyright (C) 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
Class
25
Foam::ensightPTraits
26
27
Description
28
Conversion of OpenFOAM pTraits into the Ensight equivalent
29
30
\*---------------------------------------------------------------------------*/
31
32
#ifndef ensightPTraits_H
33
#define ensightPTraits_H
34
35
#include "
pTraits.H
"
36
#include "
fieldTypes.H
"
37
38
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39
40
namespace
Foam
41
{
42
43
/*---------------------------------------------------------------------------*\
44
Class ensightPTraits Declaration
45
\*---------------------------------------------------------------------------*/
46
47
template
<
class
PrimitiveType>
48
class
ensightPTraits
49
{
50
public
:
51
52
// Static data members
53
54
static
const
char
*
const
typeName
;
55
56
};
57
58
59
template
<>
60
class
ensightPTraits
<scalar>
61
{
62
public
:
63
64
static
const
char
*
const
typeName
;
65
};
66
67
template
<>
68
class
ensightPTraits
<
vector
>
69
{
70
public
:
71
72
static
const
char
*
const
typeName
;
73
};
74
75
template
<>
76
class
ensightPTraits
<
sphericalTensor
>
77
{
78
public
:
79
80
static
const
char
*
const
typeName
;
81
};
82
83
template
<>
84
class
ensightPTraits
<
symmTensor
>
85
{
86
public
:
87
88
static
const
char
*
const
typeName
;
89
};
90
91
template
<>
92
class
ensightPTraits
<
tensor
>
93
{
94
public
:
95
96
static
const
char
*
const
typeName
;
97
};
98
99
100
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101
102
}
// End namespace Foam
103
104
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105
106
#endif
107
108
// ************************************************************************* //
pTraits.H
Foam::SymmTensor< scalar >
Foam::SphericalTensor
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators.
Definition:
SphericalTensor.H:51
Foam::ensightPTraits
Conversion of OpenFOAM pTraits into the Ensight equivalent.
Definition:
ensightPTraits.H:47
fieldTypes.H
Include the header files for all the primitive types that Fields are instantiated for...
Foam::Vector< scalar >
Foam::ensightPTraits::typeName
static const char *const typeName
Definition:
ensightPTraits.H:53
Foam::Tensor< scalar >
Foam
Namespace for OpenFOAM.
Definition:
combustionModel.C:30
Generated by
1.8.11