Loading...
Searching...
No Matches
polySurfacePointGeoMesh.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) 2019-2025 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::polySurfacePointGeoMesh
28
29Description
30 The polySurface GeoMesh for point fields.
31
32\*---------------------------------------------------------------------------*/
33
34#ifndef Foam_polySurfacePointGeoMesh_H
35#define Foam_polySurfacePointGeoMesh_H
36
37#include "polySurface.H"
38#include "GeoMesh.H"
39
40// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41
42namespace Foam
43{
44
45/*---------------------------------------------------------------------------*\
46 Class polySurfacePointGeoMesh Declaration
47\*---------------------------------------------------------------------------*/
48
50:
51 public GeoMesh<polySurface>
52{
53public:
54
55 // Constructors
56
57 //- Construct from polySurface reference
59 :
61 {}
62
63
64 // Static Functions
65
66 //- The geometric (internal) size - number of points.
67 // Method name expected by GeoMesh interface
68 static label size(const polySurface& mesh)
69 {
70 return mesh.nPoints();
71 }
72
73 //- The geometric boundary size - not used.
74 // Method name expected by GeoMesh interface
75 static label boundary_size(const polySurface& mesh) noexcept
76 {
77 return 0;
78 }
79
80
81 // Member Functions
82
83 //- The geometric (internal) size - number of points.
84 // Method name expected by GeoMesh interface
85 label size() const
86 {
87 return size(mesh_);
88 }
90 // FUTURE?
91 // //- Return the object registry for point fields
92 // const objectRegistry& thisDb() const
93 // {
94 // return mesh_.pointData();
95 // }
96};
97
98
99// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100
101} // End namespace Foam
102
103// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104
105#endif
106
107// ************************************************************************* //
const polySurface & mesh_
Definition GeoMesh.H:54
GeoMesh(const polySurface &mesh)
Definition GeoMesh.H:70
static label boundary_size(const polySurface &mesh) noexcept
The geometric boundary size - not used.
polySurfacePointGeoMesh(const polySurface &mesh)
Construct from polySurface reference.
label size() const
The geometric (internal) size - number of points.
static label size(const polySurface &mesh)
The geometric (internal) size - number of points.
A surface mesh consisting of general polygon faces and capable of holding fields.
Definition polySurface.H:67
dynamicFvMesh & mesh
Namespace for OpenFOAM.