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-2022 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  const word& patchType
78 )
79 :
81  (
82  newName(referPatchName, myProcNo, neighbProcNo),
83  size,
84  start,
85  index,
86  bm,
87  myProcNo,
88  neighbProcNo,
89  referPatchName,
90  patchType
91  ),
92  nonConformalCoupledPolyPatch(*this, origPatchName)
93 {}
94 
95 
98 (
99  const word& name,
100  const dictionary& dict,
101  const label index,
102  const polyBoundaryMesh& bm,
103  const word& patchType
104 )
105 :
106  processorCyclicPolyPatch(name, dict, index, bm, patchType),
108 {}
109 
110 
113 (
115  const polyBoundaryMesh& bm
116 )
117 :
118  processorCyclicPolyPatch(pp, bm),
120 {}
121 
122 
125 (
127  const polyBoundaryMesh& bm,
128  const label index,
129  const label newSize,
130  const label newStart
131 )
132 :
133  processorCyclicPolyPatch(pp, bm, index, newSize, newStart),
135 {}
136 
137 
138 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
139 
142 {}
143 
144 
145 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
146 
148 {
149  return false;
150 }
151 
152 
154 {
157 }
158 
159 
160 // ************************************************************************* //
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 keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
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.
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, const word &patchType=typeName)
Construct from components.
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.
Foam::polyBoundaryMesh.
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:70
virtual void rename(const wordList &newNames)
Reset the patch name.
Definition: polyPatch.C:82
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
Definition: polyPatch.C:88
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
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
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
dictionary dict