sampledIsoSurfaceCell.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) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2016-2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::sampledIsoSurfaceCell
29 
30 Description
31  A sampledSurface defined by a surface of iso value using a
32  \em cell algorithm.
33  It only recalculates the iso-surface if time changes.
34  To be used in sampleSurfaces / functionObjects.
35 
36 Usage
37  Example of function object partial specification:
38  \verbatim
39  surfaces
40  {
41  surface1
42  {
43  type isoSurfaceCell;
44  isoField T;
45  isoValue 373;
46  }
47  }
48  \endverbatim
49 
50  Where the sub-entries comprise:
51  \table
52  Property | Description | Required | Default
53  type | isoSurfaceCell | yes |
54  isoField | field name for obtaining iso-surface | yes |
55  isoValue | value of iso-surface | yes |
56  average | cell values from averaged point values | no | false
57  bounds | limit with bounding box | no |
58  zone | limit to cell zone (name or regex) | no |
59  zones | limit to cell zones (names, regexs) | no |
60  regularise | point snapping | yes |
61  mergeTol | tolerance for merging points | no | 1e-6
62  \endtable
63 
64 SourceFiles
65  sampledIsoSurfaceCell.C
66 
67 \*---------------------------------------------------------------------------*/
68 
69 #ifndef sampledIsoSurfaceCell_H
70 #define sampledIsoSurfaceCell_H
71 
72 #include "sampledIsoSurface.H"
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 namespace Foam
77 {
78 
79 /*---------------------------------------------------------------------------*\
80  Class sampledIsoSurfaceCell Declaration
81 \*---------------------------------------------------------------------------*/
82 
83 class sampledIsoSurfaceCell
84 :
85  public sampledIsoSurface
86 {
87 public:
88 
89  //- Runtime type information
90  TypeNameNoDebug("sampledIsoSurfaceCell");
91 
92 
93  // Constructors
94 
95  //- Construct from dictionary
97  (
98  const word& name,
99  const polyMesh& mesh,
100  const dictionary& dict
101  );
102 
103 
104  //- Destructor
105  virtual ~sampledIsoSurfaceCell() = default;
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace Foam
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #endif
116 
117 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
sampledIsoSurface.H
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:173
Foam::sampledIsoSurfaceCell::TypeNameNoDebug
TypeNameNoDebug("sampledIsoSurfaceCell")
Runtime type information.
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:123
Foam::sampledSurface::name
const word & name() const noexcept
Name of surface.
Definition: sampledSurface.H:322
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::sampledSurface::mesh
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
Definition: sampledSurface.H:316
Foam::sampledIsoSurfaceCell::sampledIsoSurfaceCell
sampledIsoSurfaceCell(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
Definition: sampledIsoSurfaceCell.C:49
Foam::sampledIsoSurfaceCell
A sampledSurface defined by a surface of iso value using a cell algorithm. It only recalculates the i...
Definition: sampledIsoSurfaceCell.H:132
Foam::sampledIsoSurfaceCell::~sampledIsoSurfaceCell
virtual ~sampledIsoSurfaceCell()=default
Destructor.