processorCyclicPointPatch.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::processorCyclicPointPatch
28 
29 Description
30  Processor patch boundary needs to be such that the ordering of
31  points in the patch is the same on both sides.
32 
33  Looking at the creation of the faces on both sides of the processor
34  patch they need to be identical on both sides with the normals pointing
35  in opposite directions. This is achieved by calling the reverseFace
36  function in the decomposition. It is therefore possible to re-create
37  the ordering of patch points on the slave side by reversing all the
38  patch faces of the owner.
39 
40 SourceFiles
41  processorCyclicPointPatch.C
42 
43 \*---------------------------------------------------------------------------*/
44 
45 #ifndef processorCyclicPointPatch_H
46 #define processorCyclicPointPatch_H
47 
48 #include "processorPointPatch.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class processorCyclicPointPatch Declaration
58 \*---------------------------------------------------------------------------*/
59 
61 :
62  public processorPointPatch
63 {
64  // Private data
65 
66  const processorCyclicPolyPatch& procCycPolyPatch_;
67 
68  //- No copy construct
70 
71  //- No copy assignment
72  void operator=(const processorCyclicPointPatch&) = delete;
73 
74 public:
75 
76  //- Runtime type information
77  TypeName(processorCyclicPolyPatch::typeName_());
78 
79 
80  // Constructors
81 
82  //- Construct from components
84  (
85  const polyPatch& patch,
86  const pointBoundaryMesh& bm
87  );
88 
89 
90  // Destructor
91 
93 
94 
95  // Member functions
96 
97 
98  //- Return message tag to use for communication
99  virtual int tag() const
100  {
101  return procCycPolyPatch_.tag();
102  }
103 
104  //- Return the underlying processorCyclicPolyPatch
106  {
107  return procCycPolyPatch_;
108  }
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
processorPointPatch.H
Foam::processorCyclicPolyPatch::tag
virtual int tag() const
Return message tag to use for communication.
Definition: processorCyclicPolyPatch.C:193
Foam::processorCyclicPolyPatch
Neighbour processor patch.
Definition: processorCyclicPolyPatch.H:52
Foam::processorCyclicPointPatch::tag
virtual int tag() const
Return message tag to use for communication.
Definition: processorCyclicPointPatch.H:98
Foam::processorCyclicPointPatch
Processor patch boundary needs to be such that the ordering of points in the patch is the same on bot...
Definition: processorCyclicPointPatch.H:59
Foam::facePointPatch::patch
virtual const polyPatch & patch() const
Return the polyPatch.
Definition: facePointPatch.H:148
Foam::processorPointPatch
Processor patch boundary needs to be such that the ordering of points in the patch is the same on bot...
Definition: processorPointPatch.H:59
processorCyclicPolyPatch.H
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:68
Foam::processorCyclicPointPatch::~processorCyclicPointPatch
virtual ~processorCyclicPointPatch()
Definition: processorCyclicPointPatch.C:64
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::pointBoundaryMesh
Foam::pointBoundaryMesh.
Definition: pointBoundaryMesh.H:56
Foam::processorCyclicPointPatch::procCyclicPolyPatch
const processorCyclicPolyPatch & procCyclicPolyPatch() const
Return the underlying processorCyclicPolyPatch.
Definition: processorCyclicPointPatch.H:104
Foam::processorCyclicPointPatch::TypeName
TypeName(processorCyclicPolyPatch::typeName_())
Runtime type information.