processorCyclicFvPatch.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::processorCyclicFvPatch
28 
29 Description
30  Processor patch.
31 
32 SourceFiles
33  processorCyclicFvPatch.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef processorCyclicFvPatch_H
38 #define processorCyclicFvPatch_H
39 
41 #include "processorFvPatch.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class processorCyclicFvPatch Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
54  public processorFvPatch
55 {
56  // Private Data
57 
58  const processorCyclicPolyPatch& procPolyPatch_;
59 
60 public:
61 
62  //- Runtime type information
63  TypeName(processorCyclicPolyPatch::typeName_());
64 
65 
66  // Constructors
67 
68  //- Construct from components
70  :
72  procPolyPatch_(refCast<const processorCyclicPolyPatch>(patch))
73  {}
74 
75 
76  // Member functions
77 
78  //- Return message tag used for sending
79  virtual int tag() const
80  {
81  // Allocate from Pstream?
82  return procPolyPatch_.tag();
83  }
84 
86  {
87  return procPolyPatch_;
88  }
89 
90  //- Are the cyclic planes parallel
91  virtual bool parallel() const
92  {
93  return procPolyPatch_.parallel();
94  }
95 
96  //- Return face transformation tensor
97  virtual const tensorField& forwardT() const
98  {
99  return procPolyPatch_.forwardT();
100  }
101 
102  //- Return neighbour-cell transformation tensor
103  virtual const tensorField& reverseT() const
104  {
105  return procPolyPatch_.reverseT();
106  }
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace Foam
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 #endif
117 
118 // ************************************************************************* //
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
virtual bool parallel() const
Are the cyclic planes parallel.
Type & refCast(U &obj)
A dynamic_cast (for references). Generates a FatalError on failed casts and uses the virtual type() m...
Definition: typeInfo.H:159
processorCyclicFvPatch(const polyPatch &patch, const fvBoundaryMesh &bm)
Construct from components.
virtual const tensorField & forwardT() const
Return face transformation tensor.
virtual bool parallel() const
Are the cyclic planes parallel.
Processor patch.
virtual const tensorField & forwardT() const
Return face transformation tensor.
virtual int tag() const
Return message tag used for sending.
const processorCyclicPolyPatch & procPolyPatch() const
Foam::fvBoundaryMesh.
TypeName(processorCyclicPolyPatch::typeName_())
Runtime type information.
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:69
const polyPatch & patch() const noexcept
Return the polyPatch.
Definition: fvPatch.H:202
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
Namespace for OpenFOAM.