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<>
59 tmp<GeometricField<scalar, faPatchField, areaMesh>>
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
Return a component of the field.
Foam::GeometricField::replace
void replace(const direction d, const GeometricField< cmptType, PatchField, GeoMesh > &gcf)
Replace specified field component with content from another field.
Foam::defineTemplateTypeNameAndDebug
defineTemplateTypeNameAndDebug(faScalarMatrix, 0)
faMesh.H
Foam::areaSphericalTensorField
GeometricField< sphericalTensor, faPatchField, areaMesh > areaSphericalTensorField
Definition: areaFieldsFwd.H:60
Foam::areaVectorField
GeometricField< vector, faPatchField, areaMesh > areaVectorField
Definition: areaFieldsFwd.H:58
Foam::areaSymmTensorField
GeometricField< symmTensor, faPatchField, areaMesh > areaSymmTensorField
Definition: areaFieldsFwd.H:61
Foam::GeometricField< scalar, faPatchField, areaMesh >::Internal
DimensionedField< scalar, areaMesh > Internal
Type of the internal field from which this GeometricField is derived.
Definition: GeometricField.H:107
areaFields.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::areaScalarField
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
Definition: areaFieldsFwd.H:53
Foam::List< word >
Foam::defineTemplate2TypeNameAndDebug
defineTemplate2TypeNameAndDebug(areaScalarField::Internal, 0)
Foam::direction
uint8_t direction
Definition: direction.H:52
Foam::fieldTypes::area
const wordList area
Standard area field types (scalar, vector, tensor, etc)
Foam::GeometricField< scalar, faPatchField, areaMesh >
Foam::areaTensorField
GeometricField< tensor, faPatchField, areaMesh > areaTensorField
Definition: areaFieldsFwd.H:62