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 // ************************************************************************* //
Foam::processorCyclicPolyPatch::reverseT
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
Definition: processorCyclicPolyPatch.H:374
Foam::processorCyclicPolyPatch::tag
virtual int tag() const
Return message tag to use for communication.
Definition: processorCyclicPolyPatch.C:193
Foam::processorCyclicFvPatch::TypeName
TypeName(processorCyclicPolyPatch::typeName_())
Runtime type information.
processorFvPatch.H
Foam::processorCyclicPolyPatch
Neighbour processor patch.
Definition: processorCyclicPolyPatch.H:52
Foam::processorFvPatch
Processor patch.
Definition: processorFvPatch.H:53
processorCyclicPolyPatch.H
Foam::fvBoundaryMesh
Foam::fvBoundaryMesh.
Definition: fvBoundaryMesh.H:57
Foam::processorCyclicFvPatch::parallel
virtual bool parallel() const
Are the cyclic planes parallel.
Definition: processorCyclicFvPatch.H:90
Foam::processorCyclicFvPatch::procPolyPatch
const processorCyclicPolyPatch & procPolyPatch() const
Definition: processorCyclicFvPatch.H:84
Foam::Field< tensor >
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:68
Foam::processorCyclicFvPatch::reverseT
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
Definition: processorCyclicFvPatch.H:102
Foam::processorCyclicFvPatch::forwardT
virtual const tensorField & forwardT() const
Return face transformation tensor.
Definition: processorCyclicFvPatch.H:96
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::refCast
To & refCast(From &r)
Reference type cast template function.
Definition: typeInfo.H:131
Foam::processorCyclicFvPatch::tag
virtual int tag() const
Return message tag used for sending.
Definition: processorCyclicFvPatch.H:78
Foam::fvPatch::patch
const polyPatch & patch() const
Return the polyPatch.
Definition: fvPatch.H:161
Foam::processorCyclicPolyPatch::forwardT
virtual const tensorField & forwardT() const
Return face transformation tensor.
Definition: processorCyclicPolyPatch.H:368
Foam::processorCyclicPolyPatch::parallel
virtual bool parallel() const
Are the cyclic planes parallel.
Definition: processorCyclicPolyPatch.H:362
Foam::processorCyclicFvPatch
Processor patch.
Definition: processorCyclicFvPatch.H:51
Foam::processorCyclicFvPatch::processorCyclicFvPatch
processorCyclicFvPatch(const polyPatch &patch, const fvBoundaryMesh &bm)
Construct from components.
Definition: processorCyclicFvPatch.H:68