processorCyclicLagrangianPatch.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::processorCyclicLagrangianPatch
26 
27 Description
28  Processor-cyclic Lagrangian patch. This is used for the patches that
29  interface between processors across cyclic patches in the complete mesh.
30 
31 SourceFiles
32  processorCyclicLagrangianPatch.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef processorCyclicLagrangianPatch_H
37 #define processorCyclicLagrangianPatch_H
38 
40 #include "cyclicLagrangianPatch.H"
42 #include "LagrangianBoundaryMesh.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class processorCyclicLagrangianPatch Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
56 {
57 private:
58 
59  // Private Data
60 
61  //- Reference to the processorCyclic poly patch
62  const processorCyclicPolyPatch& processorCyclicPatch_;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName(processorCyclicPolyPatch::typeName_());
69 
70 
71  // Constructors
72 
73  //- Construct from a patch and a boundary mesh
75  (
76  const polyPatch&,
78  );
79 
80 
81  //- Destructor
83 
84 
85  // Member Functions
86 
87  //- Return the processorCyclic patch
89  {
90  return processorCyclicPatch_;
91  }
92 
93  //- Return the referred patch index
94  label referPatchIndex() const
95  {
96  return processorCyclicPatch_.referPatchIndex();
97  }
98 
99  //- Return a reference to the referred patch
100  const cyclicLagrangianPatch& referPatch() const
101  {
102  return
103  refCast<const cyclicLagrangianPatch>
104  (
106  );
107  }
108 
109  //- Return a reference to the referred patch's transform
110  const transformer& transform() const
111  {
112  return processorCyclicPatch_.transform();
113  }
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
Boundary part of a Lagrangian mesh. Just a list of Lagrangian patches with some added convenience fun...
const LagrangianBoundaryMesh & boundaryMesh() const
Return the boundary mesh.
Cyclic Lagrangian patch. This is used for the patches that represent translated or rotated repetition...
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:70
Processor-cyclic Lagrangian patch. This is used for the patches that interface between processors acr...
TypeName(processorCyclicPolyPatch::typeName_())
Runtime type information.
label referPatchIndex() const
Return the referred patch index.
const processorCyclicPolyPatch & processorCyclicPatch() const
Return the processorCyclic patch.
const transformer & transform() const
Return a reference to the referred patch's transform.
processorCyclicLagrangianPatch(const polyPatch &, const LagrangianBoundaryMesh &)
Construct from a patch and a boundary mesh.
const cyclicLagrangianPatch & referPatch() const
Return a reference to the referred patch.
label referPatchIndex() const
Return the referring patchID.
virtual const transformer & transform() const
Return transformation between the coupled patches.
Processor Lagrangian patch. This is used for the patches that interface between processors across fac...
Vector-tensor class used to perform translations, rotations and scaling operations in 3D space.
Definition: transformer.H:84
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