LagrangianBoundaryMesh.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::LagrangianBoundaryMesh
26 
27 Description
28  Boundary part of a Lagrangian mesh. Just a list of Lagrangian patches with
29  some added convenience functions.
30 
31 SourceFiles
32  LagrangianBoundaryMesh.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef LagrangianBoundaryMesh_H
37 #define LagrangianBoundaryMesh_H
38 
39 #include "PtrList.H"
40 #include "LagrangianPatch.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 // Forward declaration of classes
48 class LagrangianMesh;
49 class polyBoundaryMesh;
50 
51 /*---------------------------------------------------------------------------*\
52  Class LagrangianBoundaryMesh Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public PtrList<LagrangianPatch>
58 {
59  // Private Data
60 
61  //- Reference to mesh
62  const LagrangianMesh& mesh_;
63 
64 
65 public:
66 
67  // Constructors
68 
69  //- Construct from LagrangianMesh and polyBoundaryMesh
71 
72  //- Construct from LagrangianMesh and polyBoundaryMesh and a list of
73  // patch types
75  (
76  const LagrangianMesh&,
77  const polyBoundaryMesh&,
78  const wordList&
79  );
80 
81  //- Disallow default bitwise copy construction
83 
84 
85  //- Destructor
87 
88 
89  // Member Functions
90 
91  //- Return the mesh reference
92  const LagrangianMesh& mesh() const
93  {
94  return mesh_;
95  }
96 
97  //- Find patch index given a name
98  label findIndex(const word& patchName) const;
99 
100  //- Find patch indices given a name
101  labelList findIndices(const wordRe&, const bool useGroups) const;
102 
103 
104  // Member Operators
105 
106  //- Disallow default bitwise assignment
107  void operator=(const LagrangianBoundaryMesh&) = delete;
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Boundary part of a Lagrangian mesh. Just a list of Lagrangian patches with some added convenience fun...
label findIndex(const word &patchName) const
Find patch index given a name.
labelList findIndices(const wordRe &, const bool useGroups) const
Find patch indices given a name.
void operator=(const LagrangianBoundaryMesh &)=delete
Disallow default bitwise assignment.
const LagrangianMesh & mesh() const
Return the mesh reference.
LagrangianBoundaryMesh(const LagrangianMesh &, const polyBoundaryMesh &)
Construct from LagrangianMesh and polyBoundaryMesh.
Class containing Lagrangian geometry and topology.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: PtrList.H:75
Foam::polyBoundaryMesh.
A wordRe is a word, but can also have a regular expression for matching words.
Definition: wordRe.H:77
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59