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