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 {
33  defineTypeNameAndDebug(nonConformalProcessorCyclicPolyPatch, 0);
35  (
36  polyPatch,
37  nonConformalProcessorCyclicPolyPatch,
38  dictionary
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),
107  nonConformalCoupledPolyPatch(*this, dict)
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 
140 (
142  const polyBoundaryMesh& bm,
143  const label index,
144  const labelUList& mapAddressing,
145  const label newStart
146 )
147 :
148  processorCyclicPolyPatch(pp, bm, index, mapAddressing, newStart),
150 {}
151 
152 
153 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
154 
157 {}
158 
159 
160 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
161 
163 {
164  return false;
165 }
166 
167 
169 {
172 }
173 
174 
175 // ************************************************************************* //
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Non-conformal coupled poly patch. As nonConformalPolyPatch, but this patch is coupled to another non-...
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void rename(const wordList &newNames)
Reset the patch name.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Macros for easy insertion into run-time selection tables.
Non-conformal processor cyclic poly patch. As nonConformalCyclicPolyPatch, but the neighbouring patch...
virtual bool coupled() const
Is this patch coupled? Returns false. For NCC patches the poly.
A class for handling words, derived from string.
Definition: word.H:59
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 reorder(const labelUList &newToOldIndex)
Reset the patch index.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition: HashTable.H:60
Foam::polyBoundaryMesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
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 rename(const wordList &newNames)
Reset the patch name.
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
Namespace for OpenFOAM.