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-------------------------------------------------------------------------------
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 "volFields.H"
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33namespace Foam
34{
38 (
40 0
41 );
43 (
45 0
46 );
48
54
55} // End namespace Foam
56
57
58// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
59
60// Specializations
61
62namespace Foam
63{
64
65template<>
66tmp<GeometricField<scalar, fvPatchField, volMesh>>
68(
69 const direction
70) const
71{
72 return *this;
73}
74
75
76template<>
78(
79 const direction,
81)
82{
83 *this == gsf;
84}
85
86} // End namespace Foam
87
88
89// * * * * * * * * * * * * * * * * Global Data * * * * * * * * * * * * * * * //
90
91// Note hard-coded values are more reliable than other alternatives
92
94({
95 "volScalarField::Internal",
96 "volVectorField::Internal",
97 "volSphericalTensorField::Internal",
98 "volSymmTensorField::Internal",
99 "volTensorField::Internal"
100});
101
102
104({
105 "volScalarField",
106 "volVectorField",
107 "volSphericalTensorField",
108 "volSymmTensorField",
109 "volTensorField"
110});
111
112
113// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DimensionedField< scalar, volMesh > Internal
The internal field type from which this GeometricField is derived.
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 volume
Standard volume field types (scalar, vector, tensor, etc)
const wordList internal
Standard dimensioned field types (scalar, vector, tensor, etc)
Namespace for OpenFOAM.
uint8_t direction
Definition: direction.H:56