Loading...
Searching...
No Matches
pointMeshTools.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) 2024 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::polyMeshTools
28
29Description
30 Collection of static functions operating on pointMesh.
31
32SourceFiles
33 pointMeshTools.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef Foam_pointMeshTools_H
38#define Foam_pointMeshTools_H
39
40#include "pointMesh.H"
41#include "pointConstraint.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
49/*---------------------------------------------------------------------------*\
50 Class pointMeshTools Declaration
51\*---------------------------------------------------------------------------*/
52
54{
55public:
56
57 //- Analyse patch for feature edges, feature points. Handles points
58 //- not being on a face of patch but coupled to it.
59 static void featurePointsEdges
60 (
61 const polyMesh& mesh,
62
64 // Per boundary face to zone
65 const labelUList& faceToZone,
66 // Number of zones
67 const label nZones,
68
69 const scalar edgeFeatureAngle,
70 //const scalar pointFeatureAngle, //not yet done
71
72 // Feature edge(points) internal to a zone
73 labelListList& zoneToMeshPoints,
74 List<pointConstraintList>& zoneToConstraints,
75
76 // Feature edge(points) in between zones
77 labelList& twoZoneMeshPoints,
78 pointConstraintList& twoZoneConstraints,
79
80 // Feature points on > 2 zones
81 labelList& multiZoneMeshPoints,
82 pointConstraintList& multiZoneConstraints
83 );
84};
85
86
87// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88
89} // End namespace Foam
90
91// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92
93#endif
94
95// ************************************************************************* //
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition List.H:72
static void featurePointsEdges(const polyMesh &mesh, const uindirectPrimitivePatch &boundary, const labelUList &faceToZone, const label nZones, const scalar edgeFeatureAngle, labelListList &zoneToMeshPoints, List< pointConstraintList > &zoneToConstraints, labelList &twoZoneMeshPoints, pointConstraintList &twoZoneConstraints, labelList &multiZoneMeshPoints, pointConstraintList &multiZoneConstraints)
Analyse patch for feature edges, feature points. Handles points not being on a face of patch but coup...
Mesh consisting of general polyhedral cells.
Definition polyMesh.H:79
faceListList boundary
dynamicFvMesh & mesh
Namespace for OpenFOAM.
List< labelList > labelListList
List of labelList.
Definition labelList.H:38
List< label > labelList
A List of labels.
Definition List.H:62
List< pointConstraint > pointConstraintList
List of pointConstraint.
PrimitivePatch< UIndirectList< face >, const pointField & > uindirectPrimitivePatch
A PrimitivePatch with UIndirectList for the faces, const reference for the point field.
UList< label > labelUList
A UList of labels.
Definition UList.H:75