surfaceFields.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) 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 "surfaceFields.H"
30 #include "registerSwitch.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 
42 
48 
50 (
52  "surfaceScalarField::Boundary",
53  0
54 );
56 (
58  "surfaceVectorField::Boundary",
59  0
60 );
62 (
64  "surfaceSphericalTensorField::Boundary",
65  0
66 );
68 (
70  "surfaceSymmTensorField::Boundary",
71  0
72 );
74 (
76  "surfaceTensorField::Boundary",
77  0
78 );
79 
81 (
82  debug::floatOptimisationSwitch("surfaceScalarField::Boundary::tolerance", 0)
83 );
85 (
86  debug::floatOptimisationSwitch("surfaceVectorField::Boundary::tolerance", 0)
87 );
89 (
91  (
92  "surfaceSphericalTensorField::Boundary::tolerance",
93  0
94  )
95 );
97 (
99  (
100  "surfaceSymmTensorField::Boundary::tolerance",
101  0
102  )
103 );
105 (
106  debug::floatOptimisationSwitch("surfaceTensorField::Boundary::tolerance", 0)
107 );
108 
109 
110 // Local-ops consistency enforcing
111 
113 (
114  debug::optimisationSwitch("localConsistency", 1)
115 );
117 (
118  "surfaceScalarField::Boundary::localConsistency",
119  int,
121 );
122 
124 (
125  debug::optimisationSwitch("localConsistency", 1)
126 );
128 (
129  "surfaceVectorField::Boundary::localConsistency",
130  int,
132 );
133 
135 (
136  debug::optimisationSwitch("localConsistency", 1)
137 );
139 (
140  "surfaceSphericalTensorField::Boundary::localConsistency",
141  int,
143 );
144 
146 (
147  debug::optimisationSwitch("localConsistency", 1)
148 );
150 (
151  "surfaceSymmTensorField::Boundary::localConsistency",
152  int,
154 );
155 
157 (
158  debug::optimisationSwitch("localConsistency", 1)
159 );
161 (
162  "surfaceTensorField::Boundary::localConsistency",
163  int,
165 );
166 
167 
168 } // End namespace Foam
169 
170 
171 // * * * * * * * * * * * * * * * * Global Data * * * * * * * * * * * * * * * //
172 
173 // Note hard-coded values are more reliable than other alternatives
174 
176 ({
177  "surfaceScalarField",
178  "surfaceVectorField",
179  "surfaceSphericalTensorField",
180  "surfaceSymmTensorField",
181  "surfaceTensorField"
182 });
183 
184 
185 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::surfaceFields.
registerOptSwitch("fa:geometryOrder", int, faMesh::geometryOrder_)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
GeometricField< sphericalTensor, fvsPatchField, surfaceMesh > surfaceSphericalTensorField
static scalar tolerance
User-defined tolerance (for consistency checks)
GeometricBoundaryField< scalar, fvsPatchField, surfaceMesh > Boundary
Type of boundary fields.
defineTemplateDebugSwitchWithName(areaScalarField::Boundary, "areaScalarField::Boundary", 0)
DimensionedField< scalar, surfaceMesh > Internal
The internal field type from which this GeometricField is derived.
GeometricField< symmTensor, fvsPatchField, surfaceMesh > surfaceSymmTensorField
GeometricField< tensor, fvsPatchField, surfaceMesh > surfaceTensorField
const wordList surface
Standard surface field types (scalar, vector, tensor, etc)
int optimisationSwitch(const char *name, const int deflt=0)
Lookup optimisation switch or add default value.
Definition: debug.C:234
defineTemplateTypeNameAndDebug(faScalarMatrix, 0)
float floatOptimisationSwitch(const char *name, const float deflt=0)
Lookup optimisation switch or add default value.
Definition: debug.C:240
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Namespace for OpenFOAM.