pointFields.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 -------------------------------------------------------------------------------
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 "polyMesh.H"
29 #include "pointFields.H"
30 #include "registerSwitch.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 
42 
48 
49 
51 (
53  "pointScalarField::Boundary",
54  0
55 );
57 (
59  "pointVectorField::Boundary",
60  0
61 );
63 (
65  "pointSphericalTensorField::Boundary",
66  0
67 );
69 (
71  "pointSymmTensorField::Boundary",
72  0
73 );
75 (
77  "pointTensorField::Boundary",
78  0
79 );
80 
81 
82 
83 // Local-ops consistency enforcing
84 
86 (
87  debug::optimisationSwitch("localConsistency", 1)
88 );
90 (
91  "localConsistency",
92  int,
94 );
95 
97 (
98  debug::optimisationSwitch("localConsistency", 1)
99 );
101 (
102  "pointVectorField::Boundary::localConsistency",
103  int,
105 );
106 
108 (
109  debug::optimisationSwitch("localConsistency", 1)
110 );
112 (
113  "pointSphericalTensorField::Boundary::localConsistency",
114  int,
116 );
117 
119 (
120  debug::optimisationSwitch("localConsistency", 1)
121 );
123 (
124  "pointSymmTensorField::Boundary::localConsistency",
125  int,
127 );
128 
130 (
131  debug::optimisationSwitch("localConsistency", 1)
132 );
134 (
135  "pointTensorField::Boundary::localConsistency",
136  int,
138 );
139 
140 
141 } // End namespace Foam
142 
143 
144 // * * * * * * * * * * * * * * * * Global Data * * * * * * * * * * * * * * * //
145 
146 // Note hard-coded values are more reliable than other alternatives
147 
149 ({
150  "pointScalarField",
151  "pointVectorField",
152  "pointSphericalTensorField",
153  "pointSymmTensorField",
154  "pointTensorField"
155 });
156 
157 
158 // ************************************************************************* //
registerOptSwitch("fa:geometryOrder", int, faMesh::geometryOrder_)
GeometricField< vector, pointPatchField, pointMesh > pointVectorField
GeometricBoundaryField< scalar, pointPatchField, pointMesh > Boundary
Type of boundary fields.
defineTemplateDebugSwitchWithName(areaScalarField::Boundary, "areaScalarField::Boundary", 0)
DimensionedField< scalar, pointMesh > Internal
The internal field type from which this GeometricField is derived.
GeometricField< tensor, pointPatchField, pointMesh > pointTensorField
GeometricField< scalar, pointPatchField, pointMesh > pointScalarField
const wordList point
Standard point 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)
GeometricField< sphericalTensor, pointPatchField, pointMesh > pointSphericalTensorField
GeometricField< symmTensor, pointPatchField, pointMesh > pointSymmTensorField
Namespace for OpenFOAM.