externalPoints.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) 2025-2026 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::zoneGenerators::externalPoints
26 
27 Description
28  A zoneGenerator which selects the static external points
29 
30  i.e. points that are outside interior of the cylinder liner
31 
32 Usage
33  \table
34  Property | Description | Required | Default value
35  type | Type: externalPoints | yes |
36  name | Name of the zone | no | zoneGenerator name
37  moveUpdate | Switch to update after mesh motion | no | false
38  \endtable
39 
40  To create the \c externalPoints pointZone:
41  \verbatim
42  externalPoints;
43  \endverbatim
44  or the same pointZone but named \c staticPoints:
45  \verbatim
46  staticPoints
47  {
48  type externalPoints;
49  }
50  \endverbatim
51 
52 SourceFiles
53  externalPoints.C
54 
55 \*---------------------------------------------------------------------------*/
56 
57 #ifndef externalPoints_H
58 #define externalPoints_H
59 
60 #include "zoneGeneratorList.H"
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 namespace Foam
65 {
66 namespace zoneGenerators
67 {
68 
69 /*---------------------------------------------------------------------------*\
70  Class externalPoints Declaration
71 \*---------------------------------------------------------------------------*/
72 
73 class externalPoints
74 :
75  public zoneGenerator
76 {
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("externalPoints");
82 
83 
84  // Constructors
85 
86  //- Construct from dictionary
88  (
89  const word& name,
90  const polyMesh& mesh,
91  const dictionary& dict
92  );
93 
94 
95  //- Destructor
96  virtual ~externalPoints();
97 
98 
99  // Member Functions
100 
101  virtual zoneSet generate() const;
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace zoneGenerators
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
const word & name() const
Return the zoneGenerator name.
const polyMesh & mesh() const
Return reference to the polyMesh.
virtual zoneSet generate() const
Generate and return the zoneSet.
virtual ~externalPoints()
Destructor.
externalPoints(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
TypeName("externalPoints")
Runtime type information.
Zone container returned by zoneGenerator::generate.
Definition: zoneSet.H:94
Namespace for OpenFOAM.
dictionary dict