nonUniformField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2012-2015 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,
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 // ************************************************************************* //
PrimitivePatchInterpolation.H
triSurfaceFields.H
Fields for triSurface.
Foam::triSurfaceMesh
IOoject and searching on triSurface.
Definition: triSurfaceMesh.H:63
Foam::nonUniformField::surfaceTriMesh_
const triSurfaceMesh & surfaceTriMesh_
Definition: nonUniformField.H:70
Foam::nonUniformField::nonUniformField
nonUniformField(const dictionary &cellSizeFunctionDict, const searchableSurface &surface, const scalar &defaultCellSize)
Construct from components.
Foam::label
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
Foam::nonUniformField::cellSizeCalculationType_
autoPtr< cellSizeCalculationType > cellSizeCalculationType_
Definition: nonUniformField.H:72
Foam::nonUniformField::~nonUniformField
virtual ~nonUniformField()
Destructor.
Definition: nonUniformField.H:95
Foam::searchableSurface
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
Definition: searchableSurface.H:66
surfaceCellSizeFunction.H
Foam::nonUniformField::pointCellSize_
triSurfacePointScalarField pointCellSize_
Definition: nonUniformField.H:74
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::nonUniformField::primitivePatchInterpolation
PrimitivePatchInterpolation< PrimitivePatch< labelledTri, List, pointField, point > > primitivePatchInterpolation
Definition: nonUniformField.H:65
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
cellSizeCalculationType.H
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
Foam::PrimitivePatchInterpolation
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
Definition: PrimitivePatchInterpolation.H:51
Foam::Vector< scalar >
Foam::nonUniformField
Definition: nonUniformField.H:53
Foam::surface
Definition: surface.H:55
Foam::nonUniformField::TypeName
TypeName("nonUniformField")
Runtime type information.
Foam::surfaceCellSizeFunction
Abstract base class for specifying target cell sizes.
Definition: surfaceCellSizeFunction.H:51
Foam::nonUniformField::interpolate
virtual scalar interpolate(const point &pt, const label index) const
Return the interpolated cell size for a point in the given.
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51
Foam::PrimitivePatch< labelledTri, List, pointField, point >