processorCyclicFvPatch.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) 2011-2020 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::processorCyclicFvPatch
26 
27 Description
28  Processor patch.
29 
30 SourceFiles
31  processorCyclicFvPatch.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef processorCyclicFvPatch_H
36 #define processorCyclicFvPatch_H
37 
39 #include "processorFvPatch.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class processorCyclicFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
52  public processorFvPatch
53 {
54  // Private Data
55 
56  const processorCyclicPolyPatch& procPolyPatch_;
57 
58 public:
59 
60  //- Runtime type information
61  TypeName(processorCyclicPolyPatch::typeName_());
62 
63 
64  // Constructors
65 
66  //- Construct from components
68  :
69  processorFvPatch(patch, bm),
70  procPolyPatch_(refCast<const processorCyclicPolyPatch>(patch))
71  {}
72 
73 
74  // Member Functions
75 
76  //- Return message tag used for sending
77  virtual int tag() const
78  {
79  // Allocate from Pstream?
80  return procPolyPatch_.tag();
81  }
82 
84  {
85  return procPolyPatch_;
86  }
87 
88  //- Return transformation between the coupled patches
89  virtual const transformer& transform() const
90  {
91  return procPolyPatch_.transform();
92  }
93 };
94 
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 } // End namespace Foam
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 #endif
103 
104 // ************************************************************************* //
Vector-tensor class used to perform translations, rotations and scaling operations in 3D space...
Definition: transformer.H:83
To & refCast(From &r)
Reference type cast template function.
Definition: typeInfo.H:106
processorCyclicFvPatch(const polyPatch &patch, const fvBoundaryMesh &bm)
Construct from components.
const polyPatch & patch() const
Return the polyPatch.
Definition: fvPatch.H:138
Processor patch.
virtual int tag() const
Return message tag used for sending.
const processorCyclicPolyPatch & procPolyPatch() const
Foam::fvBoundaryMesh.
TypeName(processorCyclicPolyPatch::typeName_())
Runtime type information.
virtual const transformer & transform() const
Return transformation between the coupled patches.
virtual const transformer & transform() const
Return transformation between the coupled patches.
virtual int tag() const
Return message tag to use for communication.
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:66
Namespace for OpenFOAM.