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 | Copyright (C) 2011 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 
57 
58 public:
59 
60  //- Runtime type information
61  TypeName(processorCyclicPolyPatch::typeName_());
62 
63 
64  // Constructors
65 
66  //- Construct from components
68  :
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  //- Are the cyclic planes parallel
89  virtual bool parallel() const
90  {
91  return procPolyPatch_.parallel();
92  }
93 
94  //- Return face transformation tensor
95  virtual const tensorField& forwardT() const
96  {
97  return procPolyPatch_.forwardT();
98  }
99 
100  //- Return neighbour-cell transformation tensor
101  virtual const tensorField& reverseT() const
102  {
103  return procPolyPatch_.reverseT();
104  }
105 };
106 
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 } // End namespace Foam
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // ************************************************************************* //
Foam::processorCyclicPolyPatch::reverseT
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
Definition: processorCyclicPolyPatch.H:355
Foam::processorCyclicPolyPatch::tag
virtual int tag() const
Return message tag to use for communication.
Definition: processorCyclicPolyPatch.C:160
Foam::processorCyclicFvPatch::TypeName
TypeName(processorCyclicPolyPatch::typeName_())
Runtime type information.
processorFvPatch.H
Foam::processorCyclicPolyPatch
Neighbour processor patch.
Definition: processorCyclicPolyPatch.H:50
Foam::processorFvPatch
Processor patch.
Definition: processorFvPatch.H:50
processorCyclicPolyPatch.H
Foam::fvBoundaryMesh
Foam::fvBoundaryMesh.
Definition: fvBoundaryMesh.H:52
Foam::processorCyclicFvPatch::parallel
virtual bool parallel() const
Are the cyclic planes parallel.
Definition: processorCyclicFvPatch.H:88
Foam::processorCyclicFvPatch::procPolyPatch
const processorCyclicPolyPatch & procPolyPatch() const
Definition: processorCyclicFvPatch.H:82
Foam::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:66
Foam::processorCyclicFvPatch::reverseT
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
Definition: processorCyclicFvPatch.H:100
Foam::processorCyclicFvPatch::forwardT
virtual const tensorField & forwardT() const
Return face transformation tensor.
Definition: processorCyclicFvPatch.H:94
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::refCast
To & refCast(From &r)
Reference type cast template function.
Definition: typeInfo.H:106
Foam::processorCyclicFvPatch::tag
virtual int tag() const
Return message tag used for sending.
Definition: processorCyclicFvPatch.H:76
Foam::fvPatch::patch
const polyPatch & patch() const
Return the polyPatch.
Definition: fvPatch.H:143
Foam::processorCyclicPolyPatch::forwardT
virtual const tensorField & forwardT() const
Return face transformation tensor.
Definition: processorCyclicPolyPatch.H:349
Foam::processorCyclicPolyPatch::parallel
virtual bool parallel() const
Are the cyclic planes parallel.
Definition: processorCyclicPolyPatch.H:343
Foam::processorCyclicFvPatch::procPolyPatch_
const processorCyclicPolyPatch & procPolyPatch_
Definition: processorCyclicFvPatch.H:55
Foam::processorCyclicFvPatch
Processor patch.
Definition: processorCyclicFvPatch.H:49
Foam::processorCyclicFvPatch::processorCyclicFvPatch
processorCyclicFvPatch(const polyPatch &patch, const fvBoundaryMesh &bm)
Construct from components.
Definition: processorCyclicFvPatch.H:66