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-2018 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 typedef
62 
64  <
67 
68 
69  // Private data
70 
72 
74 
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("nonUniformField");
82 
83 
84  // Constructors
85 
86  //- Construct from components
88  (
89  const dictionary& cellSizeFunctionDict,
90  const searchableSurface& surface,
91  const scalar& defaultCellSize
92  );
93 
94 
95  //- Destructor
96  virtual ~nonUniformField()
97  {}
98 
99 
100  // Member Functions
101 
102  // Query
103 
104  //- Return the interpolated cell size for a point in the given
105  // surface triangle
106  virtual scalar interpolate
107  (
108  const point& pt,
109  const label index
110  ) const;
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
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:137
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_
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
PrimitivePatchInterpolation< PrimitivePatch< labelledTri, List, pointField, point > > primitivePatchInterpolation
const triSurfaceMesh & surfaceTriMesh_
Namespace for OpenFOAM.
nonUniformField(const dictionary &cellSizeFunctionDict, const searchableSurface &surface, const scalar &defaultCellSize)
Construct from components.