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-------------------------------------------------------------------------------
11License
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
34namespace Foam
35{
41
47
48} // End namespace Foam
49
50
51// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52
53// Specializations
54
55namespace Foam
56{
57
58template<>
59tmp<GeometricField<scalar, faPatchField, areaMesh>>
61(
62 const direction
63) const
64{
65 return *this;
66}
67
68template<>
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// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void replace(const direction d, const GeometricField< cmptType, PatchField, GeoMesh > &gcf)
Replace specified field component with content from another field.
#define defineTemplateTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information for templates, useful.
Definition: className.H:132
#define defineTemplate2TypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information for templates, useful.
Definition: className.H:151
const wordList area
Standard area field types (scalar, vector, tensor, etc)
Namespace for OpenFOAM.
uint8_t direction
Definition: direction.H:56