volFields.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2018 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
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 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "volFields.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 
41 
47 
48 } // End namespace Foam
49 
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 // Specializations
54 
55 namespace Foam
56 {
57 
58 template<>
61 (
62  const direction
63 ) const
64 {
65  return *this;
66 }
67 
68 
69 template<>
71 (
72  const direction,
74 )
75 {
76  *this == gsf;
77 }
78 
79 } // End namespace Foam
80 
81 
82 // * * * * * * * * * * * * * * * * Global Data * * * * * * * * * * * * * * * //
83 
84 // Note hard-coded values are more reliable than other alternatives
85 
87 ({
88  "volScalarField::Internal",
89  "volVectorField::Internal",
90  "volSphericalTensorField::Internal",
91  "volSymmTensorField::Internal",
92  "volTensorField::Internal"
93 });
94 
95 
97 ({
98  "volScalarField",
99  "volVectorField",
100  "volSphericalTensorField",
101  "volSymmTensorField",
102  "volTensorField"
103 });
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
Definition: volFieldsFwd.H:85
uint8_t direction
Definition: direction.H:48
GeometricField< tensor, fvPatchField, volMesh > volTensorField
Definition: volFieldsFwd.H:86
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
Generic GeometricField class.
Definition: areaFieldsFwd.H:50
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:82
DimensionedField< scalar, volMesh > Internal
The internal field type from which this GeometricField is derived.
GeometricField< sphericalTensor, fvPatchField, volMesh > volSphericalTensorField
Definition: volFieldsFwd.H:84
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:81
const wordList volume
Standard volume field types (scalar, vector, tensor, etc)
defineTemplateTypeNameAndDebug(faScalarMatrix, 0)
const wordList internal
Standard dimensioned field types (scalar, vector, tensor, etc)
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Namespace for OpenFOAM.