areaFields.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) 2016-2017 Wikki Ltd
9  Copyright (C) 2018-2022 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 "faMesh.H"
30 #include "areaFields.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 
42 
48 
49 } // End namespace Foam
50 
51 
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 
54 // Specializations
55 
56 namespace Foam
57 {
58 
59 template<>
62 (
63  const direction
64 ) const
65 {
66  return *this;
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  "areaScalarField",
89  "areaVectorField",
90  "areaSphericalTensorField",
91  "areaSymmTensorField",
92  "areaTensorField"
93 });
94 
96 ({
97  "areaScalarField::Internal",
98  "areaVectorField::Internal",
99  "areaSphericalTensorField::Internal",
100  "areaSymmTensorField::Internal",
101  "areaTensorField::Internal"
102 });
103 
104 
105 // ************************************************************************* //
uint8_t direction
Definition: direction.H:48
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
GeometricField< symmTensor, faPatchField, areaMesh > areaSymmTensorField
Definition: areaFieldsFwd.H:84
Generic GeometricField class.
Definition: areaFieldsFwd.H:50
DimensionedField< scalar, areaMesh > Internal
The internal field type from which this GeometricField is derived.
const wordList area
Standard area field types (scalar, vector, tensor, etc)
GeometricField< tensor, faPatchField, areaMesh > areaTensorField
Definition: areaFieldsFwd.H:85
GeometricField< sphericalTensor, faPatchField, areaMesh > areaSphericalTensorField
Definition: areaFieldsFwd.H:83
defineTemplateTypeNameAndDebug(faScalarMatrix, 0)
const wordList area_internal
Standard dimensioned field types (scalar, vector, tensor, etc)
A class for managing temporary objects.
Definition: HashPtrTable.H:50
GeometricField< vector, faPatchField, areaMesh > areaVectorField
Definition: areaFieldsFwd.H:81
Namespace for OpenFOAM.
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
Definition: areaFieldsFwd.H:80