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 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 {
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 template<>
70 (
71  const direction,
73 )
74 {
75  *this == gsf;
76 }
77 
78 } // End namespace Foam
79 
80 
81 // * * * * * * * * * * * * * * * * Global Data * * * * * * * * * * * * * * * //
82 
83 // Note hard-coded values are more reliable than other alternatives
84 
86 ({
87  "areaScalarField",
88  "areaVectorField",
89  "areaSphericalTensorField",
90  "areaSymmTensorField",
91  "areaTensorField"
92 });
93 
94 
95 // ************************************************************************* //
Foam::GeometricField::component
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Foam::GeometricField::replace
void replace(const direction d, const GeometricField< cmptType, PatchField, GeoMesh > &gcf)
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:57
Foam::defineTemplateTypeNameAndDebug
defineTemplateTypeNameAndDebug(faScalarMatrix, 0)
faMesh.H
Foam::areaSphericalTensorField
GeometricField< sphericalTensor, faPatchField, areaMesh > areaSphericalTensorField
Definition: areaFieldsFwd.H:56
Foam::areaVectorField
GeometricField< vector, faPatchField, areaMesh > areaVectorField
Definition: areaFieldsFwd.H:54
Foam::areaSymmTensorField
GeometricField< symmTensor, faPatchField, areaMesh > areaSymmTensorField
Definition: areaFieldsFwd.H:57
Foam::GeometricField::Internal
DimensionedField< Type, GeoMesh > Internal
Definition: GeometricField.H:103
areaFields.H
Foam
Definition: atmBoundaryLayer.C:26
Foam::areaScalarField
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
Definition: areaFieldsFwd.H:49
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: BitOps.H:58
Foam::direction
uint8_t direction
Definition: direction.H:46
Foam::defineTemplate2TypeNameAndDebug
defineTemplate2TypeNameAndDebug(areaScalarField::Internal, 0)
Foam::fieldTypes::area
const wordList area
Foam::GeometricField< scalar, faPatchField, areaMesh >
Foam::areaTensorField
GeometricField< tensor, faPatchField, areaMesh > areaTensorField
Definition: areaFieldsFwd.H:58