edgeFields.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 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "faMesh.H"
29 #include "edgeFields.H"
30 #include "registerSwitch.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 
42 
48 
50 (
52  "edgeScalarField::Boundary",
53  0
54 );
56 (
58  "edgeVectorField::Boundary",
59  0
60 );
62 (
64  "edgeSphericalTensorField::Boundary",
65  0
66 );
68 (
70  "edgeSymmTensorField::Boundary",
71  0
72 );
74 (
76  "edgeTensorField::Boundary",
77  0
78 );
79 
81 (
82  debug::floatOptimisationSwitch("tolerance", 0)
83 );
85 (
86  debug::floatOptimisationSwitch("tolerance", 0)
87 );
89 (
90  debug::floatOptimisationSwitch("tolerance", 0)
91 );
93 (
94  debug::floatOptimisationSwitch("tolerance", 0)
95 );
97 (
98  debug::floatOptimisationSwitch("tolerance", 0)
99 );
100 
101 // Local-ops consistency enforcing
102 
104 (
105  debug::optimisationSwitch("localConsistency", 1)
106 );
108 (
109  "edgeScalarField::Boundary::localConsistency",
110  int,
112 );
113 
115 (
116  debug::optimisationSwitch("localConsistency", 1)
117 );
119 (
120  "edgeVectorField::Boundary::localConsistency",
121  int,
123 );
124 
126 (
127  debug::optimisationSwitch("localConsistency", 1)
128 );
130 (
131  "edgeSphericalTensorField::Boundary::localConsistency",
132  int,
134 );
135 
137 (
138  debug::optimisationSwitch("localConsistency", 1)
139 );
141 (
142  "edgeSymmTensorField::Boundary::localConsistency",
143  int,
145 );
146 
148 (
149  debug::optimisationSwitch("localConsistency", 1)
150 );
152 (
153  "edgeTensorField::Boundary::localConsistency",
154  int,
156 );
157 
158 } // End namespace Foam
159 
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
registerOptSwitch("fa:geometryOrder", int, faMesh::geometryOrder_)
static scalar tolerance
User-defined tolerance (for consistency checks)
GeometricBoundaryField< scalar, faePatchField, edgeMesh > Boundary
Type of boundary fields.
GeometricField< symmTensor, faePatchField, edgeMesh > edgeSymmTensorField
Definition: edgeFieldsFwd.H:61
defineTemplateDebugSwitchWithName(areaScalarField::Boundary, "areaScalarField::Boundary", 0)
DimensionedField< scalar, edgeMesh > Internal
The internal field type from which this GeometricField is derived.
GeometricField< tensor, faePatchField, edgeMesh > edgeTensorField
Definition: edgeFieldsFwd.H:62
GeometricField< vector, faePatchField, edgeMesh > edgeVectorField
Definition: edgeFieldsFwd.H:58
GeometricField< scalar, faePatchField, edgeMesh > edgeScalarField
Definition: edgeFieldsFwd.H:46
int optimisationSwitch(const char *name, const int deflt=0)
Lookup optimisation switch or add default value.
Definition: debug.C:234
defineTemplateTypeNameAndDebug(faScalarMatrix, 0)
GeometricField< sphericalTensor, faePatchField, edgeMesh > edgeSphericalTensorField
Definition: edgeFieldsFwd.H:60
float floatOptimisationSwitch(const char *name, const float deflt=0)
Lookup optimisation switch or add default value.
Definition: debug.C:240
Namespace for OpenFOAM.