nonUniformField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::nonUniformField
26 
27 Description
28 
29 SourceFiles
30  nonUniformField.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef nonUniformField_H
35 #define nonUniformField_H
36 
37 #include "triSurfaceFields.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class triSurfaceMesh;
48 class searchableSurface;
49 
50 /*---------------------------------------------------------------------------*\
51  Class nonUniformField Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class nonUniformField
55 :
57 {
58 
59 protected:
60 
61  // Private Typedefs
62 
64  <
66  >
68 
69 
70  // Private Data
71 
73 
75 
77 
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("nonUniformField");
83 
84 
85  // Constructors
86 
87  //- Construct from components
89  (
90  const dictionary& cellSizeFunctionDict,
91  const searchableSurface& surface,
92  const scalar& defaultCellSize
93  );
94 
95 
96  //- Destructor
97  virtual ~nonUniformField()
98  {}
99 
100 
101  // Member Functions
102 
103  // Query
104 
105  //- Return the interpolated cell size for a point in the given
106  // surface triangle
107  virtual scalar interpolate
108  (
109  const point& pt,
110  const label index
111  ) const;
112 };
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
TypeName("nonUniformField")
Runtime type information.
Fields for triSurface.
autoPtr< cellSizeCalculationType > cellSizeCalculationType_
Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP.
virtual ~nonUniformField()
Destructor.
Abstract base class for specifying target cell sizes.
IOoject and searching on triSurface.
A list of faces which address into the list of points.
triSurfacePointScalarField pointCellSize_
PrimitivePatchInterpolation< PrimitivePatch< List< labelledTri >, pointField > > primitivePatchInterpolation
virtual scalar interpolate(const point &pt, const label index) const
Return the interpolated cell size for a point in the given.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
const triSurfaceMesh & surfaceTriMesh_
Namespace for OpenFOAM.
nonUniformField(const dictionary &cellSizeFunctionDict, const searchableSurface &surface, const scalar &defaultCellSize)
Construct from components.