nonConformalProcessorCyclicPolyPatch.C
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) 2011-2026 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 \*---------------------------------------------------------------------------*/
25 
28 
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
35  (
36  polyPatch,
39  );
40 }
41 
42 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
43 
45 (
46  const wordList& newNames
47 )
48 {
51 }
52 
53 
55 (
56  const labelUList& newToOldIndex
57 )
58 {
59  processorCyclicPolyPatch::reorder(newToOldIndex);
61 }
62 
63 
64 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
65 
68 (
69  const label size,
70  const label start,
71  const label index,
72  const polyBoundaryMesh& bm,
73  const int myProcNo,
74  const int neighbProcNo,
75  const word& referPatchName,
76  const word& origPatchName
77 )
78 :
80  (
81  newName(referPatchName, myProcNo, neighbProcNo),
82  size,
83  start,
84  index,
85  bm,
86  myProcNo,
87  neighbProcNo,
88  referPatchName
89  ),
90  nonConformalCoupledPolyPatch(*this, origPatchName)
91 {}
92 
93 
96 (
97  const word& name,
98  const dictionary& dict,
99  const label index,
100  const polyBoundaryMesh& bm
101 )
102 :
103  processorCyclicPolyPatch(name, dict, index, bm),
105 {}
106 
107 
110 (
112  const polyBoundaryMesh& bm
113 )
114 :
115  processorCyclicPolyPatch(pp, bm),
117 {}
118 
119 
122 (
124  const polyBoundaryMesh& bm,
125  const label index,
126  const label newSize,
127  const label newStart
128 )
129 :
130  processorCyclicPolyPatch(pp, bm, index, newSize, newStart),
132 {}
133 
134 
135 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
136 
139 {}
140 
141 
142 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
143 
145 {
146  return false;
147 }
148 
149 
151 {
154 }
155 
156 
157 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Non-conformal coupled poly patch. As nonConformalPolyPatch, but this patch is coupled to another non-...
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void rename(const wordList &newNames)
Reset the patch name.
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
Non-conformal processor cyclic poly patch. As nonConformalCyclicPolyPatch, but the neighbouring patch...
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void rename(const wordList &newNames)
Reset the patch name.
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
virtual bool coupled() const
Is this patch coupled? Returns false. For NCC patches the poly.
nonConformalProcessorCyclicPolyPatch(const label size, const label start, const label index, const polyBoundaryMesh &bm, const int myProcNo, const int neighbProcNo, const word &referPatchName, const word &origPatchName)
Construct from components.
Foam::polyBoundaryMesh.
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:71
virtual void rename(const wordList &newNames)
Reset the patch name.
Definition: polyPatch.C:81
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
Definition: polyPatch.C:87
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
A class for handling words, derived from string.
Definition: word.H:63
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
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
dictionary dict