sampledIsoSurfacePoint.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2020 OpenCFD 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 Class
27  Foam::sampledIsoSurfacePoint
28 
29 Description
30  A sampledSurface defined by a surface of iso value using a
31  \em point algorithm (always triangulated!).
32  It only recalculates the iso-surface if time changes.
33  To be used in sampleSurfaces / functionObjects.
34 
35 Usage
36  Example of function object partial specification:
37  \verbatim
38  surfaces
39  {
40  surface1
41  {
42  type isoSurfacePoint;
43  isoField T;
44  isoValue 373;
45  }
46  }
47  \endverbatim
48 
49  Where the sub-entries comprise:
50  \table
51  Property | Description | Required | Default
52  type | isoSurfacePoint | yes |
53  isoField | field name for obtaining iso-surface | yes |
54  isoValue | value of iso-surface | yes |
55  average | cell values from averaged point values | no | false
56  bounds | limit with bounding box | no |
57  zone | limit to cell zone (name or regex) | no |
58  zones | limit to cell zones (names, regexs) | no |
59  regularise | point snapping | yes |
60  mergeTol | tolerance for merging points | no | 1e-6
61  \endtable
62 
63 SourceFiles
64  sampledIsoSurfacePoint.C
65 
66 \*---------------------------------------------------------------------------*/
67 
68 #ifndef sampledIsoSurfacePoint_H
69 #define sampledIsoSurfacePoint_H
70 
71 #include "sampledIsoSurface.H"
72 
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 
75 namespace Foam
76 {
77 
78 /*---------------------------------------------------------------------------*\
79  Class sampledIsoSurfacePoint Declaration
80 \*---------------------------------------------------------------------------*/
81 
82 class sampledIsoSurfacePoint
83 :
84  public sampledIsoSurface
85 {
86 public:
87 
88  //- Runtime type information
89  TypeNameNoDebug("sampledIsoSurfacePoint");
90 
91 
92  // Constructors
93 
94  //- Construct from dictionary
96  (
97  const word& name,
98  const polyMesh& mesh,
99  const dictionary& dict
100  );
101 
102 
103  //- Destructor
104  virtual ~sampledIsoSurfacePoint() = default;
105 };
106 
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 } // End namespace Foam
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
sampledIsoSurface.H
Foam::sampledIsoSurfacePoint
A sampledSurface defined by a surface of iso value using a point algorithm (always triangulated!...
Definition: sampledIsoSurfacePoint.H:131
Foam::sampledIsoSurfacePoint::TypeNameNoDebug
TypeNameNoDebug("sampledIsoSurfacePoint")
Runtime type information.
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::sampledIsoSurface
A sampledSurface defined by a surface of iso value. It only recalculates the iso-surface if time chan...
Definition: sampledIsoSurface.H:169
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::sampledSurface::name
const word & name() const
Name of surface.
Definition: sampledSurface.H:321
Foam::sampledIsoSurfacePoint::~sampledIsoSurfacePoint
virtual ~sampledIsoSurfacePoint()=default
Destructor.
Foam::sampledSurface::mesh
const polyMesh & mesh() const
Access to the underlying mesh.
Definition: sampledSurface.H:315
Foam::sampledIsoSurfacePoint::sampledIsoSurfacePoint
sampledIsoSurfacePoint(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
Definition: sampledIsoSurfacePoint.C:48